Docsity

Algorithms and Data Structures - Assignment 6 Questions | CS 2420, Assignments of Computer Science

Toggle sidebar
bg1
Program 6 Page 1
CS2420 โ€“ Fall 2008
Program 6
Due November 17, 2008
Union/Find
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 zip file that contains your program and the document that describes the results of your
tests to eagle.

Partial preview of the text

Download Algorithms and Data Structures - Assignment 6 Questions | CS 2420 and more Assignments Computer Science in PDF only on Docsity!

Program 6 Page 1

CS2420 โ€“ Fall 2008

Program 6

Due November 17, 2008

Union/Find

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 zip file that contains your program and the document that describes the results of your

tests to eagle.