cws/cw02.tex
changeset 284 9a04eb6a2291
parent 276 52faee6d0be2
child 301 c3b33c709696
equal deleted inserted replaced
283:ef5f62bf5987 284:9a04eb6a2291
    12 \mbox{}\hfill\textit{``What one programmer can do in one month,}\\
    12 \mbox{}\hfill\textit{``What one programmer can do in one month,}\\
    13 \mbox{}\hfill\textit{two programmers can do in two months.''}\smallskip\\
    13 \mbox{}\hfill\textit{two programmers can do in two months.''}\smallskip\\
    14 \mbox{}\hfill\textit{ --- Frederick P.~Brooks (author of The Mythical Man-Month)}\bigskip\medskip
    14 \mbox{}\hfill\textit{ --- Frederick P.~Brooks (author of The Mythical Man-Month)}\bigskip\medskip
    15 
    15 
    16 \noindent
    16 \noindent
    17 This coursework is worth 10\%. The basic part is due
    17 You are asked to implement Scala programs for measuring similarity in
    18 on 22 November at 11pm; the main part is due on 20
    18 texts, and for recommending movies according to a ratings list. The
    19 December at 11pm. You are asked to implement Scala programs for
    19 preliminary part~(4\%) is due on \cwSEVEN{} at 4pm; the core part is due
    20 measuring similarity in texts, and for recommending movies
    20 on \cwSEVENa{} at 4pm.   Note the core part might include material you
    21 according to a ratings list.  Note the second part might include
    21 have not yet seen in the first two lectures. \bigskip
    22 material you have not yet seen in the first two lectures. \bigskip
       
    23 
    22 
    24 \IMPORTANT{}
    23 \IMPORTANT{}
    25 
    24 
    26 \noindent
    25 \noindent
    27 Also note that the running time of each part will be restricted to a
    26 Also note that the running time of each part will be restricted to a
    82 \texttt{.take(n)} for taking some elements in a list (takes fewer if the list
    81 \texttt{.take(n)} for taking some elements in a list (takes fewer if the list
    83 contains less than \texttt{n} elements).
    82 contains less than \texttt{n} elements).
    84 
    83 
    85 
    84 
    86 \newpage
    85 \newpage
    87 \subsection*{Basic Part (4 Marks, file docdiff.scala)}
    86 \subsection*{Preliminary Part (4 Marks, file docdiff.scala)}
    88 
    87 
    89 It seems source code plagiarism---stealing and submitting someone
    88 It seems source code plagiarism---stealing and submitting someone
    90 else's code---is a serious problem at other
    89 else's code---is a serious problem at other
    91 universities.\footnote{Surely, King's students, after all their
    90 universities.\footnote{Surely, King's students, after all their
    92   instructions and warnings, would never commit such an offence. Yes?}
    91   instructions and warnings, would never commit such an offence. Yes?}
   166   and then calculating the overlap of the resulting documents.\\
   165   and then calculating the overlap of the resulting documents.\\
   167   \mbox{}\hfill\mbox{[1 Mark]}
   166   \mbox{}\hfill\mbox{[1 Mark]}
   168 \end{itemize}\bigskip
   167 \end{itemize}\bigskip
   169 
   168 
   170 
   169 
   171 \subsection*{Main Part (2 Marks, file danube.scala)}
   170 \subsection*{Core Part (6 Marks, file danube.scala)}
   172 
   171 
   173 You are creating Danube.co.uk which you hope will be the next big thing
   172 You are creating Danube.co.uk which you hope will be the next big thing
   174 in online movie renting. You know that you can save money by
   173 in online movie renting. You know that you can save money by
   175 anticipating what movies people will rent; you will pass these savings
   174 anticipating what movies people will rent; you will pass these savings
   176 on to your users by offering a discount if they rent movies that
   175 on to your users by offering a discount if they rent movies that