model practical.ds
model practical.ds
Write a c program to implement circular queue ADT to do the insertion and deletion
operation.
4.Write a c program to implement the polynomial addition and multiplication. Use linked
list implementation.
6.Write a c program to create a binary search tree by satisfying the property, the balancing
factor for every node is at most 1.
9.Find the shortest paths from the source to all vertices in the given graph using Dijkstra’s
algorithm.
10 Write a C program to implement Prim’s Algorithm for suitable example.
13 Write a C programs for implementing the following sorting methods to arrange a list of
integers in ascending order:
15 Substantiate the importance of MAX Heap in insertion and deletion by programming using C
1. Write a c program to implement circular queue ADT to do the insertion and deletion
operation ..
2 Write a c program to implement the following operations for Queue ADT using Array
implementation.
3 Write a c program to implement the following operations for Stack ADT using Array
implementation
Write a program in C to insert a new node at the end of a Singly Linked List.
Write a program in C to delete a node from the middle of Singly Linked List.
Write a c program to implement the polynomial addition and multiplication. Use linked
list implementation
Write a C program to implement infix to postfix and prefix conversion for the following
6. Write a c program to create a binary search tree by satisfying the property, the balancing
factor for every node is at most 1
How to implement the search operation on a binary search tree after adding new element.
Write a C program, to implement the above.
i) Search
ii) Insertion
Iii)Deletion
4. Write a C program to construct an AVL tree by inserting numbers from 1 to 8.
5. Construct AVL tree for the following data 21,26,30,9,4,14,28,18,15,10,2,3,7 by using C
implementation.
6. Construct AVL tree by inserting numbers 1 to 10 by implementing C program.
9. Write a C program to insert and delete an element in Max heap binary tree.
10. Write a C program to find Maximum and minimum of element in max heap tree.
10. Find the shortest paths from the source to all vertices in the given graph
using Dijkstra’s algorithm.
11. Using Dijkstra’s Algorithm, find the shortest distance from source vertex ‘S’ to
remaining vertices in the following graph-
12. Find shortest path between all the vertices using Dijkstra’a
Algorithm.
ii) Construct the minimum spanning tree (MST) for the given graph using Prim’s
Algorithm-
iii. Write a C program to construct MST using Prims algorithm for the given graph
iv) Write a C program to implement Minimum Spanning Tree using Prim‘s algorithm
ii) Consider an array of size 7 with elements 13, 9, 21, 15, 39, 19, and 27 and find the
element 39 in the list by implementing linear search algorithm in C language.
ii) Find the element 41 from the given list, by implementing sequential search
algorithm in C language,
Write a C program to sort the given unsorted array of elements using insertion sort
{12,31,25,8,32,17}
Write a C program to sort the given unsorted array of elements using insertion sort
{9, 7, 11, 13, 12, 8}Use linear probing technique for collision
resolution.
1. Write a c program to implement the following operations for Queue ADT using Array
implementation.
2. Write a program in C to insert a new node at the end of a Singly Linked List.
8. Write a C program to insert and delete an element in Max heap binary tree.
10. Construct the minimum spanning tree (MST) for the given graph using Prim’s Algorithm-
11. Find the number 18 in the given list by implementing the binary search tree in C
language. {20,14,6,8,12,10,4,16,18,2}
12. Write a C program to sort the given unsorted array of elements using insertion sort
{12,31,25,8,32,17}
13. Write a C program to implement selection sort for the given array
3. Write a c program to perform push and pop operation on stack. The stack
should be implemented using linked list method.
9.
Find shortest path between all the vertices using Dijkstra’a Algorithm.
12 Write a function to search a given element x in arr[] and return the index
of x in the array using Linear search and Binary search.
Input: arr[] = {10, 20, 30, 50, 60, 80, 110, 130, 140, 170}, x = 110
14. Write a C program to implement LIFO structure using Linked List method.
16, Write a C program to create a binary search tree by satisfying the property, the
balancing factor for every node is at most 1.
18 Execute the push and pop operation performed on stack of size 7 using C
program.
5. Write a C program to implement infix to postfix and prefix conversion for the
following
7. Using Dijkstra’s Algorithm, find the shortest distance from source vertex ‘S’ to
remaining vertices in the following graph-
ii)Write a C program to implement merge sort for the {38, 27, 43, 3, 9, 82, 10}
14 Write a C program to implement List ADT using linked list method to perform the following
17 Write a C program to implement circular queue data structures using array implementation.
18 Write a C program to implement singly linked list to perform the following operations
i) Creation
ii) Insertion
iii) Deletion
19 Construct the minimum spanning tree (MST) for the given graph using Prim’s
Algorithm-