954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Could someone please help me with a bucket sort.

I am wrote a program that generates 20 random numbers from 1-99 and put them into an array. I am trying to sort them with a bucket sort, but I can't figure out how to do it. I have searched google and yahoo for information but everything I find just give me snip its of code. Which doesn't help me figure out how to put it into my code. I have a book but it covers every type of sort but a bucket sort. Please help me.

lulug76
Newbie Poster
9 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

Clickie . Bucket sort isn't as common of a term as you might think. It's actually more common to hear about variants such as radix sort.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 
I am wrote a program that generates 20 random numbers from 1-99 and put them into an array. I am trying to sort them with a bucket sort, but I can't figure out how to do it. I have searched google and yahoo for information but everything I find just give me snip its of code. Which doesn't help me figure out how to put it into my code. I have a book but it covers every type of sort but a bucket sort. Please help me.

I assume by now that you've found the answer, but if not check out: http://www.codecogs.com/d-ox/array/sort/bucketsort.php

willzyba
Newbie Poster
3 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

Please dont resurrect dead threads like a shaman.
Thread closed.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You