Use Datalog to ?nd all students who took all classes ever o?ered by Professor Joe Public.

What will be an ideal response?


Answer(?SN) :- Student(?Id,?SN,?Addr,?Status),
not StudWhoDidNotTakeSomeClass(?Id).
StudWhoDidNotTakeSomeClass(?Id) :-
Student(?Id,?SN,?Addr,?Status),
Teaching(?PId,?Crs,?Sem),
Professor(?PId,’Joe Public’,?Dept),
not TookClass(?Id,?Crs,?Sem).
TookClass(?Id,?Crs,?Sem) :- Transcript(?Id,?Crs,?Sem,?Gr).

Computer Science & Information Technology

You might also like to view...

One commonly used relative unit is the ____ unit.

A. in B. ft C. em D. en

Computer Science & Information Technology

COGNITIVE ASSESSMENT You realize your computer has been infected with malware. The program has been copying itself repeatedly, using up resources. What type of malware might you have?

A. worm B. rootkit C. trojan horse D. virus

Computer Science & Information Technology