Preparation for Second Midterm - Answers

Answers

  1. Convert the following knowledge base to conjunctive normal form:
    A AND B
    B => (A OR C)

    Answer:

    A
    B
    (NOT B) OR A OR C

  2. Consider the following knowledge base:
    A
    B
    NOT A
    Does this knowledge base entail the following sentence:
    B OR C

    Justify your answer.

    Answer:

    The knowledge base given in this question is not satisfiable, since it contains both A and NOT A. Since it is not satisfiable it entails every possible statement, including B OR C.

  3. Given a propositional-logic vocabulary with only four symbols, A, B, C, D, how many models are there for the following sentences? In other words, for each of those statements, determine how many models that statement is true in. Note that each model is defined by assigning boolean values to all four symbols A, B, C, D.

    (a) (A and B) or (B and C)
    (b) A or B
    (c) A <=> B <=>C

    Answer:

    For each case, the number of possible models that entail the given logical sentence are:

    (a): The following 3:

    (A AND B AND C)
    ((NOT A) AND B AND C)
    (A AND B AND (NOT C))
    (b): The following 3:
    (A AND NOT B)
    ((NOT A) AND B)
    (A AND B)
    (c): The following 2:
    (A AND B AND C)
    ((NOT A) AND (NOT B) AND (NOT C))

  4. Textbook exercise 7.6 (second edition), exercise 7.8 (third edition)

    Answer:

    (a): XOR is another connective that people often find useful. In general, what is useful or not useful is highly subjective. People might also find it useful to define connectives for the negation of AND, OR, IF, IFF, XOR.

    (b): Each connective is defined using a truth table. For two symbols, a truth table has four rows, so there are 2^4 = 16 unique truth tables. Therefore, we can define up to 16 unique binary connectives.

    (c): Consider the statement a and not(b). While a binary connective could be defined for this statement, most people would probably find it more natural to just see that statement written as a and not b.

  5. Textbook exercise 7.8 (second edition), exercise 7.10 (third edition)

    Answer:

    (a): valid
    (b): neither
    (c): neither
    (d): valid
    (e): valid
    (f): neither
    (g): valid
    (h) (for 2nd edition only): neither

  6. For some sentence S involving literals A, B, C, here is the truth table:
    A B C Sentence
    false false false true
    false false true false
    false true false false
    false true true true
    true false false false
    true false true false
    true true false false
    true true true true
    Give a conjunctive normal form for sentence S.

    Answer:

    Here are some intermediate steps in producing a conjunctive normal form, and the actual CNF:

    1. (B <=> C) AND (A => B)
    2. (B => C) AND (C => B) AND (A => B)
    3. ((NOT B) OR C) AND ((NOT C) OR B) AND ((NOT A) OR B)