guess the next step: Run-length encoding
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 7 of 11
Question 7 of 10
Step 7 of 11
Step 8 of 11
Step 9 of 11
Step 10 of 11
Step 11 of 11
Question 7 of 10
Question 7 of 10
Right.
You guessed: The next letter is the same, so the run grows.
What the run did:
The next letter is d too, so the run grows to 2.
Question 7 of 10
Not this time.
You guessed: The next letter is another, so write the run and start a new one.
What the run did:
The next letter is d too, so the run grows to 2.
Question 8 of 10
Question 8 of 10
Right.
You guessed: The next letter is the same, so the run grows.
What the run did:
The next letter is d too, so the run grows to 3.
Question 8 of 10
Not this time.
You guessed: The next letter is another, so write the run and start a new one.
What the run did:
The next letter is d too, so the run grows to 3.
Question 9 of 10
Question 9 of 10
Right.
You guessed: The next letter is the same, so the run grows.
What the run did:
The next letter is d too, so the run grows to 4.
Question 9 of 10
Not this time.
You guessed: The next letter is another, so write the run and start a new one.
What the run did:
The next letter is d too, so the run grows to 4.
Question 10 of 10
Question 10 of 10
Right.
You guessed: The code is shorter than the text.
What the run did:
Done: write the last run, 4, then d. The code is 3a1b2c4d: 8 characters for 10 letters, so it is shorter.
That is every question on this run: 1 of 10 right.
Question 10 of 10
Not this time.
You guessed: The code is as long as the text.
What the run did:
Done: write the last run, 4, then d. The code is 3a1b2c4d: 8 characters for 10 letters, so it is shorter.
That is every question on this run: 0 of 10 right.
Question 10 of 10
Not this time.
You guessed: The code is longer than the text.
What the run did:
Done: write the last run, 4, then d. The code is 3a1b2c4d: 8 characters for 10 letters, so it is shorter.
That is every question on this run: 0 of 10 right.