-
Notifications
You must be signed in to change notification settings - Fork 28
Comparison based Sort
Jinho D. Choi edited this page Sep 6, 2017
·
15 revisions
- Create classes
ShellSortPratt
andShellSortHibbard
undersort.comparison
extendingShellSort
. -
ShellSortPratt
andShellSortHibbard
must use the Pratt and Hibbard sequences, respectively. Feel free to use the code inShellSortKnuth
: - Pratt: successive numbers of the form 2p3q (1, 2, 3, 4, 6, 8, 9, 12, ...)
- Hibbard: 2k - 1 (1, 3, 7, 15, 31, 63, ...)
- Run the unit test and make sure your sorting algorithms perform accurately.
- Compare the speed between
ShellSortPratt
,ShellSortHibbard
, andShellSortKnuth
using the unit test. Write a report about the speed comparison and save it asquiz2.pdf
. - Submit
ShellSortPratt.java
,ShellSortHibbard.java
, andquiz2.pdf
: https://canvas.emory.edu/courses/32845/assignments/75152
Copyright © 2014-2017 Emory University - All Rights Reserved.