Jeff Nyman: It has been a while since I wrote this code. I looked over it again. If the number of buckets for a dimension is 1, it is equivalent to “removing” the dimension. The goal of removing the x and x_dot dimension is to reduce the size of the Q-Table. By setting the number of buckets to 1, you can see that is equivalent to removing the…