2077 7

CSC211 · 2077 · 5 marks

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]

Data Structures and AlgorithmsChapter 6: SortingComparison Sorting AlgorithmsNumerical: bubble sort hand test

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 ----------------------...