21 Section Five 12 Marks Given Sequence Numbers 2 5 87 7 4 0 2 Question 3 Marks Sort Incre Q37138555

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

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


Answer


[-2, 5, 87, 7, 4, 0, 2]1) insert 5 into sorted position[-2, 5,

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.