View Single Post
  #3 (permalink)  
Old 01-25-2008, 10:30 AM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Welcome to the Java Forums rhm

For starters, 1 out of 3, have a look at this one particular line for your Bubble Sort:
Code:
for (int j=0; i < i-pass; i++) {
... it should be:
Code:
for (int j=0; j < i-pass; j++) {
... and it should work.

If I had more time I would go into your MergeSort.. even though it looks a bit ugly.. no offense. I definitely would break that up into smaller components and attempt that again. If someone doesn't assist by the time I finish work tomorrow I'll give it a go. For the bucket tho, that's one I've never implemented... so maybe someone can assist with that one or I'll learn it!

See you around!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Reply With Quote