Search:

Type: Posts; User: husain2213

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,971

    Re: quicksort and bubblesort comparison

    Thanks Norm. This code is full of mistakes, i'm finding out, but i've been fixing them one by one.
    I think I fixed the counts, but I broke some other stuff on the way :confused:
    Quick sort is now...
  2. Replies
    7
    Views
    1,971

    Re: quicksort and bubblesort comparison

    no, its not completely solved yet! here is what's wrong:

    1- quick sort still takes forever for larger array sizes (I don't think it is supposed to).
    2- comparison count returned by quicksort is...
  3. Replies
    7
    Views
    1,971

    Re: quicksort and bubblesort comparison

    I think there was a problem in my swap() method, but its fixed now and the arrays are sorted.
    There are no infinite loops, but quicksort is.. well, not quick. It takes forever and doesn't return a...
  4. Replies
    7
    Views
    1,971

    quicksort and bubblesort comparison

    Hello everyone,
    I'm having trouble with my assignment and need you're help!
    I'm supposed to write the code for bubblesort and quicksort and test them under different array sizes while recording the...
Results 1 to 4 of 4