<?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>Kyle Brady:  Blog &#187; Code Samples</title>
	<atom:link href="http://www.kyle-brady.com/tag/code-samples/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kyle-brady.com</link>
	<description>coherent thoughts on diverse topics</description>
	<lastBuildDate>Fri, 20 Nov 2009 12:10:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='www.kyle-brady.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>CIS37A at Mission College &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/07/23/cis37a-at-mission-college/</link>
		<comments>http://www.kyle-brady.com/2009/07/23/cis37a-at-mission-college/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 07:30:33 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Mission College]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=3434</guid>
		<description><![CDATA[During summer session, I completed a requirement at SJSU by taking CIS37A, an "Intro to C" class.  Although the homeworks were admittedly done rather last-minute.

The code is all pretty hacky, ugly, and "it works for their problem statement, move on" style, but it's been posted anyways.

Check out the missionProjects/cis37A repository.]]></description>
			<content:encoded><![CDATA[During summer session, I completed a requirement at SJSU by taking CIS37A, an "Intro to C" class.  Although the homeworks were admittedly done rather last-minute.<br />
<br />
The code is all pretty hacky, ugly, and "it works for their problem statement, move on" style, but it's been posted anyways.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=missionProjects&amp;path=%2Fcis37A%2F#path_cis37A_">Check out the missionProjects/cis37A repository.</a>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/07/23/cis37a-at-mission-college/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InlineAssembly in C &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/05/26/inlineassembly-in-c/</link>
		<comments>http://www.kyle-brady.com/2009/05/26/inlineassembly-in-c/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:40:01 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Inline Assembly]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=2631</guid>
		<description><![CDATA[The final homework project package for my CS47 class has been posted, albeit weeks after being due - I had some local SVN Client problems.

Essentially, we had to convert some C functions into their inline assembly counterparts.  See the PDF file for details.

All code is available via SVN, and a web-browsing utility.

Note:  I am not [...]]]></description>
			<content:encoded><![CDATA[The final homework project package for my CS47 class has been posted, albeit weeks after being due - I had some local SVN Client problems.<br />
<br />
Essentially, we had to convert some C functions into their inline assembly counterparts.  See <a href="http://projects.kyle-brady.com/svn/filedetails.php?repname=sjsuProjects&amp;path=%2Fcs47%2FInlineAssembly%2Ftrunk%2FProject+Description.pdf">the PDF file</a> for details.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs47%2FInlineAssembly%2Ftrunk%2F#path_cs47_InlineAssembly_trunk_">All code is available via SVN, and a web-browsing utility</a>.<br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/05/26/inlineassembly-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NeedlemanWunsch, Using the N-W Algorithm, in Java &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/04/29/needlemanwunsch-using-the-n-w-algorithm-in-java/</link>
		<comments>http://www.kyle-brady.com/2009/04/29/needlemanwunsch-using-the-n-w-algorithm-in-java/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 07:15:55 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=2002</guid>
		<description><![CDATA[This is basically an excuse to implement the Needleman-Wunsch algorithm, a dynamic programming method.  Examples are given for usage below.

It was due at midnight tonight, and I was done earlier, so this is a scheduled post.

All code is now available via SVN, and a web browsing utility.

Note:  I am not advocating using this code in place [...]]]></description>
			<content:encoded><![CDATA[This is basically an excuse to implement the <a href="http://en.wikipedia.org/wiki/Needleman-Wunsch_algorithm">Needleman-Wunsch algorithm</a>, a <a href="http://en.wikipedia.org/wiki/Dynamic_programming">dynamic programming</a> method.  Examples are given for usage below.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs146%2FNeedlemanWunsch%2Ftrunk%2F#path_cs146_NeedlemanWunsch_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/04/29/needlemanwunsch-using-the-n-w-algorithm-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>unrealTournament, Basic Functionality, Java vs. Jasmin &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/04/29/unrealtournament-basic-functionality-java-vs-jasmin/</link>
		<comments>http://www.kyle-brady.com/2009/04/29/unrealtournament-basic-functionality-java-vs-jasmin/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 07:15:19 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Jasmin]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=2010</guid>
		<description><![CDATA[This was a project to take pre-written Java code (note: created and property of Dr. Pearce), and translate it into modular Jasmin code.  The project structure uses inheritance, among other common Java "tricks", all of which had to be implemented in the Jasmin.  The project's scope, so to speak, was to mimic the basic functionality [...]]]></description>
			<content:encoded><![CDATA[This was a project to take pre-written Java code (note: created and property of <a href="http://www.cs.sjsu.edu/~pearce/">Dr. Pearce</a>), and translate it into modular Jasmin code.  The project structure uses inheritance, among other common Java "tricks", all of which had to be implemented in the Jasmin.  The project's scope, so to speak, was to mimic the basic functionality of <a href="http://en.wikipedia.org/wiki/Unreal_Tournament">Unreal Tournament</a>, if only in our minds.<br />
<br />
I think our Professor is a gamer.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs47%2FunrealTournament%2Ftrunk%2F#path_cs47_unrealTournament_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/04/29/unrealtournament-basic-functionality-java-vs-jasmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HackersPlan, Finding All-Vertices Shortest Paths, in Java &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/04/22/hackersplan-finding-all-vertices-shortest-paths-in-java/</link>
		<comments>http://www.kyle-brady.com/2009/04/22/hackersplan-finding-all-vertices-shortest-paths-in-java/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 07:15:54 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=1927</guid>
		<description><![CDATA[This project is essentially to find the number of elements with a path to all the others in a graph, using Floyd-Warshall.  It accepts the graph as String array, using "1" for an element that can be connected-to, and "0" for otherwise.  Full details in the "Project Details" file, and easily-usable examples in the Constructor.

It [...]]]></description>
			<content:encoded><![CDATA[This project is essentially to find the number of elements with a path to all the others in a graph, using <a href="http://en.wikipedia.org/wiki/Floyd-Warshall_algorithm">Floyd-Warshall</a>.  It accepts the graph as String array, using "1" for an element that can be connected-to, and "0" for otherwise.  Full details in the "Project Details" file, and easily-usable examples in the Constructor.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs146%2FHackersPlan%2Ftrunk%2F#path_cs146_HackersPlan_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/04/22/hackersplan-finding-all-vertices-shortest-paths-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advanced Sequence Control, Jasmin vs. Java &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/04/15/advanced-sequence-control-jasmin-vs-java/</link>
		<comments>http://www.kyle-brady.com/2009/04/15/advanced-sequence-control-jasmin-vs-java/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 07:15:51 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Jasmin]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=1812</guid>
		<description><![CDATA[This is some basic code to show comparisons between Java and Jasmin (Java's assembly language), involving basic command-line UI, recursion, if-blocks, loops, and more.

Also note that MathCUI requires MathUtils to work.

It was due at midnight tonight, and I was done earlier, so this is a scheduled post.

All code is now available via SVN, and a web [...]]]></description>
			<content:encoded><![CDATA[This is some basic code to show comparisons between Java and <a href="http://en.wikipedia.org/wiki/Jasmin_(Java_assembler)">Jasmin</a> (Java's assembly language), involving basic command-line UI, recursion, if-blocks, loops, and more.<br />
<br />
Also note that <em>MathCUI</em> requires <em>MathUtils</em> to work.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs47%2FadvancedSequenceControl%2Ftrunk%2F#path_cs47_advancedSequenceControl_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/04/15/advanced-sequence-control-jasmin-vs-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MazePath, in Java &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/04/14/mazepath-in-java/</link>
		<comments>http://www.kyle-brady.com/2009/04/14/mazepath-in-java/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 07:10:41 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=1849</guid>
		<description><![CDATA[This project is similar to ConnectedComponents and KnightJumps, except that the goal is to find the shortest path between a start and end point, according to directional preference (North-East is preferred over South-East, for example) and move weights (diagonals = sqrt(2), not 1).  There are walls, and you're allowed to move diagonally.  Example mazes can [...]]]></description>
			<content:encoded><![CDATA[This project is similar to <a href="http://www.kyle-brady.com/2009/04/07/connectedcomponents-flood-filling-2d-maps-in-java/">ConnectedComponents</a> and <a href="http://www.kyle-brady.com/2009/03/24/knightjumps-using-chess-rules-in-java/">KnightJumps</a>, except that the goal is to find the shortest path between a start and end point, according to directional preference (North-East is preferred over South-East, for example) and move weights (diagonals = sqrt(2), not 1).  There are walls, and you're allowed to move diagonally.  Example mazes can be found in the ProjectDescription, with solutions.<br />
<br />
This uses Dijkstra's Algorithm to find the shortest path in reverse:  dijkstra() and checkNeighbors().  After this is completed, the path is traveled forwards in order to mark it:  findPath() and compareNeighbors().  However, this code only works on examples up to somewhere near 70x70 input mazes, as the findPath() was written using recursion and it runs out of memory past a certain point.  A more correct version would be to use a looping mechanism to handle large examples.<br />
<br />
Finally, I used the Java PriorityQueue, and not myPriorityQueue.java that is mentioned, even though it's included with the source below for reference.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs146%2FMazePath%2Ftrunk%2F#path_cs146_MazePath_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/04/14/mazepath-in-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ConnectedComponents, Flood-Filling 2D Maps, in Java &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/04/07/connectedcomponents-flood-filling-2d-maps-in-java/</link>
		<comments>http://www.kyle-brady.com/2009/04/07/connectedcomponents-flood-filling-2d-maps-in-java/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 07:40:43 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=1739</guid>
		<description><![CDATA[This is a bit of code that accepts a grid/matrix of valid and invalid position points, and fills them with labels according to breadth-first search.  Can't traverse "solid walls" or spaces that are blocked, but can move horizontally.  This is the equivalent of flood-filling rudimentary 2D maps for something like videogames... think old-school Pokemon/top-down-style.

There's a [...]]]></description>
			<content:encoded><![CDATA[This is a bit of code that accepts a grid/matrix of valid and invalid position points, and fills them with labels according to breadth-first search.  Can't traverse "solid walls" or spaces that are blocked, but can move horizontally.  This is the equivalent of flood-filling rudimentary 2D maps for something like videogames... think old-school Pokemon/top-down-style.<br />
<br />
There's a built-in method called "testComponents" that gives examples of inputs and expected outputs, to help clarify the problem/solution set.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs146%2FConnectedComponents%2Ftrunk%2F#path_cs146_ConnectedComponents_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/04/07/connectedcomponents-flood-filling-2d-maps-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KnightJumps, Using Chess Rules, In Java &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/03/24/knightjumps-using-chess-rules-in-java/</link>
		<comments>http://www.kyle-brady.com/2009/03/24/knightjumps-using-chess-rules-in-java/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 07:30:12 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=1684</guid>
		<description><![CDATA[This is a bit of code that takes a description of a chess board, with markings for Start, Finish, and Invalid places, and moves the piece following the rules of a Knight, until it reaches the Finish; returning the least number of steps to get there.

See the examples and description for details on board inputs [...]]]></description>
			<content:encoded><![CDATA[This is a bit of code that takes a description of a chess board, with markings for Start, Finish, and Invalid places, and moves the piece following the rules of a Knight, until it reaches the Finish; returning the least number of steps to get there.<br />
<br />
See the examples and description for details on board inputs and return values.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs146%2FKnightJumps%2Ftrunk%2F#path_cs146_KnightJumps_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/03/24/knightjumps-using-chess-rules-in-java/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MergeSort and QuickSort, Implemented Using Java &#91;Old Content&#93;</title>
		<link>http://www.kyle-brady.com/2009/03/16/mergesort-and-quicksort-implemented-using-java/</link>
		<comments>http://www.kyle-brady.com/2009/03/16/mergesort-and-quicksort-implemented-using-java/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 07:30:23 +0000</pubDate>
		<dc:creator>Kyle Brady</dc:creator>
				<category><![CDATA[Old Content]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Full Code Release]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kyle-brady.com/?p=1634</guid>
		<description><![CDATA[I realize that both MergeSort and QuickSort are available in Java natively, but, hey, this is homework.

The real difference is that this uses Comparator data types instead of being type-dependent, meaning it can sort everything but an int.

It was due at midnight tonight, and I was done earlier, so this is a scheduled post.

All code is [...]]]></description>
			<content:encoded><![CDATA[I realize that both MergeSort and QuickSort are available in Java natively, but, hey, this is homework.<br />
<br />
The real difference is that this uses Comparator data types instead of being type-dependent, meaning it can sort everything but an int.<br />
<br />
It was due at midnight tonight, and I was done earlier, so this is <strong>a scheduled post</strong>.<br />
<br />
<a href="http://projects.kyle-brady.com/svn/listing.php?repname=sjsuProjects&amp;path=%2Fcs146%2FTwoSorts%2Ftrunk%2F#path_cs146_TwoSorts_trunk_">All code is now available via SVN, and a web browsing utility.</a><br />
<br />
<em>Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.</em>]]></content:encoded>
			<wfw:commentRss>http://www.kyle-brady.com/2009/03/16/mergesort-and-quicksort-implemented-using-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
