A collection of C programs implementing fundamental data structures and algorithms. This repository serves as a learning resource for understanding how core data structures work under the hood, including Linked Lists, Stacks, Queues, Trees, and Graphs.
The code is organized by data structure type. Below is a breakdown of the files:
lschain.c- Singly Linked List implementation.double.c- Doubly Linked List implementation.circle.c- Circular Linked List implementation.
pileSt.c/pile2st.c- Static Stack implementation (using arrays).pileDy.c/pile2dy.c- Dynamic Stack implementation (using linked lists).
filest.c/filest(1).c- Static Queue implementation (using arrays).fileDy.c/filedy.c- Dynamic Queue implementation (using linked lists).
arbre.c- General Tree structure implementation.arbreBi.c/arbrebi.c- Binary Tree implementation.
graph.c/graph(1).c- Graph data structure representation.bfs.c- Breadth-First Search (BFS) algorithm traversal.
fac_cal.c- Factorial calculation utility.ex.c- Miscellaneous exercises/examples.
To run any of these programs, you need a C compiler (like gcc).
-
Clone the repository:
git clone [https://github.com/mdriouec/data_strcture_staffs.git](https://github.com/mdriouec/data_strcture_staffs.git) cd data_strcture_staffs -
Compile a file: Replace
filename.cwith the file you want to run (e.g.,lschain.c).gcc filename.c -o output
-
Run the executable:
- Linux/Mac:
./output
- Windows:
output.exe
- Linux/Mac:
- Language: C
This project is licensed under the GPL-3.0 License.