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