A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 3 years ago
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?
anonymous
 3 years ago
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?

This Question is Open

Comm.Dan
 3 years ago
Best ResponseYou've already chosen the best response.0It depends on how old the computer is, meaning the speed of the computer @plan2a

rsmith6559
 3 years ago
Best ResponseYou've already chosen the best response.3For 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.

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0It 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.

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0which course  2008 or 2011?
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.