cws/cw02.tex
changeset 46 48d2cbe8ee5e
parent 45 8399976b77fe
child 48 7a6a75ea9738
equal deleted inserted replaced
45:8399976b77fe 46:48d2cbe8ee5e
   274 \noindent
   274 \noindent
   275 Warnsdorf's rule states that the moves sould be tried out in the
   275 Warnsdorf's rule states that the moves sould be tried out in the
   276 order
   276 order
   277 
   277 
   278 \[
   278 \[
   279 (0, 1), (0, 5), (2, 5), (3, 4), (3, 2)
   279 (0, 1), (0, 5), (2, 1), (2, 5), (3, 4), (3, 2)
   280 \]
   280 \]
   281 
   281 
       
   282 \noindent
   282 Whenever there are ties, the correspoding onward moves can be in any
   283 Whenever there are ties, the correspoding onward moves can be in any
   283 order.  When calculating the number of onward moves for each field, we
   284 order.  When calculating the number of onward moves for each field, we
   284 do not count moves that revisit any field already visited.
   285 do not count moves that revisit any field already visited.
   285 
   286 
   286 \subsubsection*{Tasks (file knight3.scala)}
   287 \subsubsection*{Tasks (file knight3.scala)}