Docsity

Midterm Exam - Discrete Structures | CS 250, Exams of Discrete Structures and Graph Theory

Toggle sidebar
bg1
First Hour + Test
Name __________________
First MidTerm/ā€œHour Examā€ – CS250 – Summer ’06
NOTE TO STUDENT: This test is rated ā€œdifficult.ā€ At the end of the course, we will curve the grades. We will
NOT curve an individual test, but you can use data such as how you stand relative to the ā€˜mean & deviation
measure’ and your rank on the test to assess where you stand.
You are allowed a crib/cheat sheet … 8 ½ by 11, both sides. Comments (up to five (5) in number) are permitted --- see p. 6.
---------------------------------------------------------------------------------------------------------------------
1. (T or F): When A, B, D are assumed true and C is false, what is the value of the statement
((Bļƒ™C)  D) A
Use the True or False column on the answer sheet.
2. (T or F): The following statement is a tautology
(AB)  (A  B)
3. (T or F): The following statement is a tautology --- You may have to work it out ?
[(AB) ^ C′]Aā€²ļƒš C
4. (T or F): ā€œUsing propositional logicā€ to prove that an argument is valid, according to
our author, means ā€œusing a Truth Table.ā€
5. (T or F): Clause logic, as defined in Kowalski Normal Form, is a second order logic.
6. An expression (assertion) of the form x $ y A(x, y).
a. expresses a functional dependency of x on y
b. can be written as ($x) A(x, f(x)) where you call f(x) a ā€œSkolem functionā€
c. can be written as A(x, f(x)) ← in clause logic
d. all of the above
7. One of the following are legitimate
a. Replacing (x) P(x) by P(x) is called universal generalization
b. Replacing P(a) by P(x) is called universal generalization
c. Replacing ($y) A(x, y) by A(x, a) is existential instantiation if a is new in an argument
8. Where P(a) is T and Q(x) ← P(x), we want to show Q(a) holds …. So, we:
a. match the denial of Q(a) with the formula, Q(x) ← P(x)
b. realize a ā€œnewā€ denial: ← P(a)
c. experience a contradiction between: ← P(a) and P(a) ←
d. conclude that Q(a) is indeed true … i.e., when we deny it, it leads to a contradiction
e. all of the above
9. (T or F): Resolution involves Modus Ponens, Modus Tollen, and ā€œMost General Unifiersā€
10. THIMK English language translation of the following wff
(x) [(x isa_EVEN_int  ($k) (k isa_ int ļƒ™ x = 2k)
a. An even integer is some integer obtained by finding another integer & multiplying them
b. IF x is an even number THEN there is some even integer k such that x is equal to twice k
p.1
pf3
pf4
pf5

Partial preview of the text

Download Midterm Exam - Discrete Structures | CS 250 and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

Name __________________

First MidTerm/ā€œHour Examā€ – CS250 – Summer ’

NOTE TO STUDENT : This test is rated ā€œdifficult.ā€ At the end of the course, we will curve the grades. We will NOT curve an individual test, but you can use data such as how you stand relative to the ā€˜ mean & deviation measure’ and your rank on the test to assess where you stand. You are allowed a crib/cheat sheet … 8 ½ by 11, both sides. Comments (up to five (5) in number) are permitted --- see p. 6.


  1. (T or F): When A, B, D are assumed true and C is false, what is the value of the statement ((B ļƒ™ C)  D)  A Use the True or False column on the answer sheet.
  2. (T or F): The following statement is a tautology (A  B)  (A  B)
  3. (T or F): The following statement is a tautology --- You may have to work it out?

[(A  B) ^ C ′ ]  A ā€²ļƒš C

  1. (T or F): ā€œUsing propositional logicā€ to prove that an argument is valid, according to our author, means ā€œusing a Truth Table.ā€
  2. (T or F): Clause logic, as defined in Kowalski Normal Form, is a second order logic.
  3. An expression (assertion) of the form  x $ y A(x, y). a. expresses a functional dependency of x on y b. can be written as ($x) A(x, f(x)) where you call f(x) a ā€œSkolem functionā€

c. can be written as A(x, f(x)) ← in clause logic

d. all of the above

  1. One of the following are legitimate a. Replacing (  x) P(x) by P(x) is called universal generalization b. Replacing P(a) by P(x) is called universal generalization c. Replacing ($ y) A(x, y) by A(x, a) is existential instantiation if a is new in an argument
  2. Where P(a) is T and Q(x) ← P(x), we want to show Q(a) holds …. So, we: a. match the denial of Q(a) with the formula, Q(x) ← P(x) b. realize a ā€œnewā€ denial: ← P(a) c. experience a contradiction between: ← P(a) and P(a) ← d. conclude that Q(a) is indeed true … i.e., when we deny it, it leads to a contradiction e. all of the above
  3. (T or F): Resolution involves Modus Ponens, Modus Tollen, and ā€œMost General Unifiersā€
  4. THIMK English language translation of the following wff (x) [(x isa_EVEN_int  ($k) (k isa_ int ļƒ™ x = 2k) a. An even integer is some integer obtained by finding another integer & multiplying them b. IF x is an even number THEN there is some even integer k such that x is equal to twice k

c. b. is wrong in that k simply is an integer; otherwise, we can use the rest of b.’s wording

  1. Give an English language translation of the following wff (int abbreviate ā€œintegerā€ and TIMES is ordinary multiplication) (x) (y) [(x isa_EVEN_int ļƒ™ y isa_EVEN_int  x TIMES y isa-EVEN-int a. If you multiply an even integer by another even integer you get an even integer result b. Only even integers multiplied by even integers give even integer results

12. (x) [P(x)  Q(x)] ļƒ™ P(a)  Q(a), when rendered in clause form, yields:

a. Q(x) ← P(x) b. P(a) ← c. Q(a) ← d. all of these are actually needed!

  1. A statement that is true sometimes and false sometimes is called a. a tautology b. a contingency c. a contradiction
  2. Non-determinism in clause logic a. integrates fuzzy logic and probabilistic logic into the same framework as clause logic b. exists in 2 forms for Horn level and 3 forms for general/full clause form c. is resolved by restricting ourselves to using middle-out derivation only --- which means we eschew (reject) the use of Top-Down reasoning …
  3. The phrase ā€œtop downā€ applies to a. a formal definition of clause logic syntax, which defines objects in terms of objects that are defined later (i.e. the definition ā€œdefinesā€ in terms of entities that are not defined but can use recursiveness, too) b. a method of deriving results from a (Horn or general) clause formulation via Modus Tollens and substitution via the ā€œMost General Unifierā€ c. both of these

Consider this formula

[(A  B) ļƒ™ (B  C)]  (A  C)

In class, we stated that this dude may admit argument (for its being or not being a

tautology) via 1) Truth Tables, 2) The Algo. Tautology Test, and 3) proof

procedures (our author calls ā€œpropositional logicā€). Let’s ask several Questions

about this formula, from here to the end of test.

  1. Assume we want to assess the validity of this formula by the Algorithm Tautology Test, we would work with/as: a. we first test to see if the formula is of a certain form b. the form is unimportant and we can proceed without attending to form

which you, the client, seek an answer from ā€œindependentā€ ā€œexpertsā€ (here the proof/demo method agents)

26-30 We now attack this problem with a Truth Table: ROW A B C A  B B  C AND the 2 prev. cols. A  C Apply the fulcrum/main  1 T T T T T T T T 2 T T F 3 T F T 4 T F F 5 F T T 6 F T F 7 F F T 8 F F F T T T T T

  1. The ā€œpatternā€ that fills in the 2nd row is: a. T T T T T b. T F F T T c. F T F T T d. F T F F T e. None of These
  2. The ā€œpatternā€ that fills in the 4th^ row is: a. T T T T T b. T F F T T c. F T F T T d. F T F F T e. None of These
  3. The ā€œpatternā€ that fills in the 5th^ row is: a. T T T T T b. T F F T T c. F T F T T d. F T F F T e. None of These
  4. The ā€œpatternā€ that fills in the 6th row is: a. T T T T T b. T F F T T c. F T F T T d. F T F F T e. None of These
  5. The ā€œpatternā€ that fills in the 7th row is: a. T T T T T b. T F F T T c. F T F T T d. F T F F T e. None of These