Introduction to Artificial Intelligence Artificial intelligence is based on the attitude that human intelligence can be distinct in a way…