Q-learning is a type of reinforcement learning algorithm that teaches agents how to act in a given environment to maximise rewards over time. It uses a simple but powerful idea: learn from experience ...