P4 - Mazes
Overview
Mazes represents our transition into real world applications of data structures and algorithms. In this project, we will compare 3 implementations of graph algorithms for constructing and solving mazes. By the end of this project, students will be able to:
- Understand and extend an existing codebase.
- Implement nontrivial algorithms involving multiple ADTs and data structures.
Milestones
This project has two milestones to help you pace your work. Each one ends with a short graded check-in survey on Gradescope.
- A check-in is not an autograded submission. No tests run when you submit it.
- Each check-in is worth a small completion score for answering honestly, no matter which tests you are passing. We want to know where to help :)
- After the two milestones comes the final submission: your code, autograded as usual, plus the writeup. Both are due Tuesday, December 8 (see Submission).
| Milestone | What you build | Spec pages | What’s due, and when |
|---|---|---|---|
| M1: Generate mazes | UnionBySizeCompressingDisjointSets,
KruskalMinimumSpanningTreeFinder,
KruskalMazeCarver |
Disjoint Sets, Kruskal's Algorithm | Check-in survey (graded) Wed, Nov 25 |
| M2: Solve mazes | DijkstraShortestPathFinder |
Dijkstra's Algorithm | Check-in survey (graded) Fri, Dec 4 |
| Final submission | All code (all tests) + writeup | Submission | Code (autograded) + writeup Tue, Dec 8 |
Getting the Assignment
Task
Grab your partner(s) and set off on a new journey together!
If you are working in a group, consider scheduling a time to go over the spec together and discuss how to collaborate on the project. If you are working with a new partner, follow the instructions from the Deques assignment to add your partner into your group and pull the assignment from the public skeleton.
Task
Pull the skeleton repository in IntelliJ to get the heap
assignment.
Pull the repo similar to how you did it for the deques assignment:

If IntelliJ doesn’t react to the new folder for whatever reason, refresh Gradle manually through the Gradle tool window (on the right by default):
