From Deep Learning to Neuromorphic Computing: The Evolution of AI Algorithms