Thanks iMalc!
is swap() included in std namespace?
Type: Posts; User: ashir30000
Thanks iMalc!
is swap() included in std namespace?
Thanks for reply iMalc!
I considered using references to get answers to main(), but i think global will work better!
about bubble sort, the analysis you provided (0.5*(n*n - n)), resembles one of...
yes, i understand that i have to have counters, the only problem is where to place them?
i tried placing them under swaps and comparisons, but it doesn't give the right answer.
Here is my program!
Couple of things i need help with, is finding:
1)number of comparisons for each sort(i'm doing something already, but i don't think it's correct.
2)number of interchanges....