Homework 6 - part 2 - /chapter11 /#1. Sort by hand the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//chapter11 //#1. Sort by hand the array of integers 5 7 4 9 8 5 6 3 into ascending order //by using a selection sort. show the contents of the array each time the sort changes it. 5 7 4 9 8 5 6 3 3 7 4 9 8 5 6 5 3 4 7 9 8 5 6 5 3 4 5 9 8 7 6 5 3 4 5 5 8 7 6 9 3 4 5 5 6 7 8 9 3 4 5 5 6 7 8 9 3 4 5 5 6 7 8 9 //#2. Repeat #1 ,use an insertion sort. 5 7 4 9 8 5 6 3 4 5 7 9 8 5 6 3 4 5 7 9 8 5 6 3 4 5 7 8 9 5 6 3 4 5 5 7 8 9 6 3 4 5 5 6 7 8 9 3 3 4 5 5 6 7 8 9 //#3. Repeat #1 ,use an Shell sort. 5 7 4 9 8 5 6 3 (Space :4) 5 7 4 9 8 5 6 3 5 5 4 9 8 7 6 3 5 5 4 9 8 7 6 3 5 5 4 3 8 7 6 9 5 5 4 3 8 7 6 9 (Space :2)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Homework 6 - part 2 - /chapter11 /#1. Sort by hand the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online