cws/cw02.tex
changeset 210 63a1376cbebd
parent 203 eb188f9ac038
child 251 3dd550b9b0e3
equal deleted inserted replaced
209:40bdf9064e13 210:63a1376cbebd
   254 \noindent
   254 \noindent
   255 In which order the elements of the list are given is unimportant.\\
   255 In which order the elements of the list are given is unimportant.\\
   256 \mbox{}\hfill [1 Mark]
   256 \mbox{}\hfill [1 Mark]
   257 
   257 
   258 \item[(4)] Implement a function that takes a ratings map and a movieID
   258 \item[(4)] Implement a function that takes a ratings map and a movieID
   259   as argument.  The function calculates all suggestions containing the
   259   as arguments.  The function calculates all suggestions containing the
   260   agiven movie in its recommendations. It returns a list of all these
   260   given movie in its recommendations. It returns a list of all these
   261   recommendations (each of them is a list and needs to have the given
   261   recommendations (each of them is a list and needs to have the given
   262   movie deleted, otherwise it might happen we recommend the same movie
   262   movie deleted, otherwise it might happen we recommend the same movie
   263   ``back''). For example for the Map from above and the movie
   263   ``back''). For example for the Map from above and the movie
   264   \pcode{"y"} we obtain \pcode{List(List("x"))}, and for the movie
   264   \pcode{"y"} we obtain \pcode{List(List("x"))}, and for the movie
   265   \pcode{"a"} we get \pcode{List(List("b"), List("c"))}.\\
   265   \pcode{"a"} we get \pcode{List(List("b"), List("c"))}.\\