This repository contains teaching examples of core data structures in Java for COMP0004.
Important: this code is designed to illustrate ideas and implementation techniques, not to be production quality.
- Hash table interface and two implementations:
ChainedHashTable(separate chaining)LinearHashTable(open addressing with linear probing)SimpleListinterface and a customLinkedListTreeinterface andBinaryTree- Iterator extensions (
InsertIterable,InsertIterator) to support insertion during iteration - JUnit tests for the main data structures
Junior developers and students who want to:
- Understand how classic data structures work internally
- Read clear, commented Java implementations
- Practice reasoning about behavior, edge cases, and complexity
From the project root:
mvn compilemvn testmvn javadoc:javadocThe Javadoc command generates API documentation under:
Javadoc/apidocs