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