Highways & Hospitals

A puzzle created by Zach Blick for Adventures in Algorithms at Menlo School in Atherton, CA

Your goal

Complete the function, cost(), to return the minimum cost to provide hospital access for all citizens in Menlo County.

The function header is in the HighwaysAndHospitals java file. Write your code there.

A tester file has been provided for you. It utilizes junit tests. To use this test file, run either the entire thing or individual tests (one at a time). There are five test cases, each of which will load data from [test number].txt, which is in the test_files directory.