anonymous
  • anonymous
PS11.. Anyone having a problem with the visualize argument? From the problemset instructions I got the impression that if you set the visualize argument to False then the robot animation won't run - but it runs on mine whether it is True or False.
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 :)
SOLVED
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.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Hi bwCA, it would help if you post your code so we can see what's going on. In short, I was able to use the visualize argument to enable (True) or disable (False) the visualization. In your runSimulation method, you need to actually implement this capability using the visualize argument. So you need to add "if visualize:" to everything that would call a ps11_visualize method. check out what I have below. http://dpaste.com/540983/
anonymous
  • anonymous
thnx, that's actually what I was asking, I kinda got the impression that it was already implemented then it didn't work and i couldn't see where it was being passed to or used by the robot visualization class and i got confused - anyway thhnx
anonymous
  • anonymous
I am not sure I understand question 4 in problem # 4. Can any of you help me with what exactly they are asking and why computeMeans is useful?

Looking for something else?

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

More answers

anonymous
  • anonymous
Hi frankanayet, For future reference, if you have a question, it's better to ask on a separate thread, since more people will see your post. If you attach to the current thread, only those that have replied to the thread gets notice. To answer your question, in problem set 11, problem #4, question 4. It's asking you to create a plot that shows 'how long a room takes to clean' as a function of 'the percentage clean'. You do this for 1,2,3,4,5 robots that are used to clean simultaneously. Let's call the number of robots simultaneously used, nBots, So you should get a plot with 5 lines, one for each nBots number of robots used. The x axis would be the 'percentage clean' and the y axis would be the mean time for all the trials done with 1 of the nBots numbers. I've attached a file with my output plot. The method computeMeans is useful because it calculate the means for each nBots separately. The mean is the average of all the cleaning time nBots used across all the trials. It produced 1 number per percentage clean, you can then use this to plot with. An example would be: using 2 robots (nBots=2), doing 5 trials, 100% coverage would generate a raw data of something like: nBots, trial, percentage clean, time 2, 1, 10%, 5 2, 1, 20%, 10 2, 1, 30%, 20 ... 2, 1, 100%, 50 2, 2, 10%, 4.5 2, 2, 20%, 11 2, 2, 30%, 19 ... 2, 5, 100% 54 Then computeMeans takes all the info and converted to something like: percentage clean, mean time across all 5 trials 10%, 4.9 20%, 10.2 30%, 19.3 ... 100% 52.345 This would produce one line in your final plot, namely the line for nBots=2.
1 Attachment

Looking for something else?

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