3RD SEM VTU DATA STRUCTURE [DSA] LAB PROGRAM | ALL PROGRAMS

DSA – Data Structure and Application Laboratory (21CS32) programs | VTU Engineering

Laboratory Component:

MODULE -1

  1. Design, Develop and Implement a menu driven Program in C for the following Array Operations
    a. Creating an Array of N Integer Elements
    b. Display of Array Elements with Suitable Headings
    c. Exit.
    Support the program with functions for each of the above operations.

Get Program

  1. Design, Develop and Implement a menu driven Program in C for the following Array operations
    a. Inserting an Element (ELEM) at a given valid Position (POS)
    b. Deleting an Element at a given valid Position POS)
    c. Display of Array Elements
    d. Exit.
    Support the program with functions for each of the above operations.

Get Program

MODULE – 2

  1. Design, Develop and Implement a menu driven Program in C for the following operations on STACK of Integers (Array Implementation of Stack with maximum size MAX)
    a. Push an Element on to Stack
    b. Pop an Element from Stack
    c. Demonstrate Overflow and Underflow situations on Stack
    d. Display the status of Stack
    e. Exit
    Support the program with appropriate functions for each of the above operations

Get Program

  1. Design, Develop and Implement a Program in C for the following Stack Applications
    a. Evaluation of Suffix expression with single digit operands and operators: +, -, *, /, %, ^
    b. Solving Tower of Hanoi problem with n disks

Get Program for A

Get Program for B

MODULDE – 3

  1. Singly Linked List (SLL) of Integer Data
    a. Create a SLL stack of N integer.
    b. Display of SLL
    c. Linear search. Create a SLL queue of N Students Data Concatenation of two SLL of integers.

Get Program for SLL of Integer using stack

Get Program for SLL of Student Data Using Queues

Get Program for SLL of Concatenation of two SLL using Queue

  1. Design, Develop and Implement a menu driven Program in C for the following operationson Doubly Linked List (DLL) of Professor Data with the fields: ID, Name, Branch, Area of specialization
    a. Create a DLL stack of N Professor’s Data.
    b. Create a DLL queue of N Professor’s Data
    Display the status of DLL and count the number of nodes in it.

Get Program

MODULE – 4

  1. Given an array of elements, construct a complete binary tree from this array in level order fashion. That is, elements from left in the array will be filled in the tree level wise starting from level 0. Ex: Input :
    arr[] = {1, 2, 3, 4, 5, 6}
    Output : Root of the following tree
    1
    / \
    2 3
    / \ /\
    4 5 6

Get Program

  1. Design, Develop and Implement a menu driven Program in C for the following operations on Binary Search Tree (BST) of Integers
    a. Create a BST of N Integers
    b. Traverse the BST in Inorder, Preorder and Post Order

Get Program

MODULE – 5

  1. Design, Develop and implement a program in C for the following operations on Graph (G) of cities
    a. Create a Graph of N cities using Adjacency Matrix.
    b. Print all the nodes reachable from a given starting node in a diagraph using DFS/BFS method.

Get Program

2. Design and develop a program in C that uses Hash Function H:K->L as H(K)=K mod m(reminder method) and implement hashing technique to map a given key K to the address space L. Resolve the collision (if any) using linear probing.

Get Program

Leave a Reply

Your email address will not be published. Required fields are marked *