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