Professional Documents
Culture Documents
Lab Experiment Name: Implementation of Bubble Sort, Selection Sort and Insertion
Sort
Student Details
Name ID
Md.Al-Rouman 223002036
2.OBJECTIVES/AIM [2 marks]
This study aims to enhance the efficiency of fundamental sorting algorithms - bubble sort, insertion sort,
and selection sort. The focus is on optimizing these algorithms, evaluating their strengths and
weaknesses, and identifying areas for improvement. The goals include understanding their computational
complexities, space and time efficiencies, and adaptability to different datasets. The study also explores
error handling mechanisms and algorithmic modifications to enhance reliability. Additionally, it
investigates the impact of dataset characteristics on algorithm performance and demonstrates the
practical significance of these optimized sorting techniques in real-world applications.
2. PROCEDURE / ANALYSIS / DESIGN [3 marks]
Insertion Sort: Insertion sort is a sorting algorithm that builds the final sorted list one item at a time. It is
much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge
Selection sort:selection sort is a straightforward and intuitive sorting Algorithms. The algorithm works by
dividing the input list into two parts: the sorted and the unsorted sublists. The sorted sublist is initially
empty, while the unsorted sublist contains all the elements. The algorithm repeatedly selects the smallest
(or largest, depending on the order) element from the unsorted sublist and swaps