Question: using prolog programming. provide a screenshot of your work. 1. Consider knowledge base in Table 2 answer the following questions: Table 2 P(1,3,5). P(2,4,1). P(3,5,2).

using prolog programming.

provide a screenshot of your work.using prolog programming. provide a screenshot of your work. 1. Consider knowledge

1. Consider knowledge base in Table 2 answer the following questions: Table 2 P(1,3,5). P(2,4,1). P(3,5,2). P(4,3,1). p(5,2,4). n(1,13,5). n(2,14,1). n(3,5,20). n(4,1,25). m(1,3,4). m(14,1,1). m(2,4,5) a) Print the numbers that are same in first position of p, second position of "n" and last position of m. (2 marks) b) Print the intersections between n and p (in all positions). (2 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!