%
% 6.006 homework template
%
% NOTE:
% Be sure to define your name with the \name command
% Be sure to define the problem set with the \problemset command
% Be sure to use the \answer command for each of your answers 
%   (first argument: problem name
%   second argument: collaborators (write 'none' if you solved it alone))
\documentclass[11pt]{article}

\newcommand{\name}{ Alyssa P. Hacker }
\newcommand{\problemset}{ Problem Set 1 }

%\pagestyle{headings}
\usepackage[dvips]{graphics,color}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{latexsym}
\setlength{\parskip}{1pc}
\setlength{\parindent}{0pt}
\setlength{\topmargin}{-3pc}
\setlength{\textheight}{9.5in}
\setlength{\oddsidemargin}{0pc}
\setlength{\evensidemargin}{0pc}
\setlength{\textwidth}{6.5in}

\newcommand{\answer}[2]{
\newpage
\noindent
\framebox{
	\vbox{
		6.006 Homework \hfill {\bf \problemset}
		\hfill \# #1 \\ 
		\name \hfill \today
	}
} \footnotetext{Collaborators: #2}
\bigskip

}


\begin{document}

\answer{1-1 -- Pattern Matching}{none}
Different font styles: 

Several ways to do \textit{italics}, {\it italics}, \emph{italics}.

Several ways to do \textbf{bold}, {\bf bold}.

Other fonts: \textsc{Blah}, \texttt{monospace}.

{\tiny tiny}, {\small small}, {\normalsize normalsize}, {\Large Large}. {\LARGE
LARGE}. {\huge huge}, {\Huge Huge}.

F\"{o}\.{r}\'{e}\r{i}\^{g}\u{n} Accents.

\answer{1-2 -- Asymptotic Notation}{Ben P. Bitdiddle}


Here's an example of how to do mathematical symbols in an Equation
array:

\begin{eqnarray*}
T(n) & = & \mbox{Running time} \\
T(n) & = & T(n-1) + \Theta(1) \\
T_2(n) & = & \Omega(n \log n) \\
T_2(n) & = & \tilde{\Omega}(n) \\
f(m, n) & = & O(n^{2.5} \cdot \alpha(m)) \\
\end{eqnarray*}

Math on a line set by itself:
\[ 1 - 1/2 + \frac{1}{3} - \frac{1}{4} + \ldots \]

Or you can put symbols inline like this: $\rho$, $\gamma$, and
$\frac{\alpha}{\beta}$.

Some symbols that may come in handy someday: $\Theta$, $\oplus$, $\cdot$,
$\ldots$, $\rightarrow$, $\leq$, $\geq$, $m^e \bmod p$,  $\mathbb{N}$, $\mathbb{Z}$.

Superscripts and subscripts: $\sum_{i=0}^{n}$.

Superscripts and subscripts in an equation environment: 
\begin{equation}
x_9^2 + x^2_{10}
\end{equation}


\answer{1-3 -- Universal Hashing}{Ben P. Bitdiddle, Louis Reasoner}

\begin{enumerate}
\item An
\item ordered
\item list
\end{enumerate}

\begin{itemize}
\item An
\item unordered
\item list
\end{itemize}

\texttt{verbatim} mode is suitable for code snippets:

\begin{verbatim}
# Append to a list
list1 = [1, 3]
for e in "list1":
    list1.append(e)
\end{verbatim}

\end{document}

