2. Basic Assignments/ Commands
2. Basic Assignments/ Commands
Merge Sort
Merge Sort
Difference between Bubble, Selection and Insertion Sort
Bubble Sort: Repeatedly moves the largest element to its correct position by swapping adjacent elements.
Selection Sort: Repeatedly selects the smallest element and places it in its correct position.
Insertion Sort: Repeatedly inserts the current element into its correct position in the already sorted part of the array.