Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 10-13-09   #1 (permalink)
PC Gamer
 
HostageX's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Virginia
Posts: 65

Rep: 4 HostageX Unknown
Unique Rep: 4
Trader Rating: 0
Default c++ merge sort help

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.
Attached Files
File Type: pdf Lab5-MergeSort.pdf (54.3 KB, 46 views)
__________________
System: Current Rig
CPU
E2200
Motherboard
Gigabyte S-series
Memory
4gb gskill
Graphics Card
9800gt
Hard Drive
180gb western,digital 250gb seagate sata
Sound Card
integrated
Power Supply
550w Xclio
Case
Coolermaster Turion
CPU cooling
Stock
GPU cooling
Stock
OS
Windows Vista
Monitor
22" Hanns G
HostageX is offline   Reply With Quote
Old 10-13-09   #2 (permalink)
Overclocker in Training
 
venar303's Avatar
 
intel ati

Join Date: Aug 2007
Location: NY
Posts: 103

Rep: 3 venar303 Unknown
Unique Rep: 3
Trader Rating: 0
Default

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

System: teh_pwnage
CPU
Core 2 Duo e6600 L631B120
Motherboard
Asrock Dual
Memory
G.SKill DDR2-800
Graphics Card
X1950XT
Hard Drive
Seagate 320gb
Power Supply
Hiper 580W
Case
Xion Hydraulic
CPU cooling
D-Tek Fuzion
GPU cooling
Stock
OS
Windows XP
Monitor
Samsung, 19" flat
venar303 is offline   Reply With Quote
Old 10-13-09   #3 (permalink)
AMD Overclocker
 
decompiled's Avatar
 
amd nvidia

Join Date: Feb 2006
Location: Redsox Nation
Posts: 705

Rep: 78 decompiled is acknowledged by some
Unique Rep: 68
Hardware Reviews: 9
Trader Rating: 0
Default

If you need help with a specific question ask away.

System: Slow Poke
CPU
AMD X2 4400
Motherboard
MSI K8N Diamond +
Memory
3gb TCC5
Graphics Card
eVGA 7900GS
Hard Drive
74gb Raptor + Raid 1 640's
Sound Card
Audigy SE
Power Supply
OCZ 600 ModXstream
Case
Antec 1200
CPU cooling
Stock AMD
GPU cooling
Stock eVGA
OS
Windows 7 FTW Edition
Monitor
Dell 1905FP
decompiled is offline   Reply With Quote
Old 10-13-09   #4 (permalink)
PC Gamer
 
HostageX's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Virginia
Posts: 65

Rep: 4 HostageX Unknown
Unique Rep: 4
Trader Rating: 0
Default

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?
__________________
System: Current Rig
CPU
E2200
Motherboard
Gigabyte S-series
Memory
4gb gskill
Graphics Card
9800gt
Hard Drive
180gb western,digital 250gb seagate sata
Sound Card
integrated
Power Supply
550w Xclio
Case
Coolermaster Turion
CPU cooling
Stock
GPU cooling
Stock
OS
Windows Vista
Monitor
22" Hanns G
HostageX is offline   Reply With Quote
Old 10-13-09   #5 (permalink)
Programmer
 
intel nvidia

Join Date: Nov 2006
Posts: 1,977

Rep: 132 version2 is acknowledged by manyversion2 is acknowledged by many
Unique Rep: 111
Trader Rating: 9
Default

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.
__________________
System: Duo
CPU
Core 2 Duo E6600 (B2)
Motherboard
Asus P5B Deluxe
Memory
G.SKILL HZ 2x1gb DDR2 800
Graphics Card
EVGA 9600GSO 384mb (G92)
Hard Drive
1TB + WD 640gb, Maxtor 160gb
Sound Card
Audigy 2 ZS
Power Supply
FSP 450W
Case
Ultra Aluminus
CPU cooling
Noctua U12P
GPU cooling
Stock
OS
Win 7 x64, Ubuntu
Monitor
20.1'' SOYO LCD

Last edited by version2 : 10-13-09 at 11:01 PM
version2 is offline   Reply With Quote
Old 10-14-09   #6 (permalink)
With great difficulty
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 5,210

Rep: 614 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 370
FAQs Submitted: 6
Trader Rating: 5
Default

Quote:
Originally Posted by HostageX View Post
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?
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.
__________________
System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 07:34 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.12194 seconds with 9 queries