<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Something Superb &#187; code</title>
	<atom:link href="http://somethingsuperb.com/weblog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://somethingsuperb.com/weblog</link>
	<description>A superb weblog.</description>
	<lastBuildDate>Mon, 18 Jul 2011 02:43:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Four Sorts, Java</title>
		<link>http://somethingsuperb.com/weblog/2010/10/12/four-sorts-java/</link>
		<comments>http://somethingsuperb.com/weblog/2010/10/12/four-sorts-java/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 06:33:04 +0000</pubDate>
		<dc:creator>kgrube</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://somethingsuperb.com/weblog/?p=488</guid>
		<description><![CDATA[Here&#8217;s a project I&#8217;ve been working on in one of my CS classes. Click the button below to launch the application: The application compares the four sorting algorithms, quick sort, heap sort, merge sort and insertion sort, by graphically displaying the data members of the tree as they get sorted. Here&#8217;s the source if you&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p><font size=3>Here&#8217;s a project I&#8217;ve been working on in one of my CS classes.<br />
Click the button below to launch the application:<br />
<center><br />
<script src="http://www.java.com/js/deployJava.js"></script><br />
    <script>
        // using JavaScript to get location of JNLP file relative to HTML page
        var url = "http://somethingsuperb.com/files/java/foursort/foursort_webstart.jnlp";
        deployJava.createWebStartLaunchButton(url, '1.6.0');
    </script><br />
</center><br />
The application compares the four sorting algorithms, quick sort, heap sort, merge sort and insertion sort, by graphically displaying the data members of the tree as they get sorted.   Here&#8217;s the <a href="http://somethingsuperb.com/files/java/foursort/FourSort.zip">source</a> if you&#8217;re interested.  </p>
<p>  The data structure used to store the data members is a tree that implements the ArrayList functions add, set, get, isEmpty, and size.   The tree stores nodes and the nodes store dots: <br />
<code>class Node {</p>
<p>    private int n;<br />
    private Node parent;<br />
    private Node left;<br />
    private Node right;<br />
    private Dot dot;<br />
...<br />
}<br />
</code></p>
<p><code>class Dot {</p>
<p>    int value;<br />
...<br />
}</code></p>
<p>
Post any comments below.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://somethingsuperb.com/weblog/2010/10/12/four-sorts-java/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hello World!</title>
		<link>http://somethingsuperb.com/weblog/2008/07/22/hello-world/</link>
		<comments>http://somethingsuperb.com/weblog/2008/07/22/hello-world/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 06:28:11 +0000</pubDate>
		<dc:creator>kgrube</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://somethingsuperb.com/ssb/?p=1</guid>
		<description><![CDATA[class HelloWorld{ public static void main (String [] args){ System.out.println("Hello World!"); } }]]></description>
			<content:encoded><![CDATA[<p><code>class HelloWorld{<br />
public static void main (String [] args){<br />
System.out.println("Hello World!");<br />
}<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://somethingsuperb.com/weblog/2008/07/22/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

