This repository contains C programs that implement various data structures and algorithms. Each program is designed to demonstrate the implementation and usage of a specific data structure or algorithm.
- Binary Tree (
binarytree.c
) - Binary Search Tree (
BST.c
) - Binary Search Tree with Linked List (
BST_ll.c
) - Circular Queue (
circular_queue.c
) - Double-Ended Queue (
deque.c
) - Hashing (
hashing.c
) - Linked List (
linked_list.c
) - Polynomials (
polynomials.c
) - Priority Queue (
priority_queue.c
) - Queue (
queue.c
) - Queue with Linked List (
queue_linked_list.c
) - Sparse Matrix (
sparse_matrix.c
) - Stack (
stack.c
) - Stack with Linked List (
stack_linked_list.c
) - Breadth-First Search and Depth-First Search (
BFS_DFS.c
) - Union-Find (
union_find.c
)
Feel free to explore each directory for detailed implementations.
Each C program is standalone and can be compiled and run independently. Make sure you have a C compiler installed on your system.
To compile a program, use the following command:
gcc filename.c -o filename
To run the compiled program, use:
./filename