A collection of data structures and algorithms implemented in C, complete with unit tests and code contracts for correctness, as well as a Makefile for easy compilation.
- Searching Algorithms
- Sorting Algorithms
- Linked Lists
- Stacks
- Queues
- Doubly Linked Lists *
- Unbounded Arrays *
- Hash Tables *
- Binary Search Trees *
- AVL Trees *
- Min Heaps *
- = yet to be implemented
Clone the git repo into your project directory.
$ cd yourProject/
$ git clone [email protected]:yrkumar/data-structs.git lib/
Then, include the necessary header file(s) in your project. Make sure to compile your project with the .c file that corresponds to the data structure/algorithm set that is needed.
- add dependencies to each file
- finish the rest of the data structures/algorithms with code contracts, header files, and unit tests
- add nice printing UI functionality (i.e. for arrays and such)
Visit my personal webpage to learn more.