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 function in sop and pos

Simplify the function in SOP and POS and draw logic gates design, using the minimum possible number of gates.(if you need to further simplify using Boolean algebra please do so).

  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)

  Explaining network attacker steal secure google cookies

Explain how a network attacker (an active attacker that can intercept or forge network packets, etc.) could steal secure google.com cookies.

  Explaining it acquisition issued request for proposal

A federal agency that does not use IT acquisition best practices issued a request for proposal that requires the contractor selected to use such practices, including certification at CMMI Level 3 or above.

  Designing a 4-to-16 decoder using not gates

Draw 4-to-16 decoder by using components. You must not use any extra components.

  Explaining social engineering attack

Study a social engineering attack. What made this attack successful?

  Explaining constraint programming

It is about constraint programming. We have party organizations for being social. Every participant has their own preference list for parties, every party organizers has their own preference list for giving parties, too.

  Runnig test cases on same piece of code

Why four people must waste their time looking for faults when one person can run test cases on same piece of code. How do you respond?

  Evaluation process to seven-step acquisition model

Discuss in scholarly detail the acquisition evaluation process to the Seven-Step Acquisition Model.

  Receiver initiated distributed scheduling algorithms

Receiver initiated distributed scheduling algorithms suppose task pre-emption at the sender site.

  Class diagram for a book comprising chapters

Draw a class diagram representing a book defined by the following statement. "A book is composed of a number of parts, which in turn are composed of a number of chapters.

  The marie simulator

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

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