Artificial intelligence presents itself as a complex force shaping our world. From self-driving cars and medical breakthroughs, AI's potential are astounding. Yet, its inner workings remain a mystery, inspiring both fascination and concern. In order to understand AI, we must delve into its basic building blocks. Algorithms are the engine of AI,