Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 408 Weeks Ago, 3 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Management Posted 05 Oct 2017 My Price 8.00

Singapore to Sydney.

Consider the following rules:

 

reachable(X,Y) :- flight(X,Y)

reachable(X,Y) :- flight(X,Z), reachable(Z,Y)

where reachable (X, Y) means that city Y can be reached from city X, and flight(X, Y) means that there is a flight to city Y from city X.

a. Construct fact predicates that describe the following:

i. Los Angeles, New York, Chicago, Atlanta, Frankfurt, Paris, Singapore, Sydney are cities.

ii. The following flights exist: LA to NY, NY to Atlanta, Atlanta to Frankfurt, Frankfurt to Atlanta, Frankfurt to Singapore, and Singapore to Sydney. Singapore to Sydney.

b. Is the given data cyclic? If so, in what sense?

c. Construct a model theoretic interpretation (that is, an interpretation similar to the one shown in Figure 25.3) of the above facts and rules.

d. Consider the query reachable(Atlanta,Sydney)? How will this query be executed using naive and seminaive evaluation? List the series of steps it will go through.

e. Consider the following rule-defined predicates:

round-trip-reachable(X,Y) :- reachable(X,Y), reachable(Y,X) duration(X,Y,Z)

Draw a predicate dependency graph for the above predicates.

f. Consider the following query: What cities are reachable in 12 hours from Atlanta? Show how to express it in Datalog. Assume built-in predicates like greater-than(X, V). Can this be converted into a relational algebra statement in a straightforward way? Why or why not?

g. Consider the predicate population(X, Y) where Y is the population of city X. Consider the following query: List all possible bindings of the predicate pair (X,V), where Y is a city that can be reached in two flights from city X, which has over 1 million people. Show this query in Datalog, Draw a corresponding query tree in relational algebraic terms.

Answers

(5)
Status NEW Posted 05 Oct 2017 10:10 PM My Price 8.00

H-----------ell-----------o S-----------ir/-----------Mad-----------amT-----------han-----------k Y-----------ou -----------for----------- us-----------ing----------- ou-----------r w-----------ebs-----------ite----------- an-----------d a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m o-----------nli-----------ne -----------or -----------inb-----------ox -----------me -----------a m-----------ess-----------age----------- I -----------wil-----------l

Not Rated(0)