Question: Consider the task of solving geometric analogy problems, typically used in intelligence tests. A list of figures is given. Three figures A, B, C are

 Consider the task of solving geometric analogy problems, typically used in

Consider the task of solving geometric analogy problems, typically used in intelligence tests. A list of figures is given. Three figures A, B, C are singled out and the candidate is asked: " If figure A is related to figure B, then what figure is C related to?" 1. Write a Prolog program to solve this problem. 2. Test the program on the following sets of figures. Example ?- analogy1((1,5).(3,X)) ?- analogy1((1,5).(2.X)) ?- analogy1((1,5).(4.X)) ?- analogy1((5,1).(8.X)) ?- analogy1((6,2).(5,X)) Hint, 1. Represent each figure with a fact describing the relationship between its components. For example, figure 1 is represented by the fact: figure(1.middle(triangle,square)) . Suppose that the question is expressed as: "If figure number A is related to figure number B then what figure is figure number C related to ?". The algorithm to answer this query is as follows To find the number X of a figure that is related to figure C in the same way as figure B related to figure A do retrieve figures FA, FB, FC numbered A, B, C, then find a rule that relates FA to FB then apply this rule to FC to obtain a figure FX, and then scan the existing figures to find the number X of FX. Consider the task of solving geometric analogy problems, typically used in intelligence tests. A list of figures is given. Three figures A, B, C are singled out and the candidate is asked: " If figure A is related to figure B, then what figure is C related to?" 1. Write a Prolog program to solve this problem. 2. Test the program on the following sets of figures. Example ?- analogy1((1,5).(3,X)) ?- analogy1((1,5).(2.X)) ?- analogy1((1,5).(4.X)) ?- analogy1((5,1).(8.X)) ?- analogy1((6,2).(5,X)) Hint, 1. Represent each figure with a fact describing the relationship between its components. For example, figure 1 is represented by the fact: figure(1.middle(triangle,square)) . Suppose that the question is expressed as: "If figure number A is related to figure number B then what figure is figure number C related to ?". The algorithm to answer this query is as follows To find the number X of a figure that is related to figure C in the same way as figure B related to figure A do retrieve figures FA, FB, FC numbered A, B, C, then find a rule that relates FA to FB then apply this rule to FC to obtain a figure FX, and then scan the existing figures to find the number X of FX

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 Databases Questions!