Β
ββββββββββββββββββββββββββββββββββββββββββ-
Questions
βββββββββββββββββββββββββββββββββββββββββ-
Β
1. Deduction Theorem
Given an expression, write a program to decide whether itβsΒ a theorem or notβ Steps
- Write a parser to isolate the clauses around the implication in the expressions
Β
Test Cases :
- (P => Q ) => ((~Q => P) => Q)
- P => (P V Q)
- (P ^ Q) => (P V R)
Β
2. Prolog Programing
Β
- Write a program in Prolog to represent the following knowledge and find the answer to the given questions
Β
- Knowledge
A, B and C belong to Himalayan club. Every member in the club is either a mountain climber or skier or both. A likes whatever B dislikes and dislikes whatever B likes. A likes rain and snow. No mountain climber likes rain. Every skiers likes snow
Β
Question : Is there a member who is mountain climber but not a skier?
Β
Β
Β
Β





