Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Lab 1
(Review on C Concepts)
1. Familiar with unix vi editor.
2. Write a C program to perform matrix multiplication using 2-Darray,
3. WAP to insert an element into an array and WAP to delete an element from an array.
4. WAP to merge two sorted arrays so that the resultant array is a sorted array and multiply a
constant with each element of the merged array. Design a function for each operation.
5. WAP to create a structure called BANK with the following members
■ Ace no Name
■ Type of ace (S/C)
■ Date of opening Address Amount
And do the following operations
■ Initialize the member
■ Deposit money
■ Withdraw money after checking minimum balance
■ Update information
• Display the details of an ace holder v-ite a separate function for each operation and
implement it in menu driven program.
Lab 2: (Searching)
1. Write C program to search a Key Value in a given list of floating point values using linear
search operation.
2. Write C programs that use both recursive and non recursive functions to perform the Binary
search operation for a Key value in a given list of integers:
Lab 3: (Sorting)
L Write a C program that implement Bubble Sort method to sort a given list of integers in
descending order.
2 A/rite a C program that implement Selection Sort method to sort a given list of integers in
descending order.
3 Write a C program that implement Insertion Sort method to sort a given list of integers in
descending order.
L.ab 5: (Stack)
1, Write a C program to create a stack using an array and perform push, pop & traversal
operation.
.: WAP to reverse a string using stack
:> WAP to check the parenthesis ({,}. (,). [,]) Of a inputted string.
*■ Solve the tower of Hanoi problem-using stack.
Lab 6: (Queue)
1 Write a C program to create a queue and perform insert, delete & Traversal Operation.
I Write a C program to create a circular queue and perform insert , delete & Traversal
Operation. .
Test Book:- "Data structure using C" by Sudipta Mukherjee, TMH Publication
i) \ ■•' ! *)
1
i i x- *