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,5).3.x) X-7 2 analogyl(,5,2.x)) X=6 ?- analogy1(,5)(4.x)). X=4 2 analogyl(5,1),(8,x). ?- analogy1((6,2),(5,X) X-1 Hint 1. Represent each figure with a fact describing the relationship between its components For example, figure 1 is represented by the fact figure(L,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 Crelated to ? The follows: algorithm to answer this query is as To find the number X of a figure that is related to figure C im 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,5).3.x) X-7 2 analogyl(,5,2.x)) X=6 ?- analogy1(,5)(4.x)). X=4 2 analogyl(5,1),(8,x). ?- analogy1((6,2),(5,X) X-1 Hint 1. Represent each figure with a fact describing the relationship between its components For example, figure 1 is represented by the fact figure(L,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 Crelated to ? The follows: algorithm to answer this query is as To find the number X of a figure that is related to figure C im 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!