Docsity

CS 2420 Program 6: Creating a Random 5x5 Maze using Union-Find Data Structure - Prof. Ming, Assignments of Computer Science

Toggle sidebar
bg1
CS 2420 - Program 6
Due November 17
1. Read Section 8.7 of the textbook. Write a program maze.cpp that
uses the union-find data structure to generate a random 5-by-5 maze
and prints the maze to the console.
For example, the output for the maze in Figure 8.23 of the textbook
should look like this:
+-+-+-+-+-+
| |
+-+ +-+-+ +
| | |
+ + +-+-+ +
| | | |
+ +-+ + + +
| | | |
+-+ + +-+-+
| |
+-+-+-+-+-+
Submit a single C++ file maze.cpp on eagle.
1

Partial preview of the text

Download CS 2420 Program 6: Creating a Random 5x5 Maze using Union-Find Data Structure - Prof. Ming and more Assignments Computer Science in PDF only on Docsity!

CS 2420 - Program 6 Due November 17

  1. Read Section 8.7 of the textbook. Write a program maze.cpp that uses the union-find data structure to generate a random 5-by-5 maze and prints the maze to the console. For example, the output for the maze in Figure 8.23 of the textbook should look like this:

Submit a single C++ file maze.cpp on eagle.