Algorithims in C by Sedgewick, Robert

You will find that this textbook has plenty of margin space for taking notes.