Re: Sorting Algorithms

Newbie Member
23Nov2006,19:55   #1
saomcol's Avatar
how can I add a counter to the shell sort or insertion sort tha counts the number of compariisons that are made?
Newbie Member
23Nov2006,20:01   #2
saomcol's Avatar
I also need a prog to implement the tower of hannoi
Newbie Member
24Nov2006,14:40   #3
saomcol's Avatar
Thanx for your reply but I still need another answer:how can I modifyu the program to solve four pole tower of hannoi?
Go4Expert Founder
24Nov2006,14:47   #4
shabbir's Avatar
Quote:
Originally Posted by saomcol
Thanx for your reply but I still need another answer:how can I modifyu the program to solve four pole tower of hannoi?
Refer Tower of Hannoi.
Go4Expert Member
2May2007,00:53   #5
oleber's Avatar
Let me be bad, the Bubble Sort is the best algorithm for near sorted lists.

This means, if the elements are in there places or really near and you need the list sorted (is used in games and military area), Bubble Sort may be your choise since works locally. Most of the other algorithm work globally.
Ambitious contributor
30Sep2007,12:50   #6
clocking's Avatar
oh, if you try write the code to sort array of integer in C#. C# library supported it.