CS 241 Data Organization using C
Lab 5: Turning arrays into graphs


September 20, 2018

The purpose of lab today is to get you familiar with the data representation for homework four and to work on arrays in C.

1 Getting Started

Download the https://www.cs.unm.edu/~vasek/cs241/hw/mazegeneration.py file. We’re going to be making mazes today!

To run the code, use the following command.

python mazegeneration.py SIDELENGTH

In addition, download the maze.c file off the lab directory on the course website. You’ll need to edit it before it can be compiled.

2 Creating some test cases

Run the python script a number of times using the >> command to append the mazes to the end of a file. Your file should be called testmaze.in.

Then, edit at least one to be a valid maze, but not have a path from top left to bottom right.

3 Writing some code

4 More time?

5 Turning in your program

It’s ok not to finish this assignment – get through as much as you can.

Zip up your maze.c file along with your testmaze.in file into a zip file entitled yourCSUsername.zip. Then drop the zip file into the dropbox under the lab-05 folder..