Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sports_Elimination-Java

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.


RUN THE PROGRAM

  1. Compile the program: javac BaseballElimination.java
  2. 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.

EXAMPLE:

Input:

Screen Shot 2024-05-15 at 6 55 13 PM

Output:

Screen Shot 2024-05-15 at 6 55 44 PM

About

Utilizes known algorithms to perform an analysis of a league of teams, and calculates which teams have been mathmatically eliminated from a tournament based on remaining games played, wins, and losses.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages