Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   Sorting Algorithms (http://www.go4expert.com/forums/sorting-algorithms-t337/)

saomcol 23Nov2006 19:55

Re: Sorting Algorithms
 
how can I add a counter to the shell sort or insertion sort tha counts the number of compariisons that are made?

saomcol 23Nov2006 20:01

Re: Sorting Algorithms
 
I also need a prog to implement the tower of hannoi

saomcol 24Nov2006 14:40

Re: Sorting Algorithms
 
Thanx for your reply but I still need another answer:how can I modifyu the program to solve four pole tower of hannoi?

shabbir 24Nov2006 14:47

Re: Sorting Algorithms
 
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.

oleber 2May2007 00:53

Re: Sorting Algorithms
 
Let me be bad, the Bubble Sort is the best algorithm for near sorted lists:confused:.

This means, if the elements are in there places or really near and you need the list sorted (is used in games :eek: and military area), Bubble Sort may be your choise since works locally. Most of the other algorithm work globally.

clocking 30Sep2007 12:50

Re: Sorting Algorithms
 
oh, if you try write the code to sort array of integer in C#. C# library supported it.


All times are GMT +5.5. The time now is 21:26.