|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
c++ merge sort help
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
PC Gamer
|
Hey I was given this problem to do in my computer science class and the teacher doesnt help us much and tends to think we will find the answers online, but to much research i have yet to find an answer. I was wondering if anyone can help me with this?
Attached is the pdf of the work. Thanks a lot in advance.
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | ||||||||||||
|
Overclocker in Training
|
is this legal?
what do you need help understanding? this is a neat resource for understanding how different sorts work. http://www.sorting-algorithms.com/ I hope nobody does your hw for you better to learn! merge sort is a great lesson in recursion, let me know what you need help with!
__________________
my new heroes: http://www.pugetsystems.com/submerged.php
|
||||||||||||
|
|
|
|
|
#3 (permalink) | |||||||||||||
|
AMD Overclocker
![]() |
If you need help with a specific question ask away.
|
|||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
PC Gamer
|
This is the question i have. How fast is the best possible search (in terms of Big-O)? and how fast is the best possible sort?
__________________
|
|||||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||||
|
Programmer
![]() |
Are you perchance using Introduction to Algorithms? That book is horribly written. Apparently this book is more comprehensible.
__________________Some links I had bookmarked: http://www.mycplus.com/forum/post1172.htm http://www.itl.nist.gov/div897/sqg/dads/terms.html Also, Wikipedia has some good info on various sorting methods including pseudo code.
Last edited by version2 : 10-13-09 at 11:01 PM |
|||||||||||||
|
|
|
|
|
#6 (permalink) | |||||||||||||
|
With great difficulty
![]() |
The lower bound for a comparison based sort is nlogn (many algorithms reach this asymptotic complexity - it is important to look at the constant factors). There are special cases that are linear such as bucket sort, but those aren't sorting as in sorting a list.
__________________
|
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|