Skip to content

About

Fundamental Data Structures implementations in C and C++ for CSE124: Data Structures Lab, covering Linked Lists, Stacks, Queues, and Binary Trees.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Data Structures Lab (CSE124)

Language Course Institution Status

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).


📌 Table of Contents


📖 Course Overview

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.


🛠️ Technologies & Tools

  • Languages: C, C++
  • Compiler: GCC (MinGW)
  • IDE: Visual Studio Code / Code::Blocks
  • Debugging & Analysis: GDB, Pointer memory tracing

📂 Lab Modules & Curriculum

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

Key Data Structures Covered:

  1. Singly & Doubly Linked Lists: Dynamic node chaining, pointer manipulation, and traversal.
  2. Stack (LIFO - Last In First Out): Push, Pop, Peek/Top operations using both arrays and dynamic nodes.
  3. Queue (FIFO - First In First Out): Enqueue and Dequeue operations using arrays and linked lists.
  4. Binary Trees: Hierarchical data representation, node structures, and tree traversal algorithms.

🚀 How to Compile & Run

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
./app

For C++ programs:

g++ Stack-Push-Pop.cpp -o stack_app
./stack_app

👨‍💻 Author & Academic Information

  • 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

📜 License

This repository is maintained for educational reference and academic study purposes.

About

Fundamental Data Structures implementations in C and C++ for CSE124: Data Structures Lab, covering Linked Lists, Stacks, Queues, and Binary Trees.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages