Assignment by Keith Schwarz with edits by Cynthia Lee.
January 10, 2020
The checkpoint problems of this pset are due Monday, January 13th at 2:30pm. (when you submit the PDF, the latex template will have a bunch of extra pages with the rest of the problems, and that's fine).
The rest of the pset is due Friday, January 17th at 2:30pm.
Pairs are allowed on this assignment. See the CS103 Honor Code for information on problem set policies, including important restrictions on partner work.
LaTeX can seem really intimidating, but I promise that you need to learn very little of its inner workings to get your psets done using it. First thing to do is get yourself an account on Overleaf. Stanford has a site license with them, so if you register with your Stanford email you should get the pro version. This operates like a Google doc, so you can collaborate with your partner. Also, crucially, it allows you to preview how what you are typing will look in PDF form, by showing the raw LaTeX source code in one half of the window, and the PDF preview in the other.
Once you've set up your Overleaf account, click the big green "New Project" button, and select blank project. Now you have a new blank document. Then click on this LaTeX Template File link (the same link that is in the above list), and it should open up a file with a bunch of raw text source code in your browser. Just select all the text, copy, and paste into the blank Overleaf document. Click "recompile" in Overleaf to see the PDF preview.
Look at some of the words you see in the PDF preview. Search for those words/phrases in the raw source code pane on the left. This will help you skip right past past all the header information and other LaTeX source code junk, and get to the place where you should edit. We've marked all the places where you write your answers with "Write your answer here.", so you could also search that phrase. To insert special symbols like subset, empty set, element-of, and so on, see if you can find that symbol in the text of the question. If you can, it's easy to just copy and paste to steal it from here. There are also websites that have compiled lists of little code combos for various math symbols. Here is one such list.
Just be sure to refresh/recompile the PDF preview often to make sure things are appearing as you want them to. This can also be a guard against say accidentally deleting some format tag that causes everything after it to be misformatted. Over time, you'll gain confidence.
Hope that helps!
When you are finished, submit your assignment using Gradescope web system. General rules: