1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Sorting Algorithms

Discussion in 'Programming' started by saomcol, Nov 23, 2006.

  1. saomcol

    saomcol New Member

    how can I add a counter to the shell sort or insertion sort tha counts the number of compariisons that are made?
  2. saomcol

    saomcol New Member

    I also need a prog to implement the tower of hannoi
  3. saomcol

    saomcol New Member

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

    shabbir Administrator Staff Member

    Refer Tower of Hannoi.
  5. oleber

    oleber New Member

    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.
  6. clocking

    clocking New Member

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

Share This Page