Add option to select matching algorithm type, rename types in output
This commit is contained in:
@@ -583,8 +583,9 @@ public class InteractiveInterface {
|
|||||||
while(!backToOptions) {
|
while(!backToOptions) {
|
||||||
System.out.println("\n---------ALGORITHM OPTIONS----------");
|
System.out.println("\n---------ALGORITHM OPTIONS----------");
|
||||||
System.out.println("1) Use scaling algorithm by Duan and Su.");
|
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("2) Use Hungarian algorithm with Fibonacci heap priority queue");
|
||||||
System.out.println("3) Use LEDA book algorithm with pairing 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");
|
System.out.println("0) Return to Options menu");
|
||||||
try {
|
try {
|
||||||
input = sc.nextInt();
|
input = sc.nextInt();
|
||||||
@@ -592,14 +593,18 @@ public class InteractiveInterface {
|
|||||||
case 1 -> System.out.println("This option is not yet implemented. Choose another.");
|
case 1 -> System.out.println("This option is not yet implemented. Choose another.");
|
||||||
case 2 -> {
|
case 2 -> {
|
||||||
BiGpairSEQ.setFibonacciHeap();
|
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;
|
backToOptions = true;
|
||||||
}
|
}
|
||||||
case 3 -> {
|
case 3 -> {
|
||||||
BiGpairSEQ.setPairingHeap();
|
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;
|
backToOptions = true;
|
||||||
}
|
}
|
||||||
|
case 4 -> {
|
||||||
|
BiGpairSEQ.setAuctionAlgorithm();
|
||||||
|
System.out.println("MWM algorithm set to auction");
|
||||||
|
}
|
||||||
case 0 -> backToOptions = true;
|
case 0 -> backToOptions = true;
|
||||||
default -> System.out.println("Invalid input");
|
default -> System.out.println("Invalid input");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user