Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

plan2a

  • one year 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
  1. Comm.Dan
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    It depends on how old the computer is, meaning the speed of the computer @plan2a

  2. rsmith6559
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    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.

  3. plan2a
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  4. bwCA
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    which course - 2008 or 2011?

  5. Not the answer you are looking for?
    Search for more explanations.

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find 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
  • 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.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.