Midterm Concepts Flashcards

1
Q

What does the symbol represent?

A

A set with no elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference and ?

A
  • A subset may equal the original set,
  • while a proper subset must be strictly smaller than the original set
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the intersection () of sets?

A

Elements that belong to both sets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the union (∪) of sets?

A

Elements that belong to either set or both

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference (B \ A) of sets?

A

Elements in B that are not in A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the Cartesian/cross product (A × B)?

A

The set of all ordered pairs (a,b) where a ∈ A and b ∈ B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the power set P(S)?

A

The set of all possible subsets of S

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the size of power set P(S)?

A

2^|S|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does N represent in set notation?

A

Natural numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Z represent in set notation?

A

Integers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does Q represent?

A

Rational numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does R represent in set notation?

A

Real numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does C represent in set notation?

A

Complex numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does represent?

A

The addition of a sequence of numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the product notation represent?

A

The multiplication of a sequence of numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does mean?

A

For all elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does mean?

A

There exists at least one element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is a proposition in logic?

A

A statement that has exactly one truth value (true or false)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is a tautology?

A

A compound proposition that is always true regardless of the truth values of its components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is a contradiction?

A

A compound proposition that is always false regardless of the truth values of its components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is conjunction ?

A

Logical AND - true only when both statements are true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is ?

A

OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is ¬?

A

NOT - reverses the truth value of a statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is implication (P ⟹ Q)?

A

If P then Q - only false when P is true and Q is false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the equivalent form of implication `(P ⟹ Q)`?
`¬P ∨ Q`
26
What is biconditional (P ⟺ Q)?
P if and only if Q - true when P and Q have the same truth value
27
What is the contrapositive of `P ⟹ Q`?
`¬Q ⟹ ¬P` - logically equivalent to the original implication
28
What is the converse of `P ⟹ Q`?
`Q ⟹ P ` - NOT logically equivalent to the original implication
29
What is vacuous truth?
An implication that is true because its hypothesis (P) is false
30
What is the negation of `∀x P(x)`?
`∃x ¬P(x)`
31
What is the negation of `∃x P(x)`?
`∀x ¬P(x)`
32
What is De Morgan's Law for `¬(P ∧ Q)`?
`¬P ∨ ¬Q`
33
What is De Morgan's Law for `¬(P ∨ Q)`?
`¬P ∧ ¬Q`
34
What is a direct proof?
Assume `P`, show series of steps to reach `Q` for statements of form `P → Q`
35
What is a proof by contraposition?
Prove `¬Q → ¬P` instead of `P → Q`
36
What is a proof by contradiction?
Assume `¬P`, derive contradiction (`R` and `¬R`)
37
What is a proof by cases?
Divide into exhaustive cases, prove each separately
38
How do you prove an 'if and only if' statement?
Prove both `P → Q` and `Q → P` separately
39
What is a non-constructive proof?
Prove existence without explicit construction
40
What are the steps in simple/weak induction?
1) Base case: Prove `P(0)` or `P(1)`, 2) Induction hypothesis: Assume `P(k)`, 3) Inductive step: Prove `P(k+1)` from `P(k)`
41
What is strong induction?
Assume `P(0), P(1),..., P(k)` are all true, then prove `P(k+1)`
42
What is a stable matching?
A matching with no rogue couple (pair who would both prefer each other over current matches)
43
What does the Propose-and-Reject Algorithm (Gale-Shapley) produce?
A stable matching that is proposer-optimal
44
What is an Eulerian tour?
A path that traverses each edge exactly once and returns to the starting vertex
45
When does a connected graph have an Eulerian tour?
If and only if all vertices have even degree
46
What is a tree in graph theory?
A connected, acyclic graph
47
What is Euler's Formula for planar graphs?
`v + f = e + 2`
48
What is a corollary of Euler's Formula for planar graphs with `v ≥ 3`?
`e ≤ 3v - 6`
49
What are examples of non-planar graphs?
K₅ (complete graph on 5 vertices) and K₃,₃ (complete bipartite graph with 3 vertices in each part)
50
What is a bipartite graph?
A graph whose vertices can be divided into two disjoint sets such that no edge connects vertices in the same set
51
What does `x ≡ y (mod m)` mean?
`m` divides `(x-y)`
52
When does a number have a multiplicative inverse in modular arithmetic?
If and only if `gcd(x, m) = 1`
53
How is `gcd(x, y)` computed in Euclid's Algorithm?
`gcd(x, y) = gcd(y, x mod y)`
54
What does the Extended Euclid's Algorithm find?
Coefficients `a`, `b` where `gcd(x, y) = ax + by`
55
What does the Chinese Remainder Theorem address?
System `x ≡ aᵢ (mod nᵢ)` has unique solution `mod N = n₁·n₂·...·nₖ` when `nᵢ`'s are coprime
56
What are the components of the RSA public key?
`(N, e)` - `N = p × q` - `e` is coprime to `(p-1)(q-1)` (`p` and `q` are prime)
57
What is the RSA private key?
`d` where `d·e ≡ 1 [mod (p-1)(q-1)]`
58
How is a message encrypted in RSA?
E(x) ≡ x^e (mod N)
59
How is a message decrypted in RSA?
`D(y) ≡ y^d (mod N)`
60
What does Fermat's Little Theorem state?
If `p` is prime and `p` doesn't divide `a`, then: `a^(p-1) ≡ 1 (mod p)`
61
How many roots can a non-zero polynomial of degree d have?
At most d roots
62
What is the uniqueness property of polynomial interpolation?
Given `d+1` points, there exists a unique polynomial of `degree ≤ d` passing through them
63
How many possible polynomials of degree ≤ d exist over a field with m elements?
m^(d+1)
64
How does Shamir's secret sharing scheme work?
Create polynomial P with P(0) = secret; any k participants can reconstruct P(x) using Lagrange interpolation
65
What's the difference between erasure errors and general errors?
Erasure errors: - known positions - needs `n+k` packets General errors: - unknown positions - needs `n+2k` packets
66
How many different ways are there to arrange n distinct objects?
`n!`
67
What is the formula for the binomial coefficient (`n` choose `k`)?
`n! / (n-k)!k!`
68
What does the Binomial Theorem state?
`(a+b)^n = Σ (n k) * a^k * b^{n-k}`
69
What is the sum of all binomial coefficients for a given `n`?
`2^n`
70
What makes a set countable?
It can be put in one-to-one correspondence with the natural numbers or a subset of the natural numbers
71
What makes a set uncountable?
It cannot be put in one-to-one correspondence with the natural numbers
72
Which of these sets are countable: `ℕ, ℤ, ℚ`?
All of them
73
Which of these sets are uncountable: ℝ, P(ℕ)?
Both are uncountable: real numbers (ℝ) and the power set of natural numbers P(ℕ)
74
What technique is used to prove a set is uncountable?
Cantor's diagonalization
75
What is the cardinality of the power set `P(S)` in terms of `|S|`?
`|P(S)| = 2^|S|`