equal
deleted
inserted
replaced
1 // Part 3 about finding a single tour using the Warnsdorf Rule |
1 // Part 3 about finding a single tour using the Warnsdorf Rule |
2 //============================================================= |
2 //============================================================= |
3 |
3 |
4 //object CW8c { // for preparing the jar |
4 object CW8c { |
5 |
5 |
6 type Pos = (Int, Int) |
6 type Pos = (Int, Int) |
7 type Path = List[Pos] |
7 type Path = List[Pos] |
8 |
8 |
9 |
9 |
58 |
58 |
59 |
59 |
60 def tour_on_mega_board(dim: Int, path: Path) = |
60 def tour_on_mega_board(dim: Int, path: Path) = |
61 time_needed(ttour_on_mega_board(dim: Int, path: Path)) |
61 time_needed(ttour_on_mega_board(dim: Int, path: Path)) |
62 |
62 |
63 //} |
63 } |