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 5
Question 1 of 2
Step 1 of 5
Step 2 of 5
Step 3 of 5
Question 1 of 2
Question 1 of 2
Right.
You guessed: 30 should stand near place 4.
What the run did:
30 lies between 7 and 56, the smallest and biggest left, so in proportion it should stand near place 4. Place 4 holds 23.
Question 1 of 2
Not this time.
You guessed: 30 should stand near place 5.
What the run did:
30 lies between 7 and 56, the smallest and biggest left, so in proportion it should stand near place 4. Place 4 holds 23.
Question 1 of 2
Not this time.
You guessed: 30 should stand near place 6.
What the run did:
30 lies between 7 and 56, the smallest and biggest left, so in proportion it should stand near place 4. Place 4 holds 23.
Question 2 of 2
Question 2 of 2
Not this time.
You guessed: 23 is the number wanted, so it is found.
What the run did:
23 is smaller than 30, so 30 can only be to its right. Rule out places 1 to 4.
That is every question on this run: 0 of 2 right.
Question 2 of 2
Not this time.
You guessed: 23 is too small, so rule it out.
What the run did:
23 is smaller than 30, so 30 can only be to its right. Rule out places 1 to 4.
That is every question on this run: 0 of 2 right.
Question 2 of 2
Right.
You guessed: 23 is too small, so rule it out, and the places to its left.
What the run did:
23 is smaller than 30, so 30 can only be to its right. Rule out places 1 to 4.
That is every question on this run: 1 of 2 right.
Question 2 of 2
Not this time.
You guessed: 23 is too big, so rule it out, and the places to its right.
What the run did:
23 is smaller than 30, so 30 can only be to its right. Rule out places 1 to 4.
That is every question on this run: 0 of 2 right.