CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Java and JSP (http://www.codingforums.com/forumdisplay.php?f=54)
-   -   Doubts! Recursive Bubble Sort! (http://www.codingforums.com/showthread.php?t=274519)

sorlaker 09-28-2012 06:42 AM

Doubts! Recursive Bubble Sort!
 
Can anyone explain to me each step of this code?
I know that its a recursive bubble sort but i can't figure out how he does that.

Here is the code.
http://pastebin.com/fFbBbPBa

I know is that it extends with augment() method (Line 24). But i don't know why it uses that boolean array in both cases (next() and augment()).
I can't understand the part after it compares a > b and returns true. So a > b (Line 83).

Thanks! I really need this! :(


All times are GMT +1. The time now is 04:54 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.