Logic and Constraint Reasoning
- 61Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the value of X1 if X1+X2=10 and X1−X2=4?
What is the value of X1 if X1+X2=10 and X1−X2=4?
61 questions
- 1
What is the value of X1 if X1+X2=10 and X1−X2=4?
- A
14
- B
8
- C
7
- D
6
Correct answer
C7
Explanation
Adding the equations eliminates X2: 2X1=14, so X1=7. This illustrates how using the equations’ structure is more efficient than trying arbitrary values.
- A
- 2
Which sequence best describes the modeling, learning, and inference workflow?
- A
Use data to learn a model, then use the model to answer questions through inference.
- B
Use inference to create data, then use a question to select a learning procedure.
- C
Use a question to produce data, learn an answer, and construct an inference algorithm.
- D
Use a model to generate data, then use inference to learn the model’s parameters.
Correct answer
AUse data to learn a model, then use the model to answer questions through inference.
Explanation
The general workflow is to learn a model from data and then use inference with that model to answer a question.
- A
- 3
What kind of question does inference answer in a search problem?
- A
What is the minimum-cost path?
- B
Which variable values satisfy all the constraints?
- C
Which policy maximizes expected value over time?
- D
Which assignment has the greatest probability given evidence?
Correct answer
AWhat is the minimum-cost path?
Explanation
For search problems, inference asks for a minimum-cost path.
- A
- 4
How are state-based models such as search problems, MDPs, and games typically represented?
- A
As states connected by actions that incur costs or provide rewards.
- B
As probability distributions over evidence and query variables.
- C
As formulas linked by interpretations that assign truth values.
- D
As variables linked by factors that restrict their values.
Correct answer
AAs states connected by actions that incur costs or provide rewards.
Explanation
State-based models represent states as nodes and actions as transitions; transitions may incur costs or provide rewards. Solutions can be paths, contingent paths, or policies.
- A
- 5
What is the central representation in variable-based models such as CSPs and Bayesian networks?
- A
States connected by actions and rewards.
- B
Variables connected by factors or constraints.
- C
Logical symbols connected only by inference rules.
- D
Paths connected by minimum-cost transitions.
Correct answer
BVariables connected by factors or constraints.
Explanation
Variable-based models describe variables and factors that constrain or otherwise relate the values those variables can take.
- A
- 6
Which pairing correctly matches model types with the inference question described in the content?
- A
MDPs and games—maximum-value policy; CSPs—maximum-weight assignment; Bayesian networks—query probability given evidence.
- B
MDPs and games—maximum-weight assignment; CSPs—maximum-value policy; Bayesian networks—minimum-cost path.
- C
MDPs and games—minimum-cost path; CSPs—query probability given evidence; Bayesian networks—maximum-weight assignment.
- D
MDPs and games—query probability given evidence; CSPs—minimum-cost path; Bayesian networks—maximum-value policy.
Correct answer
AMDPs and games—maximum-value policy; CSPs—maximum-weight assignment; Bayesian networks—query probability given evidence.
Explanation
The stated inference tasks are maximum-value policy for MDPs and games, maximum-weight assignment for CSPs, and probabilistic queries conditioned on evidence for Bayesian networks.
- A
- 7
What is a key strength of logical models compared with approaches that focus on uncertainty or learning from large amounts of data?
- A
They automatically learn rules from large datasets without explicit structure.
- B
They guarantee that every inference can be computed efficiently.
- C
They naturally represent uncertain outcomes with probabilities.
- D
They can express complicated knowledge compactly.
Correct answer
DThey can express complicated knowledge compactly.
Explanation
Logic’s emphasized strength is expressiveness: it can represent complicated things succinctly. Classical logic is deterministic and rule-based, which limits its natural handling of uncertainty and large amounts of data.
- A
- 8
Which two properties should a logical language have, according to the content?
- A
It should represent knowledge about the world and support reasoning with that knowledge.
- B
It should permit arbitrary expressions and assign each one a unique truth value.
- C
It should represent probabilities and learn all its rules from data.
- D
It should encode only complete assignments and always find optimal paths.
Correct answer
AIt should represent knowledge about the world and support reasoning with that knowledge.
Explanation
A logical language must be rich enough to represent knowledge and must also allow that knowledge to be used for reasoning.
- A
- 9
What does the syntax of a logic specify?
- A
Which real-world situations make each formula true.
- B
Which formulas should be learned from a dataset.
- C
Which inference algorithms are computationally fastest.
- D
Which formulas are valid expressions in the language.
Correct answer
DWhich formulas are valid expressions in the language.
Explanation
Syntax specifies the valid or grammatical expressions of a logical language.
- A
- 10
What does the semantics of a logic specify?
- A
How formulas are constructed from symbols.
- B
How an inference algorithm chooses its next rule.
- C
Which strings of symbols are grammatically valid.
- D
What formulas mean, including when they are true.
Correct answer
DWhat formulas mean, including when they are true.
Explanation
Semantics assigns meaning to formulas; in propositional logic, this is defined using an interpretation of formulas under models.
- A
- 11
What is the role of inference rules in a logic?
- A
They define the set of propositional symbols available.
- B
They assign truth values to every possible model.
- C
They specify syntactic operations that derive formulas while preserving semantic validity.
- D
They determine which natural-language sentences can be translated into logic.
Correct answer
CThey specify syntactic operations that derive formulas while preserving semantic validity.
Explanation
Inference rules allow formulas to be manipulated syntactically to derive other formulas, with valid rules preserving the relevant semantics.
- A
- 12
Which example shows that two expressions can have different syntax but the same semantics?
- A
2+3 and 3+2, which both denote 5.
- B
A and A and B, which have different truth conditions.
- C
3/2 in two languages where division has different meanings.
- D
A and not A, which always have opposite truth values.
Correct answer
A2+3 and 3+2, which both denote 5.
Explanation
The expressions 2+3 and 3+2 are written differently but have the same meaning, namely 5.
- A
- 13
Why is syntax alone insufficient to define a language precisely?
- A
Syntax only applies to natural languages, not formal languages.
- B
A formula’s meaning is determined solely by its length.
- C
Syntax cannot specify which symbols are propositional symbols.
- D
The same syntax can have different meanings under different semantics.
Correct answer
DThe same syntax can have different meanings under different semantics.
Explanation
The same expression, such as 3/2, can have different meanings in different languages. A precise language therefore needs both syntax and semantics.
- A
- 14
What trade-off generally occurs as a logical language becomes more expressive?
- A
It becomes more probabilistic, but requires fewer symbols.
- B
It becomes less formal, but more efficient to evaluate.
- C
It can represent more kinds of information, but computation in it becomes harder.
- D
It can represent less information, but computation becomes easier.
Correct answer
CIt can represent more kinds of information, but computation in it becomes harder.
Explanation
The content describes a trade-off: more expressive logics can state more, but computation in those languages tends to become harder.
- A
- 15
In propositional logic, what is a model?
- A
A complete assignment of truth values to propositional symbols.
- B
A formula that is true in every possible world.
- C
A probability distribution over possible assignments.
- D
A set of inference rules for transforming formulas.
Correct answer
AA complete assignment of truth values to propositional symbols.
Explanation
A propositional-logic model is a complete assignment of true or false values to the propositional symbols.
- A
- 16
How many models are possible for three propositional symbols, each of which can be true or false?
- A
8
- B
9
- C
6
- D
3
Correct answer
A8
Explanation
Each of the three symbols has two possible truth values, so the number of complete assignments is 23=8.
- A
- 17
What does the interpretation function do in propositional logic?
- A
It takes two formulas and determines whether their syntax is identical.
- B
It takes a formula and a model and returns whether the formula is true in that model.
- C
It takes a knowledge base and returns a probability distribution.
- D
It takes a model and produces a new propositional symbol.
Correct answer
BIt takes a formula and a model and returns whether the formula is true in that model.
Explanation
The interpretation function evaluates a formula against a model and returns true or false according to the formula’s semantics.
- A
- 18
How is an atomic propositional symbol interpreted in a model?
- A
By counting how many other symbols occur in the formula.
- B
By checking the truth value assigned to that symbol in the model.
- C
By checking whether the symbol appears in an inference rule.
- D
By calculating the probability of the entire model.
Correct answer
BBy checking the truth value assigned to that symbol in the model.
Explanation
The interpretation of an atomic symbol is found by looking up its assigned truth value in the model.
- A
- 19
Under the standard propositional semantics described, when is a conjunction F and G true?
- A
Only when both F and G are true.
- B
Whenever at least one of F or G is true.
- C
Whenever F is false or G is true.
- D
Whenever F and G have the same truth value.
Correct answer
AOnly when both F and G are true.
Explanation
A conjunction is true only when both of its component formulas are true.
- A
- 20
Under the standard propositional semantics described, when is a disjunction F or G true?
- A
When F is true and G is false.
- B
Only when F and G have the same truth value.
- C
Only when both F and G are false.
- D
When at least one of F or G is true.
Correct answer
DWhen at least one of F or G is true.
Explanation
A disjunction is true if at least one of its component formulas is true.
- A
- 21
When is an implication F implies G false under the described truth conditions?
- A
Only when F is false and G is false.
- B
Whenever F and G have the same truth value.
- C
Whenever F is false or G is true.
- D
Only when F is true and G is false.
Correct answer
DOnly when F is true and G is false.
Explanation
The implication is true if F is false or G is true; therefore, it is false only when F is true and G is false.
- A
- 22
When is a biconditional F iff G true?
- A
When G is false, regardless of F.
- B
When at least one of F and G is true.
- C
When F and G have the same truth value.
- D
When F is true, regardless of G.
Correct answer
CWhen F and G have the same truth value.
Explanation
A biconditional is true exactly when its two sides evaluate to the same truth value.
- A
- 23
How is the formula not F evaluated in a model?
- A
It is false only when F is false.
- B
It is true only when F is true.
- C
It has the same truth value as F.
- D
It has the opposite truth value from F.
Correct answer
DIt has the opposite truth value from F.
Explanation
Negation reverses the truth value of the formula it applies to.
- A
- 24
What does the set of models M(F) represent?
- A
All formulas that can be derived from F.
- B
All assignments in which every symbol is false.
- C
All models in which at least one symbol in F is true.
- D
All models in which F is true.
Correct answer
DAll models in which F is true.
Explanation
A formula denotes the set of models in which its interpretation is true.
- A
- 25
How can a short logical formula represent a very large set of possible situations?
- A
Its meaning can include many models even though the formula itself is compact.
- B
It assigns a unique probability to every possible formula.
- C
Its syntax changes to include every model explicitly.
- D
It removes the need to define propositional symbols.
Correct answer
AIts meaning can include many models even though the formula itself is compact.
Explanation
A concise formula can denote a set containing many models, potentially an exponentially large number of them. This is one source of logic’s expressive power.
- A
- 26
What is a knowledge base in propositional logic?
- A
A set of formulas representing information known about the world.
- B
A single model assigning values to every symbol.
- C
A list of all formulas that are syntactically invalid.
- D
A probability distribution over evidence variables.
Correct answer
AA set of formulas representing information known about the world.
Explanation
A knowledge base is a set of formulas that represents the facts or information known about the world.
- A
- 27
How is the set of models of a knowledge base determined from its formulas?
- A
By taking only the models of its longest formula.
- B
By selecting the model with the highest probability.
- C
By taking the union of the models of all its formulas.
- D
By taking the intersection of the models of all its formulas.
Correct answer
DBy taking the intersection of the models of all its formulas.
Explanation
A model of the knowledge base must satisfy every formula in it, so the knowledge base’s models are the intersection of the formulas’ model sets.
- A
- 28
What generally happens to the possible models when a consistent knowledge base gains an additional formula?
- A
The set of possible models can only stay the same or shrink.
- B
The set of possible models becomes exactly one model.
- C
The set of possible models is replaced by all truth assignments.
- D
The set of possible models must grow.
Correct answer
AThe set of possible models can only stay the same or shrink.
Explanation
Adding a formula intersects the existing models with the new formula’s models. This can preserve the set or shrink it, but cannot expand it.
- A
- 29
What does it mean for a knowledge base KB to entail a formula F?
- A
The formula F has the same syntax as a formula in KB.
- B
Every model of KB is also a model of F.
- C
Every model of F is also a model of KB.
- D
The model sets of KB and F are disjoint.
Correct answer
BEvery model of KB is also a model of F.
Explanation
Entailment means that every situation satisfying the knowledge base also satisfies F, or equivalently that the models of KB are a subset of the models of F.
- A
- 30
If KB already entails a formula F, what happens when F is added to the knowledge base?
- A
The possible models become empty, so a contradiction is created.
- B
The possible models expand to include worlds violating KB.
- C
The possible models remain unchanged, so no new information is added.
- D
The knowledge base becomes probabilistic.
Correct answer
CThe possible models remain unchanged, so no new information is added.
Explanation
If KB entails F, all models already allowed by KB satisfy F. Intersecting with the models of F therefore leaves the knowledge base’s model set unchanged.
- A
- 31
What does it mean for a knowledge base to contradict a formula F?
- A
The formula F can be derived by applying an inference rule.
- B
The knowledge base and F have no common models.
- C
The knowledge base’s models are a subset of the models of F.
- D
The knowledge base and F have at least one common model.
Correct answer
BThe knowledge base and F have no common models.
Explanation
A knowledge base contradicts F when no model satisfies both the knowledge base and $F.
- A
- 32
When is the relationship between a knowledge base and a formula described as contingent?
- A
When the formula and knowledge base have identical syntax.
- B
When the formula has no model in common with the knowledge base.
- C
When the formula is already true in every model of the knowledge base.
- D
When their model sets have a nonempty intersection, but adding the formula changes the knowledge base’s models.
Correct answer
DWhen their model sets have a nonempty intersection, but adding the formula changes the knowledge base’s models.
Explanation
Contingency means the formula adds nontrivial information: the intersection is neither empty nor the original set of knowledge-base models.
- A
- 33
Which statement captures the relationship between contradiction and entailment?
- A
KB contradicts F exactly when F entails KB.
- B
KB contradicts F exactly when KB entails F.
- C
KB contradicts F exactly when KB entails not F.
- D
KB contradicts F exactly when F and KB have identical models.
Correct answer
CKB contradicts F exactly when KB entails not F.
Explanation
If the knowledge base rules out every model in which F is true, then it entails not F; this is equivalent to contradicting F.
- A
- 34
What response should a yes-or-no query operation give when the knowledge base entails the queried formula?
- A
I do not know, because some consistent models satisfy it and others do not.
- B
Yes, because the formula is true in every model consistent with the knowledge base.
- C
No, because the formula is false in every model consistent with the knowledge base.
- D
The knowledge base should be discarded because it contains no models.
Correct answer
BYes, because the formula is true in every model consistent with the knowledge base.
Explanation
Entailment supports a definite yes: every model compatible with the knowledge base makes the queried formula true.
- A
- 35
What response should a yes-or-no query operation give when the queried formula is contingent with respect to the knowledge base?
- A
I do not know, because the knowledge base permits both satisfying and non-satisfying situations.
- B
No, because the formula is false in every possible model.
- C
Yes, because the formula is true in every possible model.
- D
The formula must be added as a fact before it can be evaluated.
Correct answer
AI do not know, because the knowledge base permits both satisfying and non-satisfying situations.
Explanation
In the contingent case, the knowledge base neither entails the formula nor contradicts it, so the appropriate response is that the answer is unknown.
- A
- 36
How can the probability of a formula F given a knowledge base KB be expressed using events?
- A
As P(F)+P(KB).
- B
As P(KB)/P(F∩KB).
- C
As P(F∪KB)/P(F).
- D
As P(F∩KB)/P(KB).
Correct answer
DAs P(F∩KB)/P(KB).
Explanation
Treating the knowledge base and formula as events, the conditional probability is P(F∩KB)/P(KB). This assumes a probability distribution over complete assignments.
- A
- 37
In the probabilistic generalization, what does a conditional probability of 0 or 1 indicate?
- A
Neither value has a corresponding logical interpretation.
- B
0 indicates contradiction and 1 indicates entailment.
- C
Both values indicate contingency.
- D
0 indicates entailment and 1 indicates contradiction.
Correct answer
B0 indicates contradiction and 1 indicates entailment.
Explanation
A conditional probability of 0 means the formula has no probability mass within the knowledge-base event, while 1 means it holds throughout that event.
- A
- 38
What does it mean for a knowledge base to be satisfiable?
- A
The knowledge base contains no propositional symbols.
- B
At least one model satisfies every formula in the knowledge base.
- C
Every formula in the knowledge base can be derived by modus ponens.
- D
Every possible model satisfies every formula in the knowledge base.
Correct answer
BAt least one model satisfies every formula in the knowledge base.
Explanation
A knowledge base is satisfiable if its set of models is nonempty, meaning there is at least one assignment that satisfies all its formulas.
- A
- 39
How can an entailment query KB⊨F be tested using satisfiability?
- A
Test whether KB∪{not F} is satisfiable; if it is not, then KB entails F.
- B
Test whether F alone is satisfiable; if it is, then KB entails F.
- C
Test whether KB∪{F} is satisfiable; if it is, then KB entails F.
- D
Test whether KB is satisfiable; if it is, then KB entails every formula.
Correct answer
ATest whether KB∪{not F} is satisfiable; if it is not, then KB entails F.
Explanation
If there is no model satisfying both KB and not F, then every model of KB satisfies F, so KB entails F.
- A
- 40
How can entailment, contradiction, or contingency be determined using satisfiability checks?
- A
Check satisfiability of F alone and then count its symbols.
- B
Check satisfiability of KB once; a satisfiable result always means entailment.
- C
Check satisfiability of KB∪{not F} first, then, if needed, check KB∪{F}.
- D
Check satisfiability of KB∪{F,not F} and use the number of formulas to classify it.
Correct answer
CCheck satisfiability of KB∪{not F} first, then, if needed, check KB∪{F}.
Explanation
First check whether KB together with not F is satisfiable. If not, KB entails F. If it is, check whether KB together with F is satisfiable: if not, there is a contradiction; if so, the relationship is contingent.
- A
- 41
How does propositional satisfiability map to a constraint satisfaction problem?
- A
Propositional symbols become constraints, formulas become variables, and a model is an optimal path.
- B
Evidence variables become symbols, formulas become probabilities, and constraints become models.
- C
Propositional symbols become variables, formulas become constraints, and a satisfying assignment is a model.
- D
Models become variables, inference rules become values, and formulas become rewards.
Correct answer
CPropositional symbols become variables, formulas become constraints, and a satisfying assignment is a model.
Explanation
The SAT-to-CSP mapping treats propositional symbols as variables, formulas as constraints, and a satisfying assignment as a model.
- A
- 42
What does model checking do in this propositional-logic setting?
- A
It determines whether a formula is grammatically valid.
- B
It finds the maximum-probability model of a Bayesian network.
- C
It learns propositional symbols from a collection of examples.
- D
It checks whether a knowledge base has a satisfying model.
Correct answer
DIt checks whether a knowledge base has a satisfying model.
Explanation
Model checking takes a knowledge base and determines whether a satisfying model exists.
- A
- 43
Which description correctly distinguishes DPLL from WalkSAT in the content?
- A
DPLL is randomized local search; WalkSAT is exact backtracking without pruning.
- B
DPLL is backtracking search with structure-based pruning; WalkSAT is randomized local search.
- C
DPLL performs variable elimination; WalkSAT performs maximum-likelihood estimation.
- D
DPLL learns formulas from data; WalkSAT evaluates probabilistic evidence.
Correct answer
BDPLL is backtracking search with structure-based pruning; WalkSAT is randomized local search.
Explanation
DPLL is described as backtracking search with pruning that uses formula structure. WalkSAT is described as randomized local search.
- A
- 44
What is the syntactic form of an inference rule?
- A
Given premises that are formulas, derive a conclusion formula when the premises match.
- B
Given a probability distribution, select the assignment with minimum cost.
- C
Given a model, replace every true symbol with a false one.
- D
Given a formula, change its semantics while preserving its syntax.
Correct answer
AGiven premises that are formulas, derive a conclusion formula when the premises match.
Explanation
An inference rule specifies that if a set of premise formulas holds, another formula may be added as a conclusion.
- A
- 45
Which application of modus ponens is valid?
- A
From P or Q and P, derive not Q.
- B
From P implies Q alone, derive Q.
- C
From Q and P implies Q, derive P.
- D
From P and P implies Q, derive Q.
Correct answer
DFrom P and P implies Q, derive Q.
Explanation
Modus ponens derives Q from the premises P and P implies Q.
- A
- 46
What is the key difference between KB⊨F and KB⊢F?
- A
Entailment and derivation are identical for every set of inference rules.
- B
Entailment is defined through model sets, while derivation is defined by mechanically applying inference rules.
- C
Entailment requires a proof, while derivation requires a complete assignment.
- D
Entailment is defined by syntax, while derivation is defined by probabilities.
Correct answer
BEntailment is defined through model sets, while derivation is defined by mechanically applying inference rules.
Explanation
Entailment is semantic: it concerns whether all models of KB satisfy F. Derivation is syntactic: it concerns whether the chosen inference rules can produce F from KB.
- A
- 47
How does the forward-inference procedure described use a set of inference rules?
- A
It repeatedly looks for matching premises and adds their conclusions until no new formulas are added.
- B
It repeatedly changes the semantics of formulas until they agree.
- C
It chooses one formula and assigns it a probability.
- D
It removes formulas until only one model remains.
Correct answer
AIt repeatedly looks for matching premises and adds their conclusions until no new formulas are added.
Explanation
The procedure repeatedly finds formulas matching the premises of a rule, adds the resulting conclusion to the knowledge base, and stops when no more changes occur.
- A
- 48
Why can syntax-based inference rules be useful when new propositional symbols appear?
- A
Inference rules eliminate the need for a knowledge base.
- B
A new symbol makes every existing formula satisfiable.
- C
Rules can operate on the formulas that appear, without requiring a fixed list of all symbols in advance.
- D
New symbols automatically receive truth values from the interpretation function.
Correct answer
CRules can operate on the formulas that appear, without requiring a fixed list of all symbols in advance.
Explanation
Inference rules operate directly on formula syntax, so a newly introduced concept can be treated as another symbol in applicable rules.
- A
- 49
What does soundness mean for a set of inference rules?
- A
The rules always terminate after exactly one application.
- B
Every formula entailed by the knowledge base is derivable by the rules.
- C
Every formula derivable by the rules is entailed by the knowledge base.
- D
The rules derive every syntactically valid formula.
Correct answer
CEvery formula derivable by the rules is entailed by the knowledge base.
Explanation
Soundness means that applying the rules never derives a formula that is not semantically entailed by the knowledge base.
- A
- 50
What does completeness mean for a set of inference rules?
- A
Every formula in the language is true in some model.
- B
Every derivable formula is guaranteed to be entailed by the knowledge base.
- C
Every formula entailed by the knowledge base can be derived using the rules.
- D
The rules can decide the truth of every natural-language sentence.
Correct answer
CEvery formula entailed by the knowledge base can be derived using the rules.
Explanation
Completeness means that the rules can derive all formulas that are semantically entailed by the knowledge base.
- A
- 51
Which statement correctly captures the difference between soundness and completeness?
- A
Soundness means every formula has a model; completeness means every model has a formula.
- B
Soundness means deriving the whole truth; completeness means deriving nothing but the truth.
- C
Soundness means the rules are fast; completeness means the formulas are short.
- D
Soundness means deriving nothing but the truth; completeness means deriving the whole truth.
Correct answer
DSoundness means deriving nothing but the truth; completeness means deriving the whole truth.
Explanation
Soundness rules out erroneous conclusions, while completeness ensures that all entailed conclusions can be derived.
- A
- 52
Why is modus ponens alone incomplete for general propositional logic?
- A
It is unsound when an implication is used.
- B
It requires probabilities for every propositional symbol.
- C
It cannot derive any atomic symbols from premises.
- D
It cannot in general reason through disjunctions such as P or Q.
Correct answer
DIt cannot in general reason through disjunctions such as P or Q.
Explanation
Modus ponens does not provide a general way to reason about disjunctions. For example, it cannot use P and (P or Q) implies R to derive R, even though R is entailed.
- A
- 53
Why is soundness generally important even when a rule system is incomplete?
- A
An incomplete system cannot have any valid models.
- B
A sound system guarantees that every possible conclusion is found.
- C
An incomplete system may miss some true conclusions, but a sound system avoids deriving false ones.
- D
Soundness makes every inference computationally efficient.
Correct answer
CAn incomplete system may miss some true conclusions, but a sound system avoids deriving false ones.
Explanation
An incomplete system may fail to derive some entailed formulas, but if it is sound, anything it does derive is still valid.
- A
- 54
What is the form of a definite clause in propositional logic?
- A
A conjunction of propositional symbols implies a single propositional symbol.
- B
A single propositional symbol implies a disjunction of symbols.
- C
A formula is equivalent to a probability distribution.
- D
A disjunction of symbols implies a conjunction of symbols.
Correct answer
AA conjunction of propositional symbols implies a single propositional symbol.
Explanation
A definite clause has the form P1 and ⋯ and Pk implies Q, where the consequent Q is a single propositional symbol.
- A
- 55
Which formula is not a definite clause under the stated definition?
- A
rain and snow implies traffic or peaceful.
- B
rain and snow implies traffic.
- C
rain implies wet.
- D
weekday implies traffic.
Correct answer
Arain and snow implies traffic or peaceful.
Explanation
A definite clause must have a single propositional symbol on the right-hand side. A disjunction such as traffic or peaceful is not allowed there.
- A
- 56
What is a horn clause, as described in the content?
- A
A definite clause or a goal clause of the form P1 and ⋯ and Pk implies false.
- B
Any formula containing an implication, regardless of its other structure.
- C
A formula whose consequent must contain at least two propositional symbols.
- D
A formula that is true in exactly one model.
Correct answer
AA definite clause or a goal clause of the form P1 and ⋯ and Pk implies false.
Explanation
A horn clause is either a definite clause or a goal clause, which has a conjunction of symbols implying false.
- A
- 57
How is modus ponens generalized for a definite clause with multiple premises?
- A
If all symbols P1,…,Pk are known and their conjunction implies Q, derive Q.
- B
If any one of P1,…,Pk is known, derive every symbol in the clause.
- C
If Q is known and the premises imply Q, derive all the premises.
- D
If the premises are unknown, derive Q whenever the clause is satisfiable.
Correct answer
AIf all symbols P1,…,Pk are known and their conjunction implies Q, derive Q.
Explanation
Generalized modus ponens matches all the premise symbols of a definite clause; when they are all present in the knowledge base, it derives the single consequent Q.
- A
- 58
What completeness property holds for modus ponens when the knowledge base contains only Horn clauses?
- A
Modus ponens becomes incomplete even for entailed propositional symbols.
- B
Every arbitrary propositional formula can be derived by modus ponens.
- C
If a propositional symbol is entailed by the knowledge base, modus ponens can derive it.
- D
Every model of the knowledge base must assign true to every symbol.
Correct answer
CIf a propositional symbol is entailed by the knowledge base, modus ponens can derive it.
Explanation
For knowledge bases containing only Horn clauses, generalized modus ponens is complete for deriving entailed propositional symbols; it is also sound.
- A
- 59
Why can modus ponens handle definite clauses more directly than clauses with a disjunctive consequent?
- A
A definite clause has no premises, while a disjunctive clause always has several models.
- B
A definite clause assigns values to every symbol, while a disjunctive clause assigns none.
- C
A definite clause is probabilistic, while a disjunctive clause is deterministic.
- D
A definite clause identifies one symbol to add once all its premises are known, while a disjunction leaves alternatives to reason about.
Correct answer
DA definite clause identifies one symbol to add once all its premises are known, while a disjunction leaves alternatives to reason about.
Explanation
With a single consequent, the rule can add that symbol when all premises are known. A disjunctive consequent presents alternatives, so simply adding one symbol would not be justified.
- A
- 60
How can a rule with a conjunction in its consequent sometimes be handled using definite clauses?
- A
Treat the conjunction as a single new truth value and ignore its components.
- B
Convert the rule into a probability distribution over its consequents.
- C
Rewrite it as separate rules with the same premises and one consequent symbol apiece.
- D
Replace its premises with a disjunction and retain the conjunction as its consequent.
Correct answer
CRewrite it as separate rules with the same premises and one consequent symbol apiece.
Explanation
A rule such as A implies (B and C) is equivalent to the pair A implies B and A implies C, each of which is a definite clause.
- A
- 61
What role does resolution play in relation to the limitations of modus ponens?
- A
It replaces semantic models with probability distributions.
- B
It makes every inference rule sound without checking its premises.
- C
It restricts propositional logic to atomic symbols only.
- D
It is a more powerful inference rule that can handle more general propositional inferences, including disjunctions.
Correct answer
DIt is a more powerful inference rule that can handle more general propositional inferences, including disjunctions.
Explanation
Resolution is presented as a more powerful inference rule for handling arbitrary propositional inferences that modus ponens alone cannot derive.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.