Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Define the goals of persuasive speaking

Answered: 1 week ago