Write a detailed paper on Reasoning and Uncertainty in artificial intelligence.