guess the next step: Huffman coding
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 3 of 11
Question 1 of 4
Step 3 of 11
Step 4 of 11
Step 5 of 11
Step 6 of 11
Step 7 of 11
Step 8 of 11
Step 9 of 11
Step 10 of 11
Question 1 of 4
Question 1 of 4
Not this time.
You guessed: Joined, c and d weigh 1.
What the run did:
Join c and d under a new place, J1, weighing 2, both together, c on the left for 0 and d on the right for 1. Each join weighs at least as much as the one before it, so J1 goes behind any joins already in the queue.
Question 1 of 4
Right.
You guessed: Joined, c and d weigh 2.
What the run did:
Join c and d under a new place, J1, weighing 2, both together, c on the left for 0 and d on the right for 1. Each join weighs at least as much as the one before it, so J1 goes behind any joins already in the queue.
Question 1 of 4
Not this time.
You guessed: Joined, c and d weigh 3.
What the run did:
Join c and d under a new place, J1, weighing 2, both together, c on the left for 0 and d on the right for 1. Each join weighs at least as much as the one before it, so J1 goes behind any joins already in the queue.
Question 2 of 4
Question 2 of 4
Not this time.
You guessed: Joined, b and r weigh 3.
What the run did:
Join b and r under a new place, J2, weighing 4, both together, b on the left for 0 and r on the right for 1. Each join weighs at least as much as the one before it, so J2 goes behind any joins already in the queue.
Question 2 of 4
Right.
You guessed: Joined, b and r weigh 4.
What the run did:
Join b and r under a new place, J2, weighing 4, both together, b on the left for 0 and r on the right for 1. Each join weighs at least as much as the one before it, so J2 goes behind any joins already in the queue.
Question 2 of 4
Not this time.
You guessed: Joined, b and r weigh 5.
What the run did:
Join b and r under a new place, J2, weighing 4, both together, b on the left for 0 and r on the right for 1. Each join weighs at least as much as the one before it, so J2 goes behind any joins already in the queue.
Question 3 of 4
Question 3 of 4
Right.
You guessed: Joined, J1 and J2 weigh 6.
What the run did:
Join J1 and J2 under a new place, J3, weighing 6, both together, J1 on the left for 0 and J2 on the right for 1. Each join weighs at least as much as the one before it, so J3 goes behind any joins already in the queue.
Question 3 of 4
Not this time.
You guessed: Joined, J1 and J2 weigh 7.
What the run did:
Join J1 and J2 under a new place, J3, weighing 6, both together, J1 on the left for 0 and J2 on the right for 1. Each join weighs at least as much as the one before it, so J3 goes behind any joins already in the queue.
Question 3 of 4
Not this time.
You guessed: Joined, J1 and J2 weigh 8.
What the run did:
Join J1 and J2 under a new place, J3, weighing 6, both together, J1 on the left for 0 and J2 on the right for 1. Each join weighs at least as much as the one before it, so J3 goes behind any joins already in the queue.
Question 4 of 4
Question 4 of 4
Not this time.
You guessed: Joined, a and J3 weigh 9.
What the run did:
Join a and J3 under a new place, J4, weighing 11, both together, a on the left for 0 and J3 on the right for 1. Each join weighs at least as much as the one before it, so J4 goes behind any joins already in the queue.
That is every question on this run: 0 of 4 right.
Question 4 of 4
Not this time.
You guessed: Joined, a and J3 weigh 10.
What the run did:
Join a and J3 under a new place, J4, weighing 11, both together, a on the left for 0 and J3 on the right for 1. Each join weighs at least as much as the one before it, so J4 goes behind any joins already in the queue.
That is every question on this run: 0 of 4 right.
Question 4 of 4
Right.
You guessed: Joined, a and J3 weigh 11.
What the run did:
Join a and J3 under a new place, J4, weighing 11, both together, a on the left for 0 and J3 on the right for 1. Each join weighs at least as much as the one before it, so J4 goes behind any joins already in the queue.
That is every question on this run: 1 of 4 right.