algorithms class notes 6 pages 2137829