Jun-30-2018, 02:21 PM
not able to complete a project
not able to complete a project
|
Jun-30-2018, 02:36 PM
Binary search is about dividing the search space in half. So you start at the middle (25). Say the response is that you're too low. You now know the answer is in the range 26 to 50. So you go to the middle of that range. Each round you adjust the high and low of the possible range based on the response, and guess the middle of the range.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures |
|
Users browsing this thread: 1 Guest(s)