Introduction to Algorithms
The Art of Computer Programming - by Donald Knuth (hard read, but well worth it, not recommended for a first algorithms book)
Concrete Mathemetics - By Donald Knuth (understanding the math behind algorithms)
I don't know if e-book versions are available for these, but if they are...these books will definitely give you the theory behind worst-case, and asymptotic analysis of algorithms.