Welcome to the Data Structures and Algorithms Lab Programs repository for the KTU 2024 Scheme. This repository contains a comprehensive collection of all DSA lab programs implemented in accordance with the official syllabus.
Each program is crafted to help students understand the core concepts of data structures and algorithms through hands-on implementation in C
- 🔢 Sparse Polynomials – Find the sum of two sparse polynomials using arrays.
- 🧮 Sparse Matrix Operations – Transpose a sparse matrix and compute the sum of two sparse matrices.
- 🧠 Expression Conversion & Evaluation – Convert infix to postfix/prefix and evaluate using a stack.
- 🔁 Queue Implementations – Implement Queue, Dequeue, and Circular Queue using arrays.
- 🌐 Browser History Navigation – Simulate back and forward navigation using a doubly linked list.
- ➕✖️ Polynomial Operations – Add and multiply polynomials using singly linked lists.
- 🌳 Expression Tree – Create a binary tree for a simple arithmetic expression and find its prefix/postfix form.
- 📖 Dictionary Using BST – Implement a dictionary of word-meaning pairs using binary search trees.
- 🧱 Shortest Path in Maze – Find shortest distance from each cell to landmines in a maze.
- 🧪 Water Jug Problem (Graph) – Solve the 10-7-4 litre jug problem using graph modeling.
- 🔍 Find & Replace – Implement find and replace feature like in a text editor.
- 🔎 Efficient Search – Search for an item in a sorted array using binary search.
- 📊 Sorting Algorithms – Implement and compare Bubble, Insertion, Radix, Quick, and Merge Sort.
- 🏤 GPO Queue Prioritization – Simulate customer preference handling in a queue based on priority.
- ✍️ Spell Checker – Use a hash table to build a fast spell checker with suggestions.
- 🧠 Memory Management – Simulate memory allocation and garbage collection using doubly linked list.
- 🎉 Tech Fest Point Maximization – Maximize activity points from KTU events with a limit on participation.
- 🏗️ Merge K Sorted Lists – Merge multiple sorted lists using a min-heap efficiently.
- Clone this repository:
git clone https://github.com/your-username/dsa-lab-ktu-2024.git cd dsa-lab-ktu-2024