Search:

Type: Posts; User: briguy

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    1,907

    Re: Shell Sort Comparisons and Exchanges

    the values being compared are
    int array[] = {1,2,3,4,5,6,7,8,9,10};
    maybe i'm wrong but shouldn't it make 9 comparisons if the array is already sorted?
  2. Replies
    3
    Views
    1,907

    Shell Sort Comparisons and Exchanges

    Im trying to count the comparisons and exchanges it take for Shell sort to sort a array of numbers 1-10. with the comparison counter where is is now (comp) and the exchange counter where it is (exch)...
Results 1 to 2 of 3