Search:

Type: Posts; User: mia_tech

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: displaying every 1000 comparisons in merge sort

    test whether the number of comparison is over 1000, if it is then print every 1000th number, and then print the total number of comparisons
  2. [SOLVED] Re: displaying every 1000 comparisons in merge sort

    ok, I got it.... is working now, but I have one more question, if I need to display the same for both selection sort and merge sort, wouldn't be better to create a method for that?
  3. [SOLVED] Re: displaying every 1000 comparisons in merge sort

    I was thinking to implement a if statement right after counter that output to screen in increments of 1000, but it is not working, it outputs wired numbers, besides what if total comparisons are...
  4. [SOLVED] displaying every 1000 comparisons in merge sort

    gusy, I have the following merge sort algorithm, and if the number of comparisons is over 1000, I need to display every 1000th comparison, but in this case is kind of tricky since the merge sort is...
Results 1 to 4 of 4