A learning algorithm for the 20 questions game.