Q2 answer needed
1.1. Write a permutation of 9 integers which is not in sorted order. Sort the integers using the sortingalgorithms: Bubble Sort, Insertion Sort, Selection Sort and Quick Sort. Assume that the numbers arestored in an array. You should show the contents of the array after each iteration for all thealgorithms.
1.2. Suppose you are to sort elements which are stored in a very large sorted array followed by a relativelysmall number of “random” elements. Which of the sequential sorting algorithms from Part 1.1 wouldbe especially suitable for such a task? Justify your choice.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here