![]() |
|
|
#1 |
|
Newbie Member
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 ![]() |
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?
|
|
|
|
|
|
#2 |
|
Newbie Member
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 ![]() |
Re: Sorting Algorithms
I also need a prog to implement the tower of hannoi
|
|
|
|
|
|
#3 |
|
Newbie Member
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 ![]() |
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?
|
|
|
|
|
|
#4 | |
|
Go4Expert Founder
![]() |
Re: Sorting AlgorithmsQuote:
|
|
|
|
|
|
|
#5 |
|
Go4Expert Member
![]() Join Date: Apr 2007
Location: Lisbon, Portugal
Posts: 37
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0 ![]() |
Re: Sorting Algorithms
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.
|
|
|
|
|
|
#6 |
|
Ambitious contributor
Join Date: Jun 2007
Posts: 122
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 ![]() |
Re: Sorting Algorithms
oh, if you try write the code to sort array of integer in C#. C# library supported it.
|
|
|
|
![]() |
|
More
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| Bookmarks | |
|
|
|
|