\documentstyle[11pt,times]{article}
\setcounter{secnumdepth}{0}
\topmargin 0pt
\advance \topmargin by -\headheight
\advance \topmargin by -\headsep
\textheight 8.9in
\oddsidemargin 0pt
\evensidemargin \oddsidemargin
\marginparwidth 0.5in
\textwidth 6.5in

\title{\vspace*{-1cm}
15-451 Algorithms, Spring 1997\\ Assignment 4}
\author{Joe Blow}

\begin{document}
\maketitle

\section{Problem 1}
In order to compile this, run {\bf latex sample.tex} on your favorite unix
machine.  This will create a file called {\em sample.dvi}.  In order to view
this, run {\bf xdvi sample.dvi \&}.  You can leave this running and it will
automatically update when you re-run latex on your revised document.

To produce postscript, do {\bf dvips sample.dvi -o sample.ps}.  To print this,
do {\bf lpr sample.ps}.  Just edit this file to do your next assignment.  Now
you're stylin'.

If latex complains about the fullpage.sty file, just remove ``fullpage'' from
the first line.  Or you could do {\bf setenv TEXINPUTS
/afs/cs.cmu.edu/user/dr/Latex:} and it will get the file from my directory.

\section{Problem 2}
Here is some of the mathematical stuff you can do.  In line formulae are done
with \$ signs, like this $x, x^2, x_i, \sqrt{x+y}, f(x) = O(n \log n)$ and 
$f(x) = \Omega(n \log n)$, therefore $f(x) = \Theta(n \log n)$.  There are
lots of built in symbols: $\leq \div \star \dagger \in \subseteq \rightarrow
\spadesuit \alpha \beta \gamma$ and built in functions and operators: 
$\ln \log \sum \int \max$.

You can also do formulae on a line by themselves:

\[\sum^n_{i = 1} \frac{{n\choose i}}{n!}\]

There is truly no end to the magic.

\end{document}
