21 Section Five (12 marks) Given a sequence A of numbers -2,5, 87,7,4,0,2. ·[Question A, 3 marks] Sort A in increasing order using Insertion Sort. Illustrate your operations Show transcribed image text 21 Section Five (12 marks) Given a sequence A of numbers -2,5, 87,7,4,0,2. ·[Question A, 3 marks] Sort A in increasing order using Insertion Sort. Illustrate your operations
Solution
[-2, 5, 87, 7, 4, 0, 2]1) insert 5 into sorted position[-2, 5,
OR
OR