This book is the best Introduction to Algorithms it sould help you with the class.Butt here alot of math in it

Hope this helps:)