equal
deleted
inserted
replaced
32 \textit{Knight's Tour Problem} on a chessboard. |
32 \textit{Knight's Tour Problem} on a chessboard. |
33 % The preliminary part (4\%) is due on \sout{\cwNINE{}} |
33 % The preliminary part (4\%) is due on \sout{\cwNINE{}} |
34 % \textcolor{red}{16 December} at 5pm; the core part (6\%) |
34 % \textcolor{red}{16 December} at 5pm; the core part (6\%) |
35 % is due on \cwNINEa{} at 5pm. Any 1\% you achieve in the |
35 % is due on \cwNINEa{} at 5pm. Any 1\% you achieve in the |
36 % preliminary part counts as your ``weekly engagement''. |
36 % preliminary part counts as your ``weekly engagement''. |
37 \bigskip |
37 \medskip |
38 |
38 |
39 % Note the core, more advanced, part might include material you have not |
39 % Note the core, more advanced, part might include material you have not |
40 %yet seen in the first three lectures. \bigskip |
40 %yet seen in the first three lectures. \bigskip |
41 |
41 |
42 \IMPORTANTNONE{} |
42 \IMPORTANTNONE{} |
216 according to a component given by the function; a function can be |
216 according to a component given by the function; a function can be |
217 tested to be tail-recursive by annotation \texttt{@tailrec}, which is |
217 tested to be tail-recursive by annotation \texttt{@tailrec}, which is |
218 made available by importing \texttt{scala.annotation.tailrec}.\medskip |
218 made available by importing \texttt{scala.annotation.tailrec}.\medskip |
219 |
219 |
220 |
220 |
221 |
221 \newpage |
222 |
222 |
223 \subsection*{Tasks} |
223 \subsection*{Tasks} |
224 |
224 |
225 You are asked to implement the knight's tour problem such that the |
225 You are asked to implement the knight's tour problem such that the |
226 dimension of the board can be changed. Therefore most functions will |
226 dimension of the board can be changed. Therefore most functions will |