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

  Explaining regular language and context-free language

Let L1 be a regular language and L2 be a context-free language, both defined over the same alphabet Σ.

  Rating of vital for page with highest utility

Rating of Vital is always given to the page with the highest utility.

  Question in unix os

What if we need the portion from a text based on some keyword. Now i want the middle portion where i found EO427849242. I tried with sed but it does not give me the desired result.

  Executing intrusion detection system

Your company is trying to decide whether to execute intrusion detection system (IDS), or intrusion prevention system (IPS).

  Drawing class diagram to show instructor serves department

One instructor also serves a department chair. Draw a detailed class diagram to represent the above information.

  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..

  Explaining benefits of reconnaissance tools

Write down some popular reconnaissance tools? Compare three reconnaissance tools and describe the benefits and limitations of each.

  Explaining major provisions of telecommunications act

Write down some of the major provisions of the Telecommunications Act of 1996?

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs, Flash RAM, and solid-state drives (SSD)

  Program to randomly select three numbers

Write a program to randomly select the numbers of 3 finalist to recieve a prize. Make sure not to pick the same number twice.

  Key principles on smart phone devices gps tracking system

How to apply these key principles on smart phone devices GPS tracking system/software to mitigate user personal information be exposed undesirably.

  Good meetings in software development life cycle

Provide three words or phrases that explain why "good meetings" are important during the Software Development Life Cycle?

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