notes for algorithms class 977582