Construct a model-theoretic interpretation

Assignment Help Basic Computer Science
Reference no: EM131304775

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. (Note: No flight in reverse direction can be automatically assumed.)

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 26.13) of the above facts and rules.

d. Consider the query REACHABLE(Atlanta, Sydney)? How will this query be executed? 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. (Note: DURATION(X, Y, Z) means that you can take a flight from X to Y in Z hours.)

f. Consider the following query: What cities are reachable in 12 hours from Atlanta? Show how to express it in Data log. Assume built-in predicates like greater-than(X, Y). 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, Y), 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 Data log. Draw a corresponding query tree in relational algebraic terms.

Reference no: EM131304775

Questions Cloud

Why is it important to develop a strategic plan : Why is it important for a healthcare organization to develop a strategic plan? What is the difference between a healthcare organization's business and strategic plan?
Who founded the first wahhabist state : Give the Answer of Muliple Choice Question:Who founded the first Wahhabist state? Which of these best describes Mughal rule?
What is your initial margin requirement : What is your initial margin requirement? Suppose you buy the stock at the purchase price and repay your broker. What is your return on this short? How high can Toyota go before you receive a margin call? What is the reduction needed to return your ac..
Propose an architecture for national theater booking system : Using a distributed component approach, propose an architecture for a national theater booking system.- Users can check seat availability and book seats at a group of theaters.
Construct a model-theoretic interpretation : Draw a predicate dependency graph for the above predicates. (Note: DURATION(X, Y, Z) means that you can take a flight from X to Y in Z hours.)
Price level adjusted mortgage : A price level adjusted mortgage (PLAM) is made with the following terms: Amount=95000, Initial interest rate=4%, Term=30 yrs, Points = 6%. Assuming inflation is expected to be 6% per year for the next five years, what is the payment at the beginning ..
Explain considerations for leaders of the business you chose : Explain the considerations for leaders of the business you chose in managing the cultural diversity in terms of customer service and employee expectations.
Evaluate hrm functions of the organisation : Critically evaluate two Human Resource Management (HRM) functions of the organisation selected. Consider highlighting the differences between the traditional practice of Personnel Management (PM) and modern practices of HRM
Define a class whose instances represent request and reply : It should also provide a method to marshal itself into an array of bytes and to unmarshal an array of bytes into an instance.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  House or office that could be represented with an array

1) What are some items in your house or office that could be represented with an array? Discuss how you can use that array to keep track of those items.2) What happens if we set an index valuse greater than the size of the array?

  Explain how entities are transformed into tables

5.1-Explain how entities are transformed into tables?

  Discuss how you would correct the issue

Discuss how you would correct this issue so that every demographic would have an equal opportunity to vote. Support your answer.

  Implement a major computer system

Have you observed an employer implement or attempt to implement a major computer system or make a major change to an existing computer system? To what extent did all of this happen?

  Draw an e- r data model

Draw an E- R data model for the Garden Glory database schema shown in Chapter 3' s " Garden Glory Project Questions." Use the IE Crow's Foot E- R model for your E- R diagrams. Justify the decisions you make regarding minimum and maximum ­cardinali..

  Provide a proof or a counterexample

We showed that since the problem concerning a machine halting on its own index is unsolvable, the general halting problem for Turing machines is unsolvable. Does this imply that any superset of an unsolvable problem is unsolvable? Provide a proof ..

  Which technology half or full duplex has a lower effective

Which technology (half or full duplex) has a lower effective throughput rate

  Identify and evaluate two online stores

Identify and evaluate two online stores that sell business furniture. Briefly summarize your findings.

  What basic steps are required for analyzing data using micro

Write a 200 word response that answers the following questions: What basic steps are required for analyzing data using Microsoft®Access®? How could these steps help you diagnose and troubleshoot Microsoft®Access®errors? Which of the five steps presen..

  Procedures involved in recommending products and services

Develop a presentation you would deliver to new employees to explain the procedures involved in recommending products and services. Your presentation will need to cover the steps taken to research the product range and recommend products/ services..

  Determine the mass of air vented out in one day

The ventilating fan of the bathroom of a building has a volume flow rate of 30 L/s and runs continuously. If the density of air inside is 1.20 kg/m3 , determine the mass of air vented out in one day.

  Determine the smallest lever force p

Determine the smallest lever force P needed to prevent the wheel from rotating if it is subjected to a torque of M = 250 N .m The coefficient of static friction between the belt and the wheel is µs = 0.3.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd