Data Structures and Algorithms20775 marksNumerical: bubble sort hand testComparison Sorting Algorithms
Hand test bubble sort with array of numbers 53, 42, 78, 3, 5, 2, 15 in ascending order.
Hand test bubble sort with array of numbers 53, 42, 78, 3, 5, 2, 15 in ascending order. [5]
Array (7 elements): $53, 42, 78, 3, 5, 2, 15$ Task: Sort in ascending order using bubble sort. Rule: Compare adjacent pairs $a[i]$ and $a[i+1]$; swap if $a[i] a[i+1]$. After each pass, the largest unsorted element bubbles to its correct position. --- Comparison Result Array ----------------------...