This repository contains all the Lab experiments I have performed while learning the course Data Structures and Algorithm at UPES.
Contents :
- Arrays - operations on 1D & 2D arrays
- Structure and Unions
- Single Linked Lists : Insertion (beginning/middle/end) and Deletion (beginning/middle/end)
- Doubly Linked Lists and it's operations (same operations as of single linked lists)
- Stack Implementation using linked list and stack operations
- String operations using stack
- Circular Queue with Arrays
- Queue using Stack
- Bubble Sort
- Insertion Sort
- Selection Sort
- Binary and Linear Search
- Binary Search Tree implementation with insertion, deletion and searching
- Hash Table implementation
- Heap Sort implementation
- Find sum of all array elements using recursion, iteration.
- Create an array ‘a1’ with ‘n’ elements. Insert an element in ith position of ‘a1’ and also delete an element from jth position of ‘a1’.
- Convert uppercase string to lowercase using for loop.
- Find the sum of rows and columns of matrix of given order (row x column).
- Find the Transpose and Inverse of a matrix
- Find out the largest and smallest number in a given array
- Find the total number of alphabets, digits or special characters in a string.
- Find whether the entered string is palindrome or not.
- Count the number of words in a string.
- Find the product of two matrices using pointers.
- Add two complex numbers by passing structure to a function as argument.
- Design a structure ‘student_record’ to store student details like name, SAP ID, enrollment number, date of registration and data of birth. The element date of joining is defined using another structure ‘date’ to store date details like day, month, and year. Get data of ‘n’ students and then print the entered values.
- Store ‘n’ numbers (integers or real) in an array in ascending or descending order. Conduct a binary search for a given number and report success or failure in the form of a suitable message.
- Design a structure ‘subject’ to store the details of the subject like subject name and subject code. Using structure pointer allocate memory for the structure dynamically so as to obtain details of ‘n’ subjects using for loop.
- Implement single Linked List data structure for student and its operations like insert and delete in the beginning/end and nth position of the list, and display the items stored in the linked list.
- Implement Doubly Linked List and its operations.
- Using linked list implement Stack and its operations like insert, delete, and display.
- Reverse the string (using stack)
- Check if a string is palindrome (using stack)
- Evaluate a postfix expression using a stack.
- Circular queue with arrays
- Implementation of queue using stack
- Bubble sort, selection sort and insertion sort.
- Binary search and linear search.
- BST implementation with insertion, searching and deletion.
- Hash Table Implementation
- Heap Sort implementation