Ancient basic computer science and AI?

I just finished the first chapter, and I have some questions. I remember back in the 90s (I’m not young) that our basic computer science class involved algorithms and logical reasoning. To what extent do algorithms relate to AI? Probably the next chapters will delve into that.