progs/knight4.scala
changeset 122 90dd9c6162b3
parent 4 f31c22f4f104
equal deleted inserted replaced
121:4fc05d4f0e01 122:90dd9c6162b3
    41 println(s"circle tour parallel fast: n = $n")
    41 println(s"circle tour parallel fast: n = $n")
    42 
    42 
    43 val starts = for (i <- 0 until n; j <- 0 until n) yield (i, j)
    43 val starts = for (i <- 0 until n; j <- 0 until n) yield (i, j)
    44 
    44 
    45 starts.par.foreach((x:(Int, Int)) => tour(n)(List(x))) 
    45 starts.par.foreach((x:(Int, Int)) => tour(n)(List(x))) 
       
    46 
       
    47 
       
    48