IntroductiontoAlgorithms3rdEdSolutions
Thursday, February 7, 2013
8.2-2
Prove that COUNTING-SORT is stable. COUNTING-SORT is stable because the lines 10 -12 picks the last occurrence of the same value and inserts in the last possible place. All future occurrences will be inserted in front of the last occurrence.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment