A structured academic repository containing foundational implementations of fundamental Data Structures written in C and C++, developed as part of the CSE124: Data Structures Lab curriculum at Daffodil International University (DIU).
- 📖 Course Overview
- 🛠️ Technologies & Tools
- 📂 Lab Modules & Curriculum
- 🚀 How to Compile & Run
- 👨💻 Author & Academic Information
- 📜 License
This repository covers practical, from-scratch implementations of linear and non-linear data structures, focusing on dynamic memory allocation (malloc, free), pointers, node linking, time/space complexity, and algorithmic operations.
- Languages: C, C++
- Compiler: GCC (MinGW)
- IDE: Visual Studio Code / Code::Blocks
- Debugging & Analysis: GDB, Pointer memory tracing
Data_Structures/
│
├── Lab2/ # Singly Linked List Operations
│ ├── LinkedListCreation.c # Static and user-input node creation
│ ├── DynamicLinkedList.c # Dynamic memory allocation for nodes
│ ├── LinkedListInsertion.c # Insertion (at beginning, end, and specific position)
│ └── LinkedListSearching.c # Linear search in linked list
│
├── Lab3/ # Advanced Linked List Operations
│ ├── DoublyLinkedList.c # Bidirectional traversal with prev/next pointers
│ └── LinkedListDeletion.c # Deletion (from head, tail, and target value)
│
├── Lab4/ # Stack (LIFO)
│ ├── StackUsingArray.c # Fixed-size stack implementation with overflow/underflow checks
│ └── StackUsingLinkedList.c # Dynamic stack implementation
│
├── Lab5/ # Queue (FIFO)
│ ├── QueueUsingArray.c # Linear queue with front & rear pointers
│ └── QueueUsingLinkedList.c # Dynamic queue implementation
│
├── Lab6/ # Non-Linear Data Structures (Trees)
│ └── Tree.c # Binary tree node structure, creation, and traversals
│
├── Stack-Push-Pop.cpp # C++ implementation of interactive Stack Push/Pop
└── README.md # Documentation- Singly & Doubly Linked Lists: Dynamic node chaining, pointer manipulation, and traversal.
- Stack (LIFO - Last In First Out): Push, Pop, Peek/Top operations using both arrays and dynamic nodes.
- Queue (FIFO - First In First Out): Enqueue and Dequeue operations using arrays and linked lists.
- Binary Trees: Hierarchical data representation, node structures, and tree traversal algorithms.
To compile any C file, open terminal in the directory and use GCC:
# Compile a C program
gcc Lab2/LinkedListCreation.c -o app
# Run the compiled executable
./appFor C++ programs:
g++ Stack-Push-Pop.cpp -o stack_app
./stack_app- Student Name: Shahriar Ahammed
- GitHub: @Shariar-Always
- Portfolio: shariarahamed.com
- Student ID: 0242310005101019
- Department: Computer Science and Engineering
- University: Daffodil International University (DIU)
- Course: CSE124 – Data Structures Lab
This repository is maintained for educational reference and academic study purposes.