Case study
Legal Case Tracker: the same system, built twice
A case management system written in Java and again in C, to see what data structure choices cost in speed and memory.
- Team
- 3 developers
- Context
- Data Structures course project
- Stack
- Java, Maven, JUnit, C
- Year
- 2025-2026
The idea
Reading about a B+ tree is different from deciding where it goes. This project takes one realistic domain, tracking legal cases and the people in them, and implements it twice: once in Java and once in C. The same design in two languages shows which costs come from the data structure and which come from the language.
The structures and why they are there
Each structure is written from scratch rather than taken from a library, and each answers a different kind of question about the cases:
- B+ tree: keeps records sorted by key, so lookups and range scans stay fast as the number of cases grows.
- Min-heap: always hands back the item with the smallest key first, the natural shape for a priority queue.
- Huffman tree: compresses text by giving frequent characters shorter codes.
- Graph with strongly connected components: finds groups of case types that all lead to one another.
- A queue, also implemented by hand.
Verifying it
The Java version is a Maven project with JUnit tests for the core structures, and the build reports line, branch and method coverage.