Java program that determines the teams that have been mathematically eliminated from a tournament, leveraging information such as remaining games, wins, and losses. BaseballElimination utilizes the "Algorithms, 4th Edition" algs4 package to perform an analysis of a league of teams. The primary algorithm employed is the Ford-Fulkerson algorithm, which is utilized to calculate the maximum flow in a flow network.
- Compile the program: javac BaseballElimination.java
- Run the tester:
- java -cp .;algs4.jar BaseballElimination file.txt (Windows)
- java -cp .:algs4.jar BaseballElimination file.txt (Linux or Mac)
file.txt is replaced with the path to a test file from the test_files directory.
Input:
Output:

