% Solution to Expert Systems 1995 Final Exam % Note: the final was more difficult than I intended, I apologize for any % unusual discomfort this may have caused. % This file can be read by the Prolog interpretor. % % Problem 1. % % The data immediately below is not part of the solution, it is there % so the solution can be conveniently run. :-[-'/home/ee4785/ee4785/shellOAVbc.pro']. start:-wipe,deduce(partsCheck,X),sOut<<"Value of partsCheck is "< % 1 start a b c r3 r6 % 2 start a b d r6 % 3 start a b c d r6 % 4 start b c d e % 5 start b c d e f % % rx indicates an activation on the agenda. % indicates the activation on the agenda which will fire. % % % Problem 4b. % % The correct answer could have been written in computer-engineering or % logic notation. (The answer below is written using "and" and "or" so % that it can be used with a text device.) % % r1: not(a or b) or c % r2: not(a and b) or c % r3: c or e % % Problem 4C. % % Using rules and shell, e would be proven true. Using logic (as shown % in 4b), c could either be true or false when both a and b are % false. Therefore, e could be either true or false. %