How can I implement a “20 Questions” algorithm?

I don’t know how 20Q did it specifically, but there is plenty of information on how to implement a game of 20 questions. There are lots of ways of solving this, but I’ll describe one way. These games can implement some sort of decision tree. For an electronic game like 20Q, this tree would be precomputed and fairly easy to traverse. There are methods for using learning decision trees where the …

https://gamedev.stackexchange.com/questions/40024/how-can-i-implement-a-20-questions-algorithm