Monthly Archives: August 2012

Weighted Quick-Union, “Algorithms” by Sedgewick & Wayne, page 228

Here is the Java source code for a version of the Weighted Quick-Union algorithm that will automatically read-in the tinyUF.txt “connections” text file, from your local drive, provided by the authors (which you can find┬áhere). Unlike the source code in … Continue reading

Posted in Uncategorized | Leave a comment

A working QuickFind Java source file for the Sedgewick Algorithms book.

I’m posting this code because of my frustration in dealing with the code for the QuickFind algorithm in the book “Algorithms” on page 221. Sedgewick or Wayne, whomever wrote this code, hides a Scanner System.in read in their so called … Continue reading

Posted in Uncategorized | Leave a comment