1. Home
  2. Explore
  3. Computer Science
  4. Logic and Constraint Reasoning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Logic and Constraint Reasoning

  • 67Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Modeling Paradigms
Solving the two equations that add to ten and differ by four gives seven for the value of
.

67 questions

  1. 1
    Solving 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.

  2. 2
    In 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.

  3. 3
    In 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.

  4. 4
    For 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.

  5. 5
    For 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.

  6. 6
    For 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.

  7. 7
    A 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.

  8. 8
    State-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.

  9. 9
    Variable-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.

  10. 10
    Logic 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.

  11. 11
    One 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.

  12. 12
    Because 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.

  13. 13
    A 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.

  14. 14
    Unlike 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.

  15. 15
    Like 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.

  16. 16
    A 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.

  17. 17
    The 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.

  18. 18
    The 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.

  19. 19
    Rules 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.

  20. 20
    As 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.

  21. 21
    In 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.

  22. 22
    If 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.

  23. 23
    If 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.

  24. 24
    A 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.

  25. 25
    Two 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.

  26. 26
    The 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.

  27. 27
    In 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.

  28. 28
    With 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.

  29. 29
    Under 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.

  30. 30
    Under 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.

  31. 31
    An 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.

  32. 32
    A 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.

  33. 33
    The 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.

  34. 34
    The 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.

  35. 35
    A 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.

  36. 36
    The 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.

  37. 37
    Adding 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.

  38. 38
    A 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.

  39. 39
    A 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.

  40. 40
    A 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.

  41. 41
    A 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.

  42. 42
    When 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.

  43. 43
    When 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.

  44. 44
    When 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.

  45. 45
    In 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.

  46. 46
    A 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.

  47. 47
    To 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.

  48. 48
    If 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.

  49. 49
    The 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.

  50. 50
    Propositional 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.

  51. 51
    The 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.

  52. 52
    DPLL 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.

  53. 53
    An 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.

  54. 54
    Modus 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.

  55. 55
    Inference 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.

  56. 56
    The 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.

  57. 57
    A 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.

  58. 58
    A 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.

  59. 59
    Soundness 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.

  60. 60
    A 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.

  61. 61
    A 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.

  62. 62
    A 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.

  63. 63
    When 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.

  64. 64
    For 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.

  65. 65
    For 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.

  66. 66
    Modus 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.

  67. 67
    The 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.

1 of 67
Question 1 of 67

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent