--- a/main_marking4/knight2.scala Thu Jan 13 12:55:03 2022 +0000
+++ b/main_marking4/knight2.scala Mon Apr 11 23:55:27 2022 +0100
@@ -1,7 +1,7 @@
-// Part 3 about finding a single tour using the Warnsdorf Rule
+// Part 2 about finding a single tour using the Warnsdorf Rule
//=============================================================
-object CW9b {
+object M4b { // for preparing the jar
type Pos = (Int, Int)
type Path = List[Pos]
@@ -67,7 +67,6 @@
def first_closed_tour_heuristic(dim: Int, path: Path) =
time_needed(tfirst_closed_tour_heuristics(dim: Int, path: Path))
-
// heuristic cannot be used to search for closed tours on 7 x 7 an beyond
//for (dim <- 1 to 6) {
// val t = time_needed(0, first_closed_tour_heuristics(dim, List((dim / 2, dim / 2))))