4. [25 pts.] Consider the Datalog knowledge base defined below. has_access(X,library)  student(X). has_access(X,library

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

4. [25 pts.] Consider the Datalog knowledge base defined below. has_access(X,library)  student(X). has_access(X,library

Post by answerhappygod »

4. [25 pts.] Consider the Datalog knowledge base defined below.
has_access(X,library)  student(X). has_access(X,library) 
faculty(X). has_access(X,library)parent(Y,X) 
has_access(Y,library) has_acces(X,office)  has_keys(X).
faculty(karen). faculty(ming). student(diane). student(william).
student(mary). parent(diane,robyn). parent(susan,sarah).
parent(sarah,ariel). parent(karen,mary). parent(karen,todd). Use
the top-down proof procedure to find the answer to the following
query: ask has_access(todd,library) When matching rules, proceed
from top to bottom, and evaluate subgoals from left to right. You
must show your search tree using the same form I did in class: Each
node should contain a list of subgoals remaining to be proven, and
each child reflects the match of match subsequent recursive call.
Also label each arc with the rule that was matched and give the
substitutions that permit the match.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply