From Past to Present: Unveiling the Evolution of AI