<< Chapter < Page | Chapter >> Page > |
In that same board , is location safe? What is your informal reasoning? (List all your small steps.)Similarly for location .
Give a domain axiom of WaterWorld which was omitted in the ellipses in the WaterWorld domain axioms .
Even allowing for ellision, the list of WaterWorld domain axioms is incomplete, in a sense. The game reports how many pirates exist in total, butthat global information is not reflected in the propositions or axioms.
First, assume we only use the default
WaterWorld board size and number of pirates,
Next, generalize your answer to model the program's ability to play the game with a different number of pirates.
Give one WFF which meets all three conditions:
A theorem of WaterWorld)
When writing truth tables, please list rows in the order used in all examples:FF, FT, TF, TT. For three-input tables, use the above four lines preceded by F,then the above four lines preceded by T.
In a truth table for two inputs, provide a column for each of the sixteen possible distinct functions. Give a small formula for each of these functions.
[Practice problem solution provided.]
Write the truth table for xnor , the negation of exclusive-or,What is a more common name for this Boolean function?
This is the
equalsfor Booleans. It is also represented by the connective if-and-only-if .
If you said something like
the both-or-neither function, that's not quite good enough,as it's a roundabout way of expressing the simple idea of equivalence.Granted, it takes some practice to internalize Booleans as values, and that equality is as valid for them as for any other value.
How many years would it take to build a truth table for a formula with 1000 propositions?Assume it takes 1 nanosecond to evaluate each formula.
A formula with 1000 propositions clearly isn't something you would create by hand. However, such formulas easily arise whenmodeling the behavior of a program with a 1000-element data structure.
Use truth tables to answer each of the following. Showing whether the connectives obey such properties via truth tables is one way ofestablishing which equivalences or inference rules we should use.
Show whether ⇒ is commutative.
Show whether ⊕ is commutative.
Show whether ⊕ is associative.
Prove that ∧ distributes over ∨:
Prove that ∨ distributes over ∧:
Show whether ∧ or ∨ distribute over ⇒.
Show whether ⇒ distributes over ∧ or ∨.
Show whether ∧ or ∨ distribute over ⊕.
Show whether ⊕ distributes over ∧ or ∨.
Notification Switch
Would you like to follow the 'Intro to logic' conversation and receive update notifications?