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 5
Question 1 of 1
Step 3 of 5
Step 4 of 5
Question 1 of 1
Question 1 of 1
Not this time.
You guessed: Joined, a and b weigh 1.
What the run did:
Join a and b under a new place, J1, weighing 2, both together, a on the left for 0 and b 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.
That is every question on this run: 0 of 1 right.
Question 1 of 1
Right.
You guessed: Joined, a and b weigh 2.
What the run did:
Join a and b under a new place, J1, weighing 2, both together, a on the left for 0 and b 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.
That is every question on this run: 1 of 1 right.
Question 1 of 1
Not this time.
You guessed: Joined, a and b weigh 3.
What the run did:
Join a and b under a new place, J1, weighing 2, both together, a on the left for 0 and b 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.
That is every question on this run: 0 of 1 right.