changeset 424 | daf561a83ba6 |
parent 386 | e2170c91a9f2 |
child 463 | 0315d9983cd0 |
423:e9d14d58be3c | 424:daf561a83ba6 |
---|---|
1 import M4a._ |
|
2 |
|
3 def count_all_tours_urban(dim: Int) = { |
|
4 for (i <- (0 until dim).toList; |
|
5 j <- (0 until dim).toList) yield count_tours(dim, List((i, j))) |
|
6 } |
|
7 |
|
8 |
|
9 assert(count_all_tours_urban(1) == List(1)) |
|
10 assert(count_all_tours_urban(2) == List(0, 0, 0, 0)) |
|
11 assert(count_all_tours_urban(3) == List(0, 0, 0, 0, 0, 0, 0, 0, 0)) |
|
12 assert(count_all_tours_urban(4) == List(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) |
|
13 |
|
14 |