### Past Exams

The exams from the most recent offerings of CS188 are posted below. For each exam, there is a PDF of the exam without solutions, a PDF of the exam with solutions, and a .tar.gz folder containing the source files for the exam.

The topics on the exam are roughly as follows:

• Midterm 1: Search, CSPs, Games, Utilities, MDPs, RL
• Midterm 2: Probability, Bayes' Nets, HMMs and Particle Filtering, Decision Diagrams and VPI, Machine Learning: Naive Bayes and Perceptrons
• Final: All of the above, and in addition: Machine Learning: Kernels, Clustering, Decision Trees, Neural Networks

For the Fall 2011 and Spring 2011 exams, there is one midterm instead of two. The midterm covers all topics listed for Midterm 1, and includes Probability and Bayes' Nets. The final is cumulative, containing all topics listed above.

SemesterMidterm 1Midterm 2Final
Spring 2014 Midterm 1 (solutions) [source] Midterm 2 (solutions) [source] Final (solutions) [source]
Fall 2013 Midterm 1 (solutions) [source] Midterm 2 (solutions) [source] Final (solutions) [source]
Spring 2013 Midterm 1 (solutions) [source] Midterm 2 (solutions) [source] Final (solutions) [source]
Fall 2012 Midterm 1 (solutions) [source] Midterm 2 (solutions) [source] Final (solutions) [source]
Spring 2012 Midterm 1 (solutions) [source] Midterm 2 (solutions) [source] Final (solutions) [source]
Fall 2011 Midterm (solutions) [source] Final (solutions) [source]
Spring 2011 Midterm (solutions) [source] Final (solutions) [source]

#### Compiling Source Files

To compile the exam from source files, find the LaTeX file corresponding to the exam name. For example, if you were trying to compile the Fall 2013 Final, you would look for fa13_final.tex. Using any LaTeX editor or running pdflatex from the command line, the exam should compile. To compile the solutions, find the LaTeX file corresponding to the exam name appended with _solutions and compile the file from there.

#### Editing Suggestions

Below is a simple problem template:

• You can specify points for each (sub)question as arguments.
• Points should be specified at the lowest level. They will get added up automatially.
• Each problem should be in its own file.

      \begin{problem}[]{Extra-Credit Problem}
\begin{question}
\begin{subquestion}[1]
...
\end{subquestion}
\begin{subquestion}[1]
\end{subquestion}
\end{question}
\begin{question}[12]
\end{question}
\end{problem}


Use the multicol package for multiple column layouts.

Prefer using the tikz package for graphics to make them easily editable.

Any \includegraphics statements should only specify the basename and all graphics files should be located under ./figures.

Use the following two macros to generate bullets for multiple choice questions:

• \mcqb for incorrect option
• \mcqs for correct option

The \solc{} macro will highlight its argument and draw a box around it in the solutions pdf.

Use the \solution{}{} macro for questions that are not multiple choice:

• The first argument appears only in the no-solutions pdf.
• The second argument appears only in the solutions pdf.

Any \newpage between the last \end{problem} and \end{document} will break the template and points will no longer add correctly.

If the compiled exam does not display the total points on the front of the exam, and rather, you see a bunch of question marks, try recompiling the file again.