Answered step by step
Verified Expert Solution
Question
1 Approved Answer
question 2,3,4 Project 5 Project 4 (Due: Nov. 16) CIS 424 Fall 2017 Use Prolog to do the following 1. Given the relations: father (x,
question 2,3,4
Project 5 Project 4 (Due: Nov. 16) CIS 424 Fall 2017 Use Prolog to do the following 1. Given the relations: father (x, Y) mother (X,Y) female (X) male (X) x is the father of Y X is the mother of Y x is female x is male define relations for the following: (a) sibling (b) sister (c) uncle (d) grandson (e) descendant 2. Assume that we use lists to represent polynomials by their coefficients, lowest degree first. Im- plement the polynomial multiplication that multiplies two polynomials. 3. Given the following grammar: Implement a parser which recognizes the sentences generated by this grammar. So the query: s(la,a, b,c,c,c],u) will return true. 4. Complete the example dem.candidate in the textbook. Use trace to show that the number of backtracking can be reduced if the cut is used in member (X,Y). nin group (at most two students) needs to hand in a typed document which includes the description ur code, experiences in debugging and testing, etc. The cover page should contain your photo(s). Project 5 Project 4 (Due: Nov. 16) CIS 424 Fall 2017 Use Prolog to do the following 1. Given the relations: father (x, Y) mother (X,Y) female (X) male (X) x is the father of Y X is the mother of Y x is female x is male define relations for the following: (a) sibling (b) sister (c) uncle (d) grandson (e) descendant 2. Assume that we use lists to represent polynomials by their coefficients, lowest degree first. Im- plement the polynomial multiplication that multiplies two polynomials. 3. Given the following grammar: Implement a parser which recognizes the sentences generated by this grammar. So the query: s(la,a, b,c,c,c],u) will return true. 4. Complete the example dem.candidate in the textbook. Use trace to show that the number of backtracking can be reduced if the cut is used in member (X,Y). nin group (at most two students) needs to hand in a typed document which includes the description ur code, experiences in debugging and testing, etc. The cover page should contain your photo(s)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started