Results 1 to 6 of 6
Thread: Sorting Comparisons
- 07-27-2011, 03:06 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 78
- Rep Power
- 0
Sorting Comparisons
Can someone point me to a good resource that would show me for instance, how many comparisons a sort will make if:
The data is already ordered
The data is in reverse order
Etc
Something comparing the different sorting algorithms, or can the above be derived from the computational complexity of the sorts in question.
- 07-27-2011, 03:18 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Why did you feel it necessary to re ask this question? If your previous question wasn't answered in the manner you wanted, perhaps you should have re specified the question.
Also, why not think about it and explain to us what you think the answers are.
- 07-27-2011, 03:19 AM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Double post. Please continue your discussion where you started it: Sorting Algorithms.
In particular ask Junky if you don't understand his point that this is not a question about sorting. (I mean if the data were already sorted why would any comparisons be done?) Also you could ask if you are unsure of his use of the O() notation and its connection with your original question.
-
Agree with the above. Double posting and splitting discussion is unfair to the volunteers here and is bad even rude forum etiquette, especially when you posted this before replying to Junky.
Does anyone see a reason not to lock this thread?
- 07-27-2011, 03:31 AM #5
Member
- Join Date
- Feb 2011
- Posts
- 78
- Rep Power
- 0
partially because I've noticed that if the person helping me feels as though they have answered my originally question (and junky did a thorough job of answering the 1st question, as it was not very detailed), they do not post any more on that topic.
- 07-27-2011, 03:33 AM #6
Member
- Join Date
- Feb 2011
- Posts
- 78
- Rep Power
- 0
Similar Threads
-
Multiple comparisons
By malaguena in forum New To JavaReplies: 4Last Post: 05-18-2011, 11:37 AM -
little help with sorting
By drgnfire25 in forum New To JavaReplies: 3Last Post: 01-15-2011, 09:23 PM -
Help in sorting
By nn12 in forum New To JavaReplies: 3Last Post: 01-08-2011, 06:15 PM -
Keeping track of Copies + Comparisons in Sort Methods
By VinceGuad in forum New To JavaReplies: 0Last Post: 03-12-2009, 04:07 AM -
sorting
By jot321 in forum New To JavaReplies: 18Last Post: 10-02-2008, 10:30 AM


LinkBack URL
About LinkBacks

Bookmarks