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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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