guess the next step: Interpolation search
Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.
Step 1 of 4
Question 1 of 2
Step 1 of 4
Step 2 of 4
Step 3 of 4
Question 1 of 2
Question 1 of 2
Right.
You guessed: 60 should stand near place 6.
What the run did:
60 lies between 10 and 80, the smallest and biggest left, so in proportion it should stand near place 6. Place 6 holds 60.
Question 1 of 2
Not this time.
You guessed: 60 should stand near place 7.
What the run did:
60 lies between 10 and 80, the smallest and biggest left, so in proportion it should stand near place 6. Place 6 holds 60.
Question 1 of 2
Not this time.
You guessed: 60 should stand near place 8.
What the run did:
60 lies between 10 and 80, the smallest and biggest left, so in proportion it should stand near place 6. Place 6 holds 60.
Question 2 of 2
Question 2 of 2
Right.
You guessed: 60 is the number wanted, so it is found.
What the run did:
60 is the number wanted, at place 6, so it is found.
That is every question on this run: 1 of 2 right.
Question 2 of 2
Not this time.
You guessed: 60 is too small, so rule it out.
What the run did:
60 is the number wanted, at place 6, so it is found.
That is every question on this run: 0 of 2 right.
Question 2 of 2
Not this time.
You guessed: 60 is too small, so rule it out, and the places to its left.
What the run did:
60 is the number wanted, at place 6, so it is found.
That is every question on this run: 0 of 2 right.
Question 2 of 2
Not this time.
You guessed: 60 is too big, so rule it out, and the places to its right.
What the run did:
60 is the number wanted, at place 6, so it is found.
That is every question on this run: 0 of 2 right.