Logic and Constraint Reasoning
- 67Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
67 questions
- 1Solving the two equations that add to ten and differ by four gives seven for the value of_____.
Hint
Add the equations to eliminate the second variable.
Answer
X one
Explanation
Adding the two equations eliminates the second variable and gives twice the first variable equal to fourteen, so its value is seven.
- 2In the modeling, learning, and inference paradigm, learning takes data as input and produces a_____.
Hint
It is the representation used later to answer questions.
Answer
model
Explanation
Learning uses data to produce a model; inference then uses that model to answer a question.
- 3In the general inference process, the system takes in a question and returns an_____.
Hint
It is the result returned in response to a query.
Answer
answer
Explanation
Inference applies a model to a question and returns an answer.
- 4For a search problem, the central inference question is to find the path with the_____cost.
Hint
The goal is to make the path as inexpensive as possible.
Answer
minimum
Explanation
Search problems use inference to find a minimum cost path.
- 5For an MDP or game, the central inference question is to find the policy with the_____value.
Hint
The goal is to choose a policy with the greatest value.
Answer
maximum
Explanation
In MDPs and games, inference seeks a maximum value policy.
- 6For a constraint satisfaction problem, the inference task described in the lecture is to find a maximum weight_____.
Hint
It specifies values for the variables.
Answer
assignment
Explanation
For CSPs, inference asks for a maximum weight assignment.
- 7A Bayesian network can answer a query about the probability of query variables conditioned on_____variables.
Hint
These variables represent information already observed.
Answer
evidence
Explanation
A Bayesian network answers probabilistic queries about query variables given evidence variables.
- 8State-based models represent states as nodes in a graph and use_____to move between states.
Hint
These are choices that connect one state to another.
Answer
actions
Explanation
State-based models represent actions as transitions between states, with transitions incurring costs or providing rewards.
- 9Variable-based models use variables and_____to constrain the values those variables may take.
Hint
In factor graphs, these connect variables and express constraints.
Answer
factors
Explanation
Variable-based models represent the world with variables and factors that constrain their values.
- 10Logic was a dominant paradigm in AI before the_____.
Hint
This period preceded the rise of newer approaches discussed in the lecture.
Answer
1990s
Explanation
The lecture notes that logic was historically the dominant AI paradigm before the 1990s.
- 11One limitation of classical logic is that its deterministic nature makes it poorly suited to representing_____.
Hint
This is what probabilistic inference was developed to handle.
Answer
uncertainty
Explanation
Classical logic is deterministic, so probabilistic methods were developed to handle uncertainty.
- 12Because rule-based logic does not naturally ingest large amounts of data to guide behavior, this limitation was addressed by_____.
Hint
This field learns patterns or behavior from data.
Answer
machine learning
Explanation
Machine learning addresses the difficulty of using large amounts of data to guide behavior in rule-based systems.
- 13A major strength of logic is its ability to express complicated ideas_____.
Hint
The ideas can be represented using relatively few symbols.
Answer
succinctly
Explanation
Logic is expressive: it can represent complicated information in a concise form.
- 14Unlike natural language, a logical language is_____about what its statements mean.
Hint
Its rules make the interpretation precise rather than slippery.
Answer
formal
Explanation
Logical languages are formal, so the meaning and validity of expressions can be specified precisely.
- 15Like natural language, logical languages are_____: they state information rather than prescribing a computation.
Hint
The contrast is with procedural programming languages.
Answer
declarative
Explanation
Logical languages are declarative, expressing what is true rather than giving step-by-step instructions for how to compute it.
- 16A logic needs to represent knowledge about the world and also provide a way to_____with that knowledge.
Hint
Merely storing information is not enough to answer questions.
Answer
reason
Explanation
A useful logic must both represent knowledge and enable reasoning with it.
- 17The component of a logic that defines which expressions are valid or grammatical is its_____.
Hint
It concerns the form of expressions, not their meaning.
Answer
syntax
Explanation
Syntax specifies which expressions are valid in a language.
- 18The component of a logic that specifies what each expression means is its_____.
Hint
It gives meaning to expressions that syntax permits.
Answer
semantics
Explanation
Semantics defines the meaning of formulas and other expressions.
- 19Rules that manipulate formulas while preserving their meaning are called_____rules.
Hint
They let a reasoner derive new formulas from existing ones.
Answer
inference
Explanation
Inference rules are syntactic operations on formulas intended to preserve their semantics.
- 20As a logical language becomes more expressive, computation in it generally becomes less_____.
Hint
This is the trade-off between expressive power and computational cost.
Answer
efficient
Explanation
More expressive logics can represent more ideas, but computation in them is generally harder.
- 21In propositional logic, a single propositional symbol is an_____formula because it cannot be broken into smaller formulas.
Hint
It is the smallest building block of formulas.
Answer
atomic
Explanation
Propositional symbols are atomic formulas; larger formulas are built from them using connectives.
- 22If F and G are formulas, applying negation to F produces another valid_____.
Hint
The recursive definition allows connectives to build larger expressions.
Answer
formula
Explanation
The syntax of propositional logic permits the negation of any formula.
- 23If F and G are formulas, joining them with AND, OR, implication, or biconditional produces another valid_____.
Hint
These connectives recursively combine formulas.
Answer
formula
Explanation
Propositional formulas are built recursively by combining formulas with logical connectives.
- 24A symbol such as plus is not permitted as a logical connective unless the syntax explicitly includes_____.
Hint
The language's formation rules determine which symbols are allowed.
Answer
it
Explanation
An expression using an unlisted symbol such as plus is not a valid formula under the specified syntax.
- 25Two expressions can have different syntax but the same semantics; for example, adding two and three or three and two gives the same_____.
Hint
The expressions differ in form but evaluate to an identical result.
Answer
number
Explanation
The expressions have different forms but both mean the number five.
- 26The meaning of a propositional formula in a particular model is determined by the_____function.
Hint
It evaluates whether a formula is true in a given world.
Answer
interpretation
Explanation
The interpretation function maps a formula and a model to a truth value.
- 27In propositional logic, a model is a complete assignment of truth values to all propositional_____.
Hint
Each receives a value of true or false.
Answer
symbols
Explanation
A propositional model specifies a truth value for every propositional symbol.
- 28With three propositional symbols, there are_____possible complete models.
Hint
Each symbol independently has two possible truth values.
Answer
eight
Explanation
Three symbols each have two possible truth values, giving eight complete assignments.
- 29Under the standard interpretation of AND, the result is true only when_____inputs are true.
Hint
Check the truth table for the case where just one input is true.
Answer
both
Explanation
Conjunction is true only if both of its component formulas are true.
- 30Under the standard interpretation of OR, the result is true when at least_____input is true.
Hint
The result is also true when both inputs are true.
Answer
one
Explanation
Disjunction is true if at least one of its component formulas is true.
- 31An implication is false only when its antecedent is true and its consequent is_____.
Hint
In every other truth-value combination, the implication is true.
Answer
false
Explanation
The standard truth table makes an implication false only for a true antecedent and a false consequent.
- 32A biconditional is true when its two component formulas have the_____truth value.
Hint
It expresses that each side agrees in truth or falsity.
Answer
same
Explanation
A biconditional is true precisely when both formulas evaluate to the same truth value.
- 33The negation of a formula reverses its_____value.
Hint
True becomes false, and false becomes true.
Answer
truth
Explanation
Negation maps a formula's truth value to its opposite.
- 34The set of models in which a formula is true is the formula's_____.
Hint
This set captures which possible worlds the formula allows.
Answer
meaning
Explanation
A formula can be understood as the set of all models where its interpretation is true.
- 35A knowledge base is a_____of formulas representing information known about the world.
Hint
It collects the facts available to a reasoner.
Answer
set
Explanation
A knowledge base consists of a set of formulas representing what is known.
- 36The models of a knowledge base are the models that satisfy_____of its formulas.
Hint
A world must be consistent with every fact in the knowledge base.
Answer
all
Explanation
The models of a knowledge base are the intersection of the models of its formulas, so each formula must be true.
- 37Adding a new formula to a knowledge base can only maintain or_____the set of possible models.
Hint
The new fact adds a constraint on which worlds remain possible.
Answer
shrink
Explanation
The models of the updated knowledge base are an intersection with the new formula's models, so the set cannot grow.
- 38A knowledge base entails a formula when every model of the knowledge base is also a model of that_____.
Hint
The knowledge base's possible worlds must all make the claim true.
Answer
formula
Explanation
Entailment holds when the models of the knowledge base are a subset of the models of the formula.
- 39A new formula is a contradiction with a knowledge base when their sets of models have an empty_____.
Hint
There is no world satisfying both the existing knowledge and the new statement.
Answer
intersection
Explanation
A formula contradicts a knowledge base when no model satisfies both.
- 40A new formula is contingent with respect to a knowledge base when their intersection is neither empty nor equal to the original set of_____.
Hint
It rules out some, but not all, previously possible worlds.
Answer
models
Explanation
Contingency means the formula adds nontrivial information without making the knowledge base inconsistent.
- 41A knowledge base contradicts F exactly when it entails the_____of F.
Hint
If the knowledge base rules out every world where F is true, it supports the opposite.
Answer
negation
Explanation
Contradiction between a knowledge base and F is equivalent to entailment of not F.
- 42When asked a yes-or-no question that is entailed by the knowledge base, a logical assistant should answer_____.
Hint
This is a definite answer, not a probability estimate.
Answer
yes
Explanation
Entailment means the question is true in every model of the knowledge base, so the answer is yes.
- 43When a yes-or-no question contradicts the knowledge base, a logical assistant should answer_____.
Hint
The question cannot be true in any model consistent with what is known.
Answer
no
Explanation
Contradiction means the knowledge base rules out the queried claim, so the answer is no.
- 44When a yes-or-no question is contingent with respect to the knowledge base, the appropriate answer is_____.
Hint
Some compatible worlds make the claim true and others do not.
Answer
I don't know
Explanation
Contingency means the available knowledge neither proves nor disproves the claim.
- 45In the probabilistic analogy, a set of possible models corresponds to an_____.
Hint
A probability distribution assigns probability mass to this kind of set.
Answer
event
Explanation
A knowledge base denotes a set of possible worlds, which can be treated as an event in probability.
- 46A knowledge base is satisfiable if its set of models is_____.
Hint
At least one world must satisfy all of its formulas.
Answer
non-empty
Explanation
Satisfiability means that there exists at least one model consistent with the knowledge base.
- 47To test whether a knowledge base entails F using satisfiability, first check whether the knowledge base together with the_____of F is satisfiable.
Hint
If no model supports the opposite of F, the knowledge base must entail F.
Answer
negation
Explanation
If the knowledge base conjoined with not F is unsatisfiable, then the knowledge base entails F.
- 48If the knowledge base together with the negation of F is satisfiable, checking the knowledge base together with_____can distinguish contradiction from contingency.
Hint
This second check asks whether the original claim is compatible with what is known.
Answer
F
Explanation
If the first satisfiability test does not establish entailment, testing the knowledge base with F distinguishes contradiction from contingency.
- 49The propositional satisfiability problem is commonly called the_____problem.
Hint
The name abbreviates the question of whether a formula can be satisfied.
Answer
SAT
Explanation
Checking whether a propositional knowledge base has a satisfying assignment is the SAT problem.
- 50Propositional SAT can be viewed as a constraint satisfaction problem by treating symbols as variables, formulas as constraints, and satisfying assignments as_____.
Hint
These are complete assignments that satisfy the formulas.
Answer
models
Explanation
A satisfying CSP assignment corresponds to a propositional model of the formulas.
- 51The procedure that takes a knowledge base and determines whether a satisfying model exists is called_____checking.
Hint
It checks for the existence of a world satisfying the knowledge base.
Answer
model
Explanation
Model checking determines whether a knowledge base has a satisfying model.
- 52DPLL combines backtracking search with_____that uses the structure of the formulas.
Hint
This reduces search by ruling out unpromising possibilities.
Answer
pruning
Explanation
DPLL is a backtracking search algorithm that prunes using the structure of propositional constraints.
- 53An inference rule takes known formulas as premises and derives another formula as its_____.
Hint
It is the new statement added after the rule's conditions are met.
Answer
conclusion
Explanation
Inference rules specify how premises can be used to derive a conclusion.
- 54Modus ponens derives Q when the knowledge base contains P and the implication from P to_____.
Hint
The conclusion is the consequent of the implication.
Answer
Q
Explanation
Modus ponens uses a premise and an implication from that premise to derive the implication's consequent.
- 55Inference rules operate directly on the_____of formulas rather than searching through possible worlds.
Hint
This is the side of logic concerned with the form of expressions.
Answer
syntax
Explanation
Inference rules manipulate formula expressions directly, in contrast to semantic reasoning over models.
- 56The notation that a knowledge base derives a formula records that it can be produced by mechanically applying the specified_____.
Hint
This relation depends on the chosen syntactic procedures.
Answer
rules
Explanation
Derivability, or provability, means that a formula can be generated from the knowledge base using the chosen inference rules.
- 57A set of inference rules is sound if every formula it derives is_____by the knowledge base.
Hint
Sound rules never produce a conclusion that is semantically unsupported.
Answer
entailed
Explanation
Soundness ensures that every syntactically derived conclusion is semantically entailed.
- 58A set of inference rules is complete if it can derive every formula that is semantically_____by the knowledge base.
Hint
Completeness concerns whether the rules can reach all valid consequences.
Answer
entailed
Explanation
Completeness means the rules can derive every consequence that the knowledge base entails.
- 59Soundness means deriving nothing but the truth, while completeness means deriving the_____truth.
Hint
Together, the two properties express the idea of covering every valid consequence without errors.
Answer
whole
Explanation
Soundness prevents erroneous conclusions; completeness ensures that all entailed conclusions are derivable.
- 60A definite clause has a conjunction of propositional symbols as its antecedent and a single propositional symbol as its_____.
Hint
It is the statement that follows the implication.
Answer
consequent
Explanation
A definite clause says that if all antecedent symbols hold, one consequent symbol holds.
- 61A goal clause has a conjunction of propositional symbols implying_____.
Hint
It represents a constraint that rules out the case where all the antecedent symbols hold.
Answer
false
Explanation
A goal clause has the form of an antecedent conjunction implying false, expressing that the conjunction cannot hold.
- 62A Horn clause is either a definite clause or a_____clause.
Hint
The other kind expresses a conjunction that must not hold.
Answer
goal
Explanation
Horn clauses include both definite clauses and goal clauses.
- 63When a definite clause has no antecedent symbols, it states a propositional symbol as a_____.
Hint
It is true without needing any other premises.
Answer
fact
Explanation
The empty conjunction is true, so a definite clause with no antecedents asserts its consequent as a fact.
- 64For Horn clauses, generalized modus ponens derives a consequent when all antecedent symbols and the matching rule are_____.
Hint
The rule can fire once every required premise is available.
Answer
known
Explanation
Generalized modus ponens applies when all of a definite clause's antecedent symbols and the clause itself are in the knowledge base.
- 65For knowledge bases containing only Horn clauses, modus ponens is both sound and_____.
Hint
In this restricted language, it can derive every entailed propositional symbol.
Answer
complete
Explanation
Modus ponens is complete with respect to Horn-clause knowledge bases, as well as sound.
- 66Modus ponens cannot in general use a disjunctive conclusion to choose which alternative is true, so it is incomplete for arbitrary propositional_____.
Hint
The limitation appears when the language includes general OR expressions.
Answer
formulas
Explanation
A rule concluding one alternative or another cannot be handled by modus ponens alone, which makes it incomplete for arbitrary propositional formulas.
- 67The inference rule identified as a way to handle arbitrary propositional inferences beyond modus ponens is_____.
Hint
It is a stronger rule discussed as the next step after Horn-clause reasoning.
Answer
resolution
Explanation
Resolution is a more powerful inference rule that can support arbitrary propositional inferences.

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