Question: [8 marks] Consider the following array of values. [O] [1] [2] [3] [4] [5] [6] 1045 -80 66 - 90 33 a. Show how to
![[8 marks] Consider the following array of values. [O] [1] [2]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2e508906fe_37666f2e50804b1b.jpg)
[8 marks] Consider the following array of values. [O] [1] [2] [3] [4] [5] [6] 1045 -80 66 - 90 33 a. Show how to sort these numbers in ascending order (smallest to largest) using Insertion sort. Show how the list looks after the algorithm makes first and then second pass (iteration) over the data. b. Show how to sort these numbers in descending order (largest to smallest) using Bubble sort. Show how the list looks after the algorithm makes first and then second pass iteration) over the data. Fix the largest item first
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
