CTDL Lab2
CTDL Lab2
VÀ GIẢI THUẬT
LAB MANUAL
Semester : I
Prepared by
MSc. KhangVQH
1|Page
S. No. Experiment
1
SEARCHING TECHNIQUES
2
SORTING TECHNIQUES
3
SORTING TECHNIQUES
4 IMPLEMENTATION OF STACK AND QUEUE
5
APPLICATIONS OF STACK
6 IMPLEMENTATION OF SINGLE LINKED LIST
2|Page
WEEK - 2
SORTING TECHNIQUES
2.1 OBJECTIVE:
1. Write a C program for implementing Bubble sort techniques to arrange a list of integers in ascending
order.
2. Write a C program for implementing insertion sort techniques to arrange a list of integers in ascending
order.
3|Page
2.3 IMPLEMENTATION:
2. 4 LAB ASSIGNMENT:
1. Formulate a program that implement Bubble sort, to sort a given list of integers in descending order.
2. Compose a program that implement Insertion sort, to sort a given list of integers in descending
order.
3. Formulate a program to sort N names using Bubble sort.
4. Write a program to sort N employee records based on their salary using insertion sort.
5. A class contains 50 students who acquired marks in 10 subjects write a program to display top 10
students roll numbers and marks in sorted order by using bubble sorting technique.
4|Page