Professional Documents
Culture Documents
Lab Journal - 03 (DSA)
Lab Journal - 03 (DSA)
Objective(s):
Upon completion of this lab session, learners will be able to:
• Sort the elements in array using different sorting techniques.
Lab Tasks:
Task 1
Create a program that take an array of 10 inputs from the user and generate the sorted out put
using the following Algorithms;
Bubble Sort
Insertion Sort
Selection Sort
Task 2
Translate binary search and insertion algorithm into a program which finds either the location
LOC where ITEM appears in ARRAY or the location LOC where ITEM should be inserted
into ARRAY.
Note : Attempt all tasks and get them checked by your Lab Instructor.