C959 Discrete Mathematics I

0.0(0)
studied byStudied by 3 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/75

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

76 Terms

1
New cards

Conjunction

"and" - symbol ∧ - for conjunction to be true, both sides must be true, think multiplication, 1x1, 0x1, 0x0

2
New cards

Disjunction

"or" - symbol ∨ - for disjunction to be true, one side must be true (said another way, either side can be true). Also true when both sides are true. Only false when both sides are false. This is "inclusive or". Think addition, 0+1, 1+0,

3
New cards

Not

"not" - symbol ¬ - the opposite of the proposition

4
New cards

Inclusive "or"

Inclusive "or" OR - ∨ - means that either side can be true for the proposition to be true AND BOTH sides can be true for the proposition to be true.

5
New cards

2^n

where n is the number of variables, 2^n represents the number of possible outcomes or combinations.

6
New cards

Truth table set up

The first variable should be half of 2^n T's in a row and half 2^n F's in a row. The next variable would be half of the first variable T's in a row (if the first variable had 4 T's in a row, the second variable will have 2 T's in a row), etc and so on until the last variable alternates every time, TFTFTFTF.

7
New cards

exclusive "or"

Exclusive "or" XOR - ⊕ - means that the proposition is ONLY true when either side is true, BUT NOT when both sides are true.

8
New cards

Implication

p → q "Conditional Statement". If p, then q. OR p implies q. However, if hypothesis p is False, it DOES NOT tell us anything about the conclusion q. So, a False hypothesis P will still be True proposition truth value regardless of the Q.

9
New cards

Inverse

Negates the operands. p → q becomes ¬p → ¬q.

10
New cards

Converse

Switches the order of the operands. The converse of p → q is q → p.

11
New cards

Contrapositive

Switches the operands and negates them. p → q becomes ¬q → ¬p. Has the same truth values as p → q.

12
New cards

Bi-conditional

p ⇔ q "p if and only if q" or "p iff q". To be true, both propositions must share the same truth value, ie must be TT or FF.

13
New cards

equivalency

14
New cards

Bi-conditional can also be written as a compound proposition

(p ⇔ q) ≡ (p → q) ∧ (q → p)

15
New cards

compound proposition order of operations

not, and, or, if then, if and only if. Symbols: ¬, ∧, ∨, →, ⇔

16
New cards

∧ propositional operator

and, both propositions must be true for true result or else result is false

17
New cards

¬ propositional operator

not, produces the opposite of the input proposition, true changes to false and vice versa

18
New cards

∨ propositional operator

or, either of the propositions must be true for the result to be true AND if both are true the result is true as well

19
New cards

→ propositional operator

implication p implies q, conditional, if hypothesis is true conclusion must be true, if the hypothesis is false the conclusion is true

20
New cards

↔︎ conditional operator

biconditional, if and only if, iff

21
New cards

propositional order of operations

¬, ∧, ∨, →, ⇔

22
New cards

Hypothesis of a compound proposition

If p, then q. P is the hypothesis, the If proposition

23
New cards

Conclusion of a compound proposition

If p, then q. Q is the conclusion, the Then proposition.

24
New cards

In the words of logic, the only way for a conditional statement to be false is

if the hypothesis is true and the conclusion is false

25
New cards

If the hypothesis is false, then

the conditional statement is true regardless of the truth value of the conclusion.

26
New cards

Translations of p → q

If p, q

q, if p

p implies q

p only if q

p is sufficient for q

q is necessary for p

27
New cards

The proposition p ↔ q is true when p and q _________ and is false _________.

have the same truth value, when p and q have different truth values

28
New cards

tautology

when a compound proposition is always true, p ∨ ¬p

29
New cards

contradiction

when a compound proposition is always false, p ∧ ¬p

30
New cards

logically equivalent

when two compound propositions have the same truth tables regardless of the values of their individual propositions,
¬p ∨ ¬q ≡ ¬(p ∧ q)

31
New cards

De Morgan's law, first version, distributing negation inside a parenthesized expression

¬(p ∨ q) ≡ (¬p ∧ ¬q)

32
New cards

De Morgan's law, second version, distributing negation inside a parenthesized expression

¬(p ∧ q) ≡ (¬p ∨ ¬q)

33
New cards

Idempotent Laws

p ∨ p ≡ p

p ∧ p ≡ p

34
New cards

Associative Laws

( p ∨ q ) ∨ r ≡ p ∨ ( q ∨ r )

( p ∧ q ) ∧ r ≡ p ∧ ( q ∧ r )

arrangement of parentheses does not matter

35
New cards

Commutative Laws

p ∨ q ≡ q ∨ p

p ∧ q ≡ q ∧ p

order does not matter

36
New cards

Distributive Laws

p ∨ ( q ∧ r ) ≡ ( p ∨ q ) ∧ ( p ∨ r )

p ∧ ( q ∨ r ) ≡ ( p ∧ q ) ∨ ( p ∧ r )

sign w first variable remains w first variable & sign inside parentheses ends up between sets of parentheses

37
New cards

Identity Laws

p ∨ F ≡ p, where F = False, contradiction

p ∧ T ≡ p, where T = True, tautology

38
New cards

Domination Laws

p ∧ F ≡ F, where F = False, contradiction

p ∨ T ≡ T, where T = True, tautology

39
New cards

Double negation law

¬¬p ≡ p

40
New cards

Complement Laws

p ∧ ¬p ≡ F, ¬T ≡ F, contradiction

p ∨ ¬p ≡ T, ¬F ≡ T, tautology

41
New cards

De Morgan's Laws

¬( p ∨ q ) ≡ ¬p ∧ ¬q

¬( p ∧ q ) ≡ ¬p ∨ ¬q

42
New cards

Absorption Laws

p ∨ (p ∧ q) ≡ p

p ∧ (p ∨ q) ≡ p

43
New cards

Conditional Identities

p → q ≡ ¬p ∨ q

p q ≡ ( p → q ) ∧ ( q → p )

44
New cards

Atomic Statement

Can not be divided into smaller statements

45
New cards

Molecular statement

Can be divided into smaller statements

46
New cards

Existential Qualifier

∃ - "there exists" or "there is", true when P(x) is true for a single x in the domain, false when P(x) is false for EVERY x in the domain, ∃xP(x) ≡ P(x1) OR P(x2) ∨ P(x3), etc. Provide counter example when FALSE.

47
New cards

Universal Quantifier

∀ - "for all" or "every", true when P(x) is true for EVERY x in the domain, false when P(x) is false for a single x in the domain, ∀xP(x) ≡ P(x1) AND P(x2) ∧ P(x3), etc. Provide counter example when FALSE.

48
New cards

Base 2 factors

2^0=1(byte), 2^1=2, 2^2=4, 2^3=8(bit), 2^4=16, 2^5=32, 2^6=64, 2^7=128, 2^8=256, 2^9=512, 2^10=1024(KB), 2^11=2048, 2^12=4096, 2^20=1,048,576(MB), 2^30=1,073,741,824(GB), 2^40=1,099,511,627,776(TB), 2^50(PB), 2^60(EB)

49
New cards

Convert base2 to base8 (octal)

Group binary digits into groups of 3 and convert each group to 0-7

50
New cards

Convert base2 to base16 (hexadecimal)

Group binary digits into groups of 4 and convert each group to 0-15 (0-F) (A=10, B=11, C=12, D=13, E=14, F=15

51
New cards

3 parts of predicate logic

1. Variables - x, y, z, these are the subjects of statements
2. Predicates - a property the variable can have
3. Quantifiers - Universal quantifier ∀ (for all), existential quantifier ∃ (there exists)

52
New cards

P(x)

Propositional function, can become a proposition (and have a truth value) when variable is defined or bound by a quantifier.

53
New cards

U

The domain, the universe

54
New cards

Uniqueness Quantifier

∃!x P(x) means that P(x) is true for one and only one x in the universe of discourse.

55
New cards

DeMorgan's Laws for Quantifiers

¬∀x P(x) ≡ ∃x ¬ P(x)
¬∃x Q(x) ≡ ∀x ¬ Q(x)

56
New cards

Quantifiers (∀, ∃, ∃!) are applied ...

before logical operators

57
New cards

A variable in the predicate, P(x) is called a

free variable, it is not bound

58
New cards

The variable in the statement ∀x P(x) is called a

bound variable, because it is bound by the quantifier

59
New cards

∀x∀y M(x,y)

For every pair of x and y, M(x,y) is true

60
New cards

∃x∃y M(x,y)

There exists at least one pari of x and y such that M(x,y) is true

61
New cards

∃x∀y M(x,y)

There exists at least one x that pairs with ALL y, such that M(x,y) is true

62
New cards

∀x∃y M(x,y

For each x, there is at least one y, such that M(x,y) is true

63
New cards

¬∀x ∀y P(x, y) ≡

∃x ∃y ¬P(x, y), De Morgan's law w nested quantifiers

64
New cards

¬∀x ∃y P(x, y) ≡

∃x ∀y ¬P(x, y), De Morgan's law w nested quantifiers

65
New cards

¬∃x ∀y P(x, y) ≡

∀x ∃y ¬P(x, y), De Morgan's law w nested quantifiers

66
New cards

¬∃x ∃y P(x, y) ≡

∀x ∀y ¬P(x, y), De Morgan's law w nested quantifiers

67
New cards

A proposition is true or false whereas an argument is ...

valid or invalid

68
New cards

An argument is valid if all the premises are true AND ...

the conclusion is true. It is invalid otherwise.

69
New cards

Modus Ponens

((p -> q) ∧ p) -> q

<p>((p -&gt; q) ∧ p) -&gt; q</p>
70
New cards

Modus Tollens

knowt flashcard image
71
New cards

Addition

knowt flashcard image
72
New cards

Simplification

knowt flashcard image
73
New cards

Conjunction

knowt flashcard image
74
New cards

Hypothetical Syllogism

knowt flashcard image
75
New cards

Disjunctive Syllogism

knowt flashcard image
76
New cards

Resolution

knowt flashcard image