guess the next step: Union-find
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 2 of 26
Question 1 of 19
Step 2 of 26
Step 3 of 26
Step 4 of 26
Step 5 of 26
Step 6 of 26
Step 7 of 26
Step 8 of 26
Step 9 of 26
Question 1 of 19
Question 1 of 19
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
2 points at nothing, so it leads the group 2 is in.
Question 1 of 19
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
2 points at nothing, so it leads the group 2 is in.
Question 2 of 19
Question 2 of 19
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
3 points at nothing, so it leads the group 3 is in.
Question 2 of 19
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
3 points at nothing, so it leads the group 3 is in.
Question 3 of 19
Question 3 of 19
Right.
You guessed: Both groups are the same size, so hang one leader under the other.
What the run did:
Both groups have one place, so hang 2 under 3.
Question 3 of 19
Not this time.
You guessed: One group is smaller, so hang its leader under the other's.
What the run did:
Both groups have one place, so hang 2 under 3.
Question 3 of 19
Not this time.
You guessed: Both have the same leader, so they are already joined.
What the run did:
Both groups have one place, so hang 2 under 3.
Question 4 of 19
Question 4 of 19
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
3 points at nothing, so it leads the group 3 is in.
Question 4 of 19
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
3 points at nothing, so it leads the group 3 is in.
Question 5 of 19
Question 5 of 19
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
4 points at nothing, so it leads the group 4 is in.
Question 5 of 19
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
4 points at nothing, so it leads the group 4 is in.
Question 6 of 19
Question 6 of 19
Not this time.
You guessed: Both groups are the same size, so hang one leader under the other.
What the run did:
4's group has one place and 3's has 2 places, so hang the smaller group's leader, 4, under 3.
Question 6 of 19
Right.
You guessed: One group is smaller, so hang its leader under the other's.
What the run did:
4's group has one place and 3's has 2 places, so hang the smaller group's leader, 4, under 3.
Question 6 of 19
Not this time.
You guessed: Both have the same leader, so they are already joined.
What the run did:
4's group has one place and 3's has 2 places, so hang the smaller group's leader, 4, under 3.