Cormen, Thomas, Charles Leiserson, Ronald Rivest, and Clifford Stein. Introduction to Algorithms. 3rd ed. MIT Press, 2009. ISBN: 9780262033848.
Beazley, David. Python Essential Reference. 3rd ed. Sams, 2006. ISBN: 9780672328626. [Preview with Google Books]
You will mostly use Math Mode in LaTeX, so pay particular attention to it in these resources; other topics (like document structure and compiling documents in various environments) are less relevant.