cws/main_cw02.tex
changeset 350 d71c68fd0ca1
parent 349 ef4bb09a01b7
child 356 35c75b594459
equal deleted inserted replaced
349:ef4bb09a01b7 350:d71c68fd0ca1
   193  what the recommendations function in (6) produces (this
   193  what the recommendations function in (6) produces (this
   194  can take a few seconds). Put all recommendations into a list 
   194  can take a few seconds). Put all recommendations into a list 
   195  (of strings) and count how often the strings occur in
   195  (of strings) and count how often the strings occur in
   196  this list. This produces a list of string-int pairs,
   196  this list. This produces a list of string-int pairs,
   197  where the first component is the movie name and the second
   197  where the first component is the movie name and the second
   198  is the number of how many times they were recommended. 
   198  is the number of how many times the movie was recommended. 
   199  Sort all the pairs according to the number
   199  Sort all the pairs according to the number
   200  of times they were recommended (most recommended movie name 
   200  of times they were recommended (most recommended movie name 
   201  first).\mbox{}\hfill [1 Mark]
   201  first).\\
       
   202  \mbox{}\hfill [1 Mark]
   202   
   203   
   203 \end{itemize}
   204 \end{itemize}
   204 
   205 
   205 \end{document} 
   206 \end{document} 
   206 
   207