<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - binaryadder</title>
<link>http://snipplr.com/users/binaryadder/tags/bogosort</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 19:04:05 GMT</pubDate>
<item>
<title>(Java) Bogosort</title>
<link>http://snipplr.com/view/62346/bogosort/</link>
<description><![CDATA[ <p>My implementation of the best sorting algorithm ever: Bogosort!

Test code:

int[] deck = {64, 25, 12, 22, 11};  
Bogosort.verboseBogosort(deck);  

Output:


64 25 12 22 11  
22 64 25 11 12  
12 11 22 64 25  
12 64 25 22 11  
64 25 12 11 22  
12 25 22 64 11  
12 22 11 64 25  
12 22 64 11 25  
25 12 11 22 64  
64 25 11 12 22  
11 22 12 64 25  
25 12 11 64 22  
12 22 11 64 25   
25 64 22 12 11  
22 12 64 11 25  
22 64 25 11 12  
12 64 25 11 22  
12 64 25 11 22  
64 25 11 22 12  
11 64 22 12 25  
12 25 64 22 11  
11 25 22 12 64  
11 64 22 12 25  
25 22 64 11 12  
64 22 25 12 11  
12 22 64 11 25  
22 64 25 12 11  
12 11 22 25 64  
64 25 12 11 22  
12 64 25 11 22  
22 64 25 11 12  
25 22 64 12 11  
22 25 11 12 64  
22 64 25 11 12  
11 12 22 64 25  
22 12 25 11 64  
25 22 12 11 64  
64 22 12 11 25  
25 12 22 64 11  
11 12 64 25 22  
25 11 64 12 22  
64 22 11 12 25  
12 11 64 25 22  
64 11 25 12 22  
25 12 22 64 11  
11 64 25 22 12  
11 22 64 12 25  
11 22 64 25 12  
11 12 22 64 25  
25 64 12 22 11  
12 11 25 22 64  
12 11 25 22 64  
11 12 64 22 25  
11 12 22 25 64  
11 12 22 25 64</p> ]]></description>
<pubDate>Fri, 06 Jan 2012 13:23:02 GMT</pubDate>
<guid>http://snipplr.com/view/62346/bogosort/</guid>
</item>
</channel>
</rss>