@@ -80,7 +80,8 @@ public Pane createRootPane() {
8080 }
8181
8282 protected Parameter [] createParameters () {
83- Parameter p1 = new Parameter (PARAM_STRATEGY , "Depth-First Search" , "Breadth-First Search" ,
83+ Parameter p1 = new Parameter (PARAM_STRATEGY ,
84+ "Depth-First Search (incremental)" , "Breadth-First Search (incremental)" ,
8485 "Iterative Deepening Search" ,
8586 "Greedy Best-First Search (attacking pair heuristic)" , "A* search (attacking pair heuristic)" ,
8687 "Hill Climbing" , "Simulated Annealing" , "Genetic Algorithm" );
@@ -99,7 +100,7 @@ public void initialize() {
99100 experiment .setBoardSize (simPaneCtrl .getParamAsInt (PARAM_BOARD_SIZE ));
100101 Object strategy = simPaneCtrl .getParamValue (PARAM_STRATEGY );
101102 Config config ;
102- if (Arrays .asList ("Depth-First Search" , "Breadth-First Search" , "Genetic Algorithm" )
103+ if (Arrays .asList ("Depth-First Search (incremental) " , "Breadth-First Search (incremental) " , "Genetic Algorithm" )
103104 .contains (strategy ))
104105 config = Config .EMPTY ;
105106 else if (simPaneCtrl .getParamValue (PARAM_INIT_CONFIG ).equals ("Random" ))
@@ -118,9 +119,9 @@ public void finalize() {
118119 /** Starts the experiment. */
119120 public void simulate () {
120121 Object strategy = simPaneCtrl .getParamValue (PARAM_STRATEGY );
121- if (strategy .equals ("Depth-First Search" ))
122+ if (strategy .equals ("Depth-First Search (incremental) " ))
122123 experiment .startExperiment (new DepthFirstSearch (new TreeSearch ()));
123- else if (strategy .equals ("Breadth-First Search" ))
124+ else if (strategy .equals ("Breadth-First Search (incremental) " ))
124125 experiment .startExperiment (new BreadthFirstSearch (new TreeSearch ()));
125126 else if (strategy .equals ("Iterative Deepening Search" ))
126127 experiment .startExperiment (new IterativeDeepeningSearch ());
0 commit comments