AI, algorithms and learning