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 10 of 26
Question 7 of 19
Step 10 of 26
Step 11 of 26
Step 12 of 26
Step 13 of 26
Step 14 of 26
Step 15 of 26
Step 16 of 26
Step 17 of 26
Question 7 of 19
Question 7 of 19
Right.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
2 points at 3, so follow the road up.
Question 7 of 19
Not this time.
You guessed: The road ends, so the place reached leads its group.
What the run did:
2 points at 3, so follow the road up.
Question 8 of 19
Question 8 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 2 is in.
Question 8 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 2 is in.
Question 9 of 19
Question 9 of 19
Right.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
4 points at 3, so follow the road up.
Question 9 of 19
Not this time.
You guessed: The road ends, so the place reached leads its group.
What the run did:
4 points at 3, so follow the road up.
Question 10 of 19
Question 10 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 4 is in.
Question 10 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 4 is in.
Question 11 of 19
Question 11 of 19
Not this time.
You guessed: Both groups are the same size, so hang one leader under the other.
What the run did:
2 and 4 are both led by 3, so they are already joined.
Question 11 of 19
Not this time.
You guessed: One group is smaller, so hang its leader under the other's.
What the run did:
2 and 4 are both led by 3, so they are already joined.
Question 11 of 19
Right.
You guessed: Both have the same leader, so they are already joined.
What the run did:
2 and 4 are both led by 3, so they are already joined.
Question 12 of 19
Question 12 of 19
Right.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
4 points at 3, so follow the road up.
Question 12 of 19
Not this time.
You guessed: The road ends, so the place reached leads its group.
What the run did:
4 points at 3, so follow the road up.