Define the predicate successor

Assignment Help Theory of Computation
Reference no: EM13696482

Question: During the middle Ages, to determine the successor to the throne of France, the French used the Salic law. It is formulated as follows: the next to the throne is the living male descendant of the most direct Male royal. Male royal here means that we consider only male ancestors. The most direct descendant means we prefer the one whose father is king to the one whose grandfather is king. In case of a tie, the eldest takes precedence over his brothers.

Part 1: Define the predicate Successor (Year) giving the solution as the first successor to the crown for the year specified. To do this, use the predicates born(X, Year), died(X, Year), male(X).

I can't look to get this to work for some reason could somebody provide me the answer to compare and test?

Reference no: EM13696482

Questions Cloud

Empirical formula should be written with whole numbers : Problem- Upon combustion, a 1.000 g sample of a compound containing hydrogen, oxygen and carbon produced 1.50 g CO2 and 0.41 g H2O. a. Find the empirical formula. This empirical formula should be written with whole numbers.
Implement the basic properties of a bank account : Define the class bankAccount to implement the basic properties of a bank account. An object of this class should store the subsequent data:
Calculate the radiation dosage exposed for ci : Problem- Calculate the radiation dosage (in grays) for an 77-kg person that is exposed for 3.0 seconds to a 3.0 Ci source of beta radiation. Assume that 100% of the radiation is absorbed and each beta particle has an energy of 2.0× 10-13 J.
Determines and displays the smallest and largest : Create a method that determines and displays the smallest and largest of the ten values. Then, pass the array to the method - Create a GUI application whose button's Click() method accepts ten integer values from a TextBox and stores them in an arra..
Define the predicate successor : Define the predicate Successor (Year) giving the solution as the first successor to the crown for the year specified. To do this, use the predicates born(X, Year), died(X, Year), male(X).
Calculate the effective radiation dosage : Problem- Calculate the effective radiation dosage (in Sieverts) for a 69-kg person who is exposed to 4.9 × 109 particles of alpha radiation.
Describe what side effect is the expression contains : Provide an example in C++ of an expression whose value depends upon the evaluation order - Show the orders that produce different values and the values they produce.
Draw the molecule by placing atoms on the grid : Problem- Draw the Lewis structure of H2O. Include any nonbonding electron pairs. Draw the molecule by placing atoms on the grid and connecting them with bonds. Include all lone pairs of electrons.
Write a flowchart to print the largest of any 3 numbers : Write a flowchart to print the largest of any 3 numbers - Write a flowchart to print a product of 3 numbers.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Ms give and fa for each of the following languagesa all

give and fa for each of the following languages ltbrgt ltbrgta. all binary strings with at least three 13939s ltbrgtb.

  You are aware of the importance of cpd and the knowledge

you are aware of the importance of cpd and the knowledge skills and behaviour required to be effective in an hr role.

  Hr ethics are important to organizations as they can have

hr ethics are important to organizations as they can have legal and moral implications. in this assignment you will

  Write down binary representation of decimal number

Calculate the sum of 2.6125 X 101 and 4.150390625 X 10-1 by hand, assuming A and B are stored in the 16-bit half precision described in exercise 3.27. Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all steps.

  Manipulation and simplification of logic predicates

How is the principle of inclusion and exclusion related to the rules for manipulation and simplification of logic predicates?

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Give context-free grammars that generate languages

Give context-free grammars that generate the following languages - Transform the following grammar into Chomsky normal form

  Create a parser to check expression for allowable form

Find out its grammatical structure with respect to given formal grammar. You are needed to create a parser which will check expression for allowable form.

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  Use algorithm np completeness of any of the problems

Use any algorithm we without writing out details of algorithm. In proving problem NP-complete, you may utilize NP completeness of any of the problems.

  Write a job description for each member of a three-person

write a job description for each member of a three-person virtual team tasked to improve company morale the virtual

  Imagine you are a compensation analyst at a large

imagine you are a compensation analyst at a large manufacturing organization. the ceo recently came to your boss the

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