Write a logic program that simplifies formulas

Assignment Help Mathematics
Reference no: EM13884387

Exercise 1: Six coins are lying on the table in the following order

head head head tail tail tail

In one move, two adjacent coins may be turned. We search for a sequence of moves which transfers the coins into the situation

tail head tail head tail head

Formulate a logic program to solve this puzzle.

Exercise 2: Formulate the following puzzle in predicate logic clauses, and use the answer generation method to solve it:

Tom, Mike, and John are members of the alpine club. Each member of the alpine club is either skier or climber or both. No climber likes the rain and all skiers like the snow. Mikae likes everything that Tom dislikes, and vice versa. Mike and John like the snow.

Is there a member of the alpine club who is climber but no skier, and who is this?

Exercise 3: The logic program for addition described above can also be used for subtraction. How?

Exercise 4: Formulate a different logic program for addition which is based on the following recursive presentation"

x + 0 = x

x + y' = x' + y

Compute again what the result of 3 + 2 is.

Exercise 5: Write a logic program that simplifies formulas by eliminating useless multiplicative factors that are 1, and additive terms that are
0. (This program could be combined with the above program for differentiation.) The program we are looking for should be able to perform the following computation.

Using as input the goal clause?-

?- simpzify(1 * A + (B + (0 + x))*1, C).

leads to the result

simplify (1 * A + (B + (0 + x))*1, A + (B + x)).

Reference no: EM13884387

Questions Cloud

Compute the change in the wealth levels of each companies : Compute the change in the wealth levels of each of the four companies due to the market value changes in their equity investments.
Electron configuration of elemental bohrium : If 199 atoms of bohrium-267 could be synthesized, how much time would elapse before only 11 atoms of bohrium-267 remain? What is the expected electron configuration of elemental bohrium?
Concept of planning in project life-cycle and how research : Explain the concepts of planning in the project life-cycle and how research and critical thinking is mandatory in planning
Nuclear synthesis of this cobalt isotope : Radioactive cobalt-60 is used to study defects in vitamin B12 absorption because cobalt is the metallic atom at the center of the vitamin B12 molecule. The nuclear synthesis of this cobalt isotope involves a three-step process. The overall reactio..
Write a logic program that simplifies formulas : Formulate a different logic program for addition which is based on the recursive presentation - The logic program for addition described above can also be used for subtraction. How?
What is the intrinsic value and market value of kmart : The operating income of Kmart has shown a declining trend. Year 2014 and 2013 was loss making years for the company. What is the intrinsic value of Kmart? What is the market value of Kmart?
What type of anemia does ms. a most likely have : Considering the circumstances and the preliminary workup, what type of anemia does Ms. A most likely have? In an essay of 500-750 words, explain your answer and include rationale.
Aqueous solution of potassium iodide : You add an aqueous solution of lead nitrate to an aqueous solution of potassium iodide. Draw highly magnified views of each solution individually, and the mixed solution including any product that forms.
Significant figures in the naoh molarity : If 2.00 MNaOH is available, how would the student prepare the solution? To help insure three significant figures in the NaOH molarity, to how many significant figures should the volumes and mass be determined?

Reviews

Write a Review

Mathematics Questions & Answers

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

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