Question: Question 4 (15 pts) Using Prolog for a Search Problem Assume, you are working with the following knowledge base house elf dobby witch(hermione) witch mcGonagall)

Question 4 (15 pts) Using Prolog for a Search Problem Assume, you are working with the following knowledge base house elf dobby witch(hermione) witch mcGonagall) witch(rita_skeeter) wizard dobby). magic(X):- house_elfx). magic(X):- wizard(X) magic(X):- witch(X) Write the details of steps of search (unification, resolutions, and back tracking) and also the answer for each of the following queries. ? magic(Hermione). ? magic(hermione)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
