Fundamentals of learning: the exploration-exploitation trade-off