___________________ ___________________ ___________________From Weiss: Data Structures and Problem Solving and Christina Leslie's course at Columbia.
unite operations are performed accoring to:
Start with each cell in the grid in its own set numbered [0, N^2-1],
Create all interior and exterior walls
Repeat
Choose an interior wall at random
If the two cells (call them x and y) adjacent to this wall
are in different sets, remove the wall and perform a union
on x and y
until all cells are in the set
Explain the following:
Review Maze.java. Currently, the code below produces the following grid.
How would you add code to draw the bottom and right edges?
MazeCreator that generates and draws a random maze
according to the above algorithm.