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 17 of 32
Question 13 of 23
Step 17 of 32
Step 18 of 32
Step 19 of 32
Step 20 of 32
Step 21 of 32
Step 22 of 32
Step 23 of 32
Step 24 of 32
Step 25 of 32
Question 13 of 23
Question 13 of 23
Right.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
2 points at 4, so follow the road up.
Question 13 of 23
Not this time.
You guessed: The road ends, so the place reached leads its group.
What the run did:
2 points at 4, so follow the road up.
Question 14 of 23
Question 14 of 23
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 1 is in.
Question 14 of 23
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 1 is in.
Question 15 of 23
Question 15 of 23
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
5 points at nothing, so it leads the group 5 is in.
Question 15 of 23
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
5 points at nothing, so it leads the group 5 is in.
Question 16 of 23
Question 16 of 23
Not this time.
You guessed: Both groups are the same size, so hang one leader under the other.
What the run did:
5's group has one place and 4's has 4 places, so hang the smaller group's leader, 5, under 4.
Question 16 of 23
Right.
You guessed: One group is smaller, so hang its leader under the other's.
What the run did:
5's group has one place and 4's has 4 places, so hang the smaller group's leader, 5, under 4.
Question 16 of 23
Not this time.
You guessed: Both have the same leader, so they are already joined.
What the run did:
5's group has one place and 4's has 4 places, so hang the smaller group's leader, 5, under 4.
Question 17 of 23
Question 17 of 23
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
6 points at nothing, so it leads the group 6 is in.
Question 17 of 23
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
6 points at nothing, so it leads the group 6 is in.
Question 18 of 23
Question 18 of 23
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
7 points at nothing, so it leads the group 7 is in.
Question 18 of 23
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
7 points at nothing, so it leads the group 7 is in.