Use the Shell Sort algorithm to rearrange the numbers 5, 9, 1, 7, 4, 6 into ascending order. Explain the method, demonstrate all passes and state the total number of comparisons and swaps.
Use the Shell Sort algorithm to rearrange the numbers 5, 9, 1, 7, 4, 6 into ascending order. Explain the method, demonstrate all passes and state the total number of comparisons and swaps. (8 marks) Using the list of numbers, 5, 9, 1, 7, 4, 6 given in question 1, Use the Quicksort Algorithm to […]