Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we put into a logical knowledge base a segment of the U . S . census data listing the age, city of residence, date

Suppose we put into a logical knowledge base a segment of the U.S. census data listing the age, city of
residence, date of birth, and mother of every person, using social security numbers as identifying
constants for each person. Thus, George's age is given by Age(443-65-1282,56). Which of the
following indexing schemes Sl-S5 enable an efficient solution for which of the queries Q1-Q4(assuming
normal backward chaining)?
S1: an index for each atom in each position.
S2: an index for each first argument.
S3: an index for each predicate atom.
S4: an index for each combination of predicate and first argument.
S5: an index for each combination of predicate and second argument and an index for each first
argument.
Ql: Age -44-4321,x
Q2: ResidesIn(x,Houston)
Q3: Mother(x,y)
Q4: Age (x,34)?? ResidesIn , TinyTownUSA)Suppose we put into a logical knowledge base a segment of the U.S. census data listing the age, city of
residence, date of birth, and mother of every person, using social security numbers as identifying
constants for each person. Thus, George's age is given by Age(443-65-1282,56). Which of the
following indexing schemes Sl-S5 enable an efficient solution for which of the queries Q1-Q4(assuming
normal backward chaining)?
S1: an index for each atom in each position.
S2: an index for each first argument.
S3: an index for each predicate atom.
S4: an index for each combination of predicate and first argument.
S5: an index for each combination of predicate and second argument and an index for each first
argument.
Ql: Age -44-4321,x
Q2: ResidesIn(x,Houston)
Q3: Mother(x,y)
Q4: Age (x,34)?? ResidesIn , TinyTownUSA)

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

Recommended Textbook for

Sql++ For Sql Users A Tutorial

Authors: Don Chamberlin

1st Edition

0692184503, 978-0692184509

More Books

Students also viewed these Databases questions