Hi! I finished writing the Problem Set 10, but it seems the computer player is quite slow. It took the computer player about 10 minutes to complete its turn. Is this normal?
MIT 6.00 Intro Computer Science (OCW)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
It depends on how old the computer is, meaning the speed of the computer @plan2a
For that much slowness, check your code for nested loops. They can slow down execution a surprising amount. For instance if you've nested a "for i in xrange( 10 ):" inside the same for loop, you're executing the code block 100 times. A third nesting would execute 1000 times.
It seems like the problem calls me to implement the Problem Set 6's slow greedy algorithm, maybe I can implement the faster version of that algorithm, but that is kinda stepping out of what the problem is asking for. Well, there is no score keeping!, so I will implement it somehow and get back to you.