Add option to select matching algorithm type, rename types in output

This commit is contained in:
eugenefischer
2022-10-22 14:59:24 -05:00
parent 0de12a3a12
commit 4b9d7f8494

View File

@@ -583,8 +583,9 @@ public class InteractiveInterface {
while(!backToOptions) {
System.out.println("\n---------ALGORITHM OPTIONS----------");
System.out.println("1) Use scaling algorithm by Duan and Su.");
System.out.println("2) Use LEDA book algorithm with Fibonacci heap priority queue");
System.out.println("3) Use LEDA book algorithm with pairing heap priority queue");
System.out.println("2) Use Hungarian algorithm with Fibonacci heap priority queue");
System.out.println("3) Use Hungarian algorithm with pairing heap priority queue");
System.out.println("4) Use auction algorithm");
System.out.println("0) Return to Options menu");
try {
input = sc.nextInt();
@@ -592,14 +593,18 @@ public class InteractiveInterface {
case 1 -> System.out.println("This option is not yet implemented. Choose another.");
case 2 -> {
BiGpairSEQ.setFibonacciHeap();
System.out.println("MWM algorithm set to LEDA with Fibonacci heap");
System.out.println("MWM algorithm set to Hungarian with Fibonacci heap");
backToOptions = true;
}
case 3 -> {
BiGpairSEQ.setPairingHeap();
System.out.println("MWM algorithm set to LEDA with pairing heap");
System.out.println("MWM algorithm set to Hungarian with pairing heap");
backToOptions = true;
}
case 4 -> {
BiGpairSEQ.setAuctionAlgorithm();
System.out.println("MWM algorithm set to auction");
}
case 0 -> backToOptions = true;
default -> System.out.println("Invalid input");
}