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 30
Question 7 of 21
Step 10 of 30
Step 11 of 30
Step 12 of 30
Step 13 of 30
Step 14 of 30
Step 15 of 30
Step 16 of 30
Step 17 of 30
Question 7 of 21
Question 7 of 21
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 7 of 21
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 8 of 21
Question 8 of 21
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 8 of 21
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 9 of 21
Question 9 of 21
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 5 under 6.
Question 9 of 21
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 5 under 6.
Question 9 of 21
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 5 under 6.
Question 10 of 21
Question 10 of 21
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 10 of 21
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.
Question 11 of 21
Question 11 of 21
Not this time.
You guessed: A road leads up from here to another place, so follow it.
What the run did:
8 points at nothing, so it leads the group 8 is in.
Question 11 of 21
Right.
You guessed: The road ends, so the place reached leads its group.
What the run did:
8 points at nothing, so it leads the group 8 is in.
Question 12 of 21
Question 12 of 21
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 7 under 8.
Question 12 of 21
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 7 under 8.
Question 12 of 21
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 7 under 8.