The Probabilistic Method

LaTeX Resources

Writing homework solutions in LaTeX is not required for this course; however, it is a good skill to learn. If you plan on going to graduate school and/or publishing papers in the future, you will end up writing in latex. On this page, I give some resources and links to good latex tutorials.

For most latex files, you should be able to compile a latex file using e.g. 'pdflatex foo.tex'. As with other compilable programs like C++, you might get some compilation errors.

If you don't want to start writing LaTeX from scratch, here is one or two templates/guides you can use:

  • Tom Cormen's clrscode style file. This is what Cormen, Leierson, Rivest, and Stein use to write CLRS.

LaTeX Tutorials

Below are some good latex tutorials. If you just need to know a simple command or two, googling "latex <command>" often gets you just what you need.