1/49
Flashcards covering foundational topics in discrete mathematics, including propositional logic, predicate calculus, methods of proof, set theory, functions, sequences, matrices, algorithms, complexity theory, number theory, cryptography, mathematical induction, and recursion.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What is a proposition in logic?
A proposition is a declarative sentence that is either true or false, but not both.
How is the negation of a proposition p, denoted by ¬p, defined?
The negation of p is the statement "It is not the case that p", which has the opposite truth value of p.
Under what condition is the conjunction p∧q of two propositions true?
The conjunction p∧q is true when both p and q are true, and is false otherwise.
How does an inclusive disjunction p∨q differ from an exclusive or p⊕q?
The inclusive disjunction p∨q is true when at least one of p or q is true, whereas the exclusive or p⊕q is true when exactly one of p and q is true, and false when both are true or both are false.
When is the conditional statement p→q false?
The conditional statement p→q is false only when the hypothesis p is true and the conclusion q is false; it is true in all other cases.
Given the conditional statement p→q, what are its converse, contrapositive, and inverse, and which is logically equivalent to p→q?
The converse is q→p, the contrapositive is ¬q→¬p, and the inverse is ¬p→¬q. Only the contrapositive is logically equivalent to p→q.
Under what condition is the biconditional statement p↔q true?
The biconditional statement p↔q is true when p and q have the same truth value, and is false otherwise.
What are a tautology, a contradiction, and a contingency?
A tautology is a compound proposition that is always true, a contradiction is a compound proposition that is always false, and a contingency is a compound proposition that is neither a tautology nor a contradiction.
What are De Morgan's laws for propositional logic?
De Morgan's laws state that ¬(p∧q)≡¬p∨¬q and ¬(p∨q)≡¬p∧¬q.
When is a compound proposition said to be satisfiable?
A compound proposition is satisfiable if there is at least one assignment of truth values to its variables that makes it true; otherwise, it is unsatisfiable.
What are the negations of the quantified statements ∀xP(x) and ∃xP(x)?
By De Morgan's laws for quantifiers, ¬∀xP(x)≡∃x¬P(x) and ¬∃xP(x)≡∀x¬P(x).
What is the rule of inference known as modus ponens?
Modus ponens states that from the premises p and p→q, the conclusion q validly follows.
What is the rule of inference known as modus tollens?
Modus tollens states that from the premises ¬q and p→q, the conclusion ¬p validly follows.
What is the rule of inference known as resolution?
Resolution states that from the premises p∨q and ¬p∨r, the resolvent q∨r validly follows.
What is the logical error in the fallacy of affirming the conclusion?
It incorrectly treats the conditional statement p→q and the premise q as implying p, which is an invalid argument form based on a contingency rather than a tautology.
How does a direct proof differ from a proof by contraposition for a conditional statement p→q?
A direct proof assumes p is true and shows that q must be true. A proof by contraposition is an indirect proof that assumes ¬q is true and shows that ¬p must be true.
How is a proof by contradiction constructed to show that a proposition p is true?
It assumes that ¬p is true and demonstrates that this assumption leads to a contradiction r∧¬r for some proposition r, proving that p must be true.
What distinguishes a constructive existence proof from a nonconstructive existence proof?
A constructive existence proof explicitly finds an element a such that P(a) is true, whereas a nonconstructive existence proof proves that such an element exists without identifying it.
What two parts are required to prove that an object satisfying a property is unique?
Existence, by proving that an element x with the property exists; and uniqueness, by proving that if both x and y have the property, then x=y.
What is the power set of a set S, and how many elements does it contain if ∣S∣=n?
The power set P(S) is the set of all subsets of S. If ∣S∣=n, then the power set has 2n elements.
How is the Cartesian product A×B of two sets defined?
The Cartesian product A×B is the set of all ordered pairs (a,b) such that a∈A and b∈B, that is, A×B={(a,b)∣a∈A∧b∈B}.
For a function f:A→B, what are the domain, codomain, and range?
The set A is the domain, the set B is the codomain, and the range is the subset of B consisting of all images f(a) for all a∈A.
When is a function f said to be one-to-one (injective)?
A function f is one-to-one if and only if f(a)=f(b) implies a=b for all a and b in its domain.
When is a function f:A→B said to be onto (surjective)?
A function f is onto if and only if for every element b∈B, there is an element a∈A such that f(a)=b.
Under what condition is a function f invertible, and what is its inverse function f−1?
A function f is invertible if and only if it is a bijection (both one-to-one and onto). Its inverse f−1 assigns to each b∈B the unique element a∈A such that f(a)=b.
How are the floor function ⌊x⌋ and the ceiling function ⌈x⌉ defined for a real number x?
The floor function ⌊x⌋ assigns the largest integer less than or equal to x, and the ceiling function ⌈x⌉ assigns the smallest integer greater than or equal to x.
What is the closed formula for the sum of the terms of a geometric progression ∑j=0narj when r=1?
The sum is given by ∑j=0narj=r−1arn+1−a.
How is the Fibonacci sequence f0,f1,f2,… defined recursively?
It is defined by initial conditions f0=0, f1=1, and the recurrence relation fn=fn−1+fn−2 for n≥2.
What is a countable set, and what symbol denotes the cardinality of an infinite countable set?
A set is countable if it is finite or has the same cardinality as the set of positive integers. The cardinality of an infinite countable set is denoted by ℵ0 (aleph null).
How does the Cantor diagonalization argument show that the real numbers are uncountable?
It assumes the real numbers in (0,1) can be listed sequentially, and then constructs a real number whose ith decimal digit differs from the ith decimal digit of the ith number in the list for every i, producing a number not in the list.
What does the Schröder-Bernstein theorem state?
If A and B are sets such that ∣A∣≤∣B∣ and ∣B∣≤∣A∣, then ∣A∣=∣B∣, meaning there is a one-to-one correspondence between A and B.
What condition is required for the matrix product AB to be defined?
The number of columns in A must equal the number of rows in B.
What are the defining characteristics of an algorithm?
An algorithm must satisfy input, output, definiteness, correctness, finiteness, effectiveness, and generality.
What are the worst-case time complexities of linear search and binary search on an ordered list of n elements?
Linear search has worst-case time complexity Θ(n), whereas binary search has worst-case time complexity Θ(log(n)).
What is the halting problem, and what did Alan Turing prove regarding its computability?
The halting problem asks whether a procedure exists that can decide whether an arbitrary program will eventually halt when run on a given input. Alan Turing proved that it is an unsolvable problem.
What is the formal definition of 'f(x) is O(g(x))'?
f(x) is O(g(x)) if there exist constants C and k such that ∣f(x)∣≤C∣g(x)∣ whenever x>k.
How are big-Ω and big-Θ defined in terms of function growth?
f(x) is Ω(g(x)) if there exist positive constants C and k such that ∣f(x)∣≥C∣g(x)∣ for x>k, and f(x) is Θ(g(x)) if f(x) is both O(g(x)) and Ω(g(x)).
What does the Division Algorithm state for an integer a and a positive integer d?
There exist unique integers q and r, with 0≤r<d, such that a=dq+r, where q=a div d is the quotient and r=amodd is the remainder.
What does it mean for two integers a and b to be congruent modulo m, denoted a≡b(modm)?
It means that the positive integer m divides a−b, which is equivalent to amodm=bmodm.
What is the Fundamental Theorem of Arithmetic?
Every integer greater than 1 can be written uniquely as a prime or as the product of two or more primes, where the prime factors are listed in order of nondecreasing size.
What does Bézout's theorem state for two positive integers a and b?
There exist integers s and t such that gcd(a,b)=sa+tb, where s and t are called Bézout coefficients of a and b.
What does the Chinese Remainder Theorem state?
If m1,m2,…,mn are pairwise relatively prime positive integers greater than 1, then the system of linear congruences x≡ai(modmi) has a unique solution modulo m=m1m2⋯mn.
What does Fermat's Little Theorem state?
If p is prime and a is an integer not divisible by p, then ap−1≡1(modp). Furthermore, for every integer a, ap≡a(modp).
How are encryption and decryption carried out in the RSA cryptosystem?
With public key (n,e) where n=pq and gcd(e,(p−1)(q−1))=1, a message block M is encrypted as C=Memodn. Using the private key d, the inverse of e(mod(p−1)(q−1)), it is decrypted as M=Cdmodn.
What are the two steps in a proof by the Principle of Mathematical Induction?
The basis step shows that P(1) is true. The inductive step shows that the conditional statement P(k)→P(k+1) is true for all positive integers k, assuming the inductive hypothesis that P(k) is true.
How does the inductive hypothesis of strong induction differ from that of mathematical induction?
Mathematical induction assumes only that P(k) is true to prove P(k+1), whereas strong induction assumes that P(j) is true for all integers j from the base case up to k to prove P(k+1).
What does the well-ordering property of the positive integers state?
Every nonempty set of nonnegative (or positive) integers has a least element.
What two steps constitute a proof by structural induction for a recursively defined set?
The basis step verifies that the statement holds for all elements in the basis step of the definition. The recursive step verifies that if the statement holds for all elements used to construct new elements in the recursive step, it also holds for the new elements.
In program verification, what is a loop invariant?
A loop invariant is an assertion p that remains true before and after each execution of the body of a loop, ensuring that if p is true initially, it remains true throughout and upon loop termination.
What is the worst-case time complexity of the merge sort algorithm for sorting a list of n elements?
The merge sort algorithm has a worst-case time complexity of O(nlog(n)).