Skip to content

This repo provides C implementations for various different data structures that are commonly employed in programming. I based the choice of structures roughly off of those which I learned in my data structures course at Caltech. To challenge myself, I wanted to see if I could implement these structures in C rather than Java resulting in this repo

Notifications You must be signed in to change notification settings

savarsinha123/c-data-structures

Repository files navigation

c-data-structures

This repository features a plethora of different data structures that are commonly used in programming. These implementations have been written in C as C does not have built-in implementations of these structures, meaning that they would need to be built from scratch. This repo includes implementations for the following:

  1. Linked List
  2. Stack
  3. Queue
  4. Tree Set
  5. Hash Tables

There are tests included for each of these to demonstrate that they work without memory leaks, segfaults, etc. There is also a python script that showcases some examples of the time required to perform given operations on each structure varies with the sizes of said structures.

To run the accuracy and complexity tests, simply run make all.

About

This repo provides C implementations for various different data structures that are commonly employed in programming. I based the choice of structures roughly off of those which I learned in my data structures course at Caltech. To challenge myself, I wanted to see if I could implement these structures in C rather than Java resulting in this repo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published