Describing how prolog executes command

Assignment Help Basic Computer Science
Reference no: EM1345468

Q1) These three options are represented in Prolog by three clauses (rules or facts) of the predicate fun. Prolog will start from the first clause of fun and try that. If that does not succeed, it will try the next clause. It only fail when it runs out of rules or facts to try. Given is an example of the first rule.

fun(x) :- /* an item is fun if */
red(X), /* the item is red */
car(X). /* and it is a car */

Here are other additional fun facts. VW_Beatle is a red car , Ford Escort is a blue car. Harley_Davidson is a blue bike. Yamaha is a red bike.

Construct the rest of the necessary clauses and commands to see if: - i) Harley_Davidson is fun and ii) Identify items which are fun.
Describe how Prolog executes command (query) and goal matching process.

Reference no: EM1345468

Questions Cloud

Concept of spot-forward pricing parity : Describe the concept of "Spot-Forward pricing parity" relationship with a numerical example. Write down the implications of this for Foreign Exchange Market?
What mass of is required to make the new model : According to legend, to determine whether the king's crown was made of pure gold, Archimedes measured the crown's volume by find out how much water it displaced. The density of gold is 19.3g/cm^3. If the crown's mass was 6.00 * 10^2g, what volume ..
Explaining competition in early years of telephone industry : Was regulation alternative to competition in early years of telephone industry?
Concept of purchasing power parity : Describe the concept of 'purchasing power parity' (PPP) in your own words. What are the requisite conditions for PPP to exist?
Describing how prolog executes command : Describe how Prolog executes command (query) and goal matching process.
Calculate the current price of the common stock : Common Stock of Coquihalla Company will pay a dividend of dollar 8.00 in the upcoming year, & dividends are expected to grow 5 percent per year in the future.
Translation of foreign currencies : Describe the policies used in reflecting in the financial statements the impact of changes in foreign exchange rates.
International business and local business : Describe how international business may impact a local car business on the basis of competition, exchange rate and interest rate.
Measurements mean for the mutual funds : Describe mean if a domestic mutual fund has a beta coefficient of 1.25, an alpha coefficient of 2.25 & an R-Square of 75?

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