Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 16 Online
OpenStudy (anonymous):

Unit 1 lecture 3 Is there a bug in how guesses are being counted in the Bisection search example? Surely the first value of ans counts as a guess too? The code as given finds the root of 4 in zero guesses

OpenStudy (anonymous):

depends on the spec, if it complies with the specification then it is not a bug, if there is no specification - you get to do whatever you want and it is not a bug.

OpenStudy (anonymous):

also, the answer is not the point of the code - the lecture is about "Termination, decrementing functions, exhaustive enumeration, brute force, while loop, for loop, approximation, specifications, bisection search" - oops there's that specifications word in there - did it mean the tolerance thingy?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!