Skip to content

CSE21P6 - Data Structure Lab

Sorting, Searching, and Hashing

Term 161

Exp 8. Write a C program to sort the following elements using merge sort algorithm. All elements must be taken from keyboard.

44, 33, 11, 55, 77, 100, 42, 60, 99, 25, 88, 66.

Exp 9. Write a C program to sort the following elements using Quick sort algorithm. All elements must be taken from keyboard.

44, 33, 11, 55, 77, 100, 42, 60, 99, 25, 88, 66.

Term 171

Exp 1. Write a program in C to sort the following elements using Quick Sort algorithm. All elements must be taken from keyboard.

34, 23, 11, 45, 57, 100, 52, 70, 89, 15, 77, 65.

Exp 2. Write a program in C to implement binary search algorithm.

Exp 5. Write a program in C to sort an array using bubble sort algorithm.

Exp 6. Write a program in C to sort an array using insertion sort algorithm.

Term 191

Exp 1. Write a C program to sort the following elements using Insertion sort algorithm. All elements must be taken from keyboard.

36, 92, 84, 25, 41, 68, 27, 54, 79, 66

Exp 2. Write a C program to sort the following elements using Bubble Sort algorithm. All elements must be taken from keyboard.

36, 92, 84, 25, 41, 68, 27, 54, 79, 66

Exp 6. Write a C program to sort the following elements using Quick Sort algorithm. All elements must be taken from keyboard.

36, 92, 84, 25, 41, 68, 27, 54, 79, 66

Exp 8. Write a C program to implement binary search algorithm.

Exp 10. Write a C program to sort the following elements using Selection sort algorithm. All elements must be taken from keyboard.

44, 33, 11, 55, 77, 100, 42, 60, 99, 25, 88, 66.

Term 201

Exp 4. Write a program for binary search algorithm.

Exp 9. Write a program to implement hashing technique.

Term 211

Exp 2. Write a program in C to sort the following elements using Quick Sort algorithm. All elements must be taken from keyboard.

34, 23, 11, 57, 1, 52, 7, 89, 15, 77, 65.