Computer Science degree in Arts & Sciences vs. CS in Engineering dept?

I learned Analysis of Algorithms from Knuth Volume I. That was my hardest undergraduate class. It was listed as a CS class, but, like some other CS classes I had, it was all math.