Discrete Mathematics and Its Applications - Core Concepts and Foundations

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/49

flashcard set

Earn XP

Description and Tags

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.

Last updated 6:30 PM on 10/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

50 Terms

1
New cards

What is a proposition in logic?

A proposition is a declarative sentence that is either true or false, but not both.

2
New cards

How is the negation of a proposition pp, denoted by ¬p\neg p, defined?

The negation of pp is the statement "It is not the case that pp", which has the opposite truth value of pp.

3
New cards

Under what condition is the conjunction p∧qp \wedge q of two propositions true?

The conjunction p∧qp \wedge q is true when both pp and qq are true, and is false otherwise.

4
New cards

How does an inclusive disjunction p∨qp \vee q differ from an exclusive or p⊕qp \oplus q?

The inclusive disjunction p∨qp \vee q is true when at least one of pp or qq is true, whereas the exclusive or p⊕qp \oplus q is true when exactly one of pp and qq is true, and false when both are true or both are false.

5
New cards

When is the conditional statement p→qp \rightarrow q false?

The conditional statement p→qp \rightarrow q is false only when the hypothesis pp is true and the conclusion qq is false; it is true in all other cases.

6
New cards

Given the conditional statement p→qp \rightarrow q, what are its converse, contrapositive, and inverse, and which is logically equivalent to p→qp \rightarrow q?

The converse is q→pq \rightarrow p, the contrapositive is ¬q→¬p\neg q \rightarrow \neg p, and the inverse is ¬p→¬q\neg p \rightarrow \neg q. Only the contrapositive is logically equivalent to p→qp \rightarrow q.

7
New cards

Under what condition is the biconditional statement p↔qp \leftrightarrow q true?

The biconditional statement p↔qp \leftrightarrow q is true when pp and qq have the same truth value, and is false otherwise.

8
New cards

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.

9
New cards

What are De Morgan's laws for propositional logic?

De Morgan's laws state that ¬(p∧q)≡¬p∨¬q\neg(p \wedge q) \equiv \neg p \vee \neg q and ¬(p∨q)≡¬p∧¬q\neg(p \vee q) \equiv \neg p \wedge \neg q.

10
New cards

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.

11
New cards

What are the negations of the quantified statements ∀xP(x)\forall x P(x) and ∃xP(x)\exists x P(x)?

By De Morgan's laws for quantifiers, ¬∀xP(x)≡∃x¬P(x)\neg \forall x P(x) \equiv \exists x \neg P(x) and ¬∃xP(x)≡∀x¬P(x)\neg \exists x P(x) \equiv \forall x \neg P(x).

12
New cards

What is the rule of inference known as modus ponens?

Modus ponens states that from the premises pp and p→qp \rightarrow q, the conclusion qq validly follows.

13
New cards

What is the rule of inference known as modus tollens?

Modus tollens states that from the premises ¬q\neg q and p→qp \rightarrow q, the conclusion ¬p\neg p validly follows.

14
New cards

What is the rule of inference known as resolution?

Resolution states that from the premises p∨qp \vee q and ¬p∨r\neg p \vee r, the resolvent q∨rq \vee r validly follows.

15
New cards

What is the logical error in the fallacy of affirming the conclusion?

It incorrectly treats the conditional statement p→qp \rightarrow q and the premise qq as implying pp, which is an invalid argument form based on a contingency rather than a tautology.

16
New cards

How does a direct proof differ from a proof by contraposition for a conditional statement p→qp \rightarrow q?

A direct proof assumes pp is true and shows that qq must be true. A proof by contraposition is an indirect proof that assumes ¬q\neg q is true and shows that ¬p\neg p must be true.

17
New cards

How is a proof by contradiction constructed to show that a proposition pp is true?

It assumes that ¬p\neg p is true and demonstrates that this assumption leads to a contradiction r∧¬rr \wedge \neg r for some proposition rr, proving that pp must be true.

18
New cards

What distinguishes a constructive existence proof from a nonconstructive existence proof?

A constructive existence proof explicitly finds an element aa such that P(a)P(a) is true, whereas a nonconstructive existence proof proves that such an element exists without identifying it.

19
New cards

What two parts are required to prove that an object satisfying a property is unique?

Existence, by proving that an element xx with the property exists; and uniqueness, by proving that if both xx and yy have the property, then x=yx = y.

20
New cards

What is the power set of a set SS, and how many elements does it contain if ∣S∣=n|S| = n?

The power set P(S)\mathcal{P}(S) is the set of all subsets of SS. If ∣S∣=n|S| = n, then the power set has 2n2^n elements.

21
New cards

How is the Cartesian product A×BA \times B of two sets defined?

The Cartesian product A×BA \times B is the set of all ordered pairs (a,b)(a, b) such that a∈Aa \in A and b∈Bb \in B, that is, A×B={(a,b)∣a∈A∧b∈B}A \times B = \{(a, b) \mid a \in A \wedge b \in B\}.

22
New cards

For a function f:A→Bf: A \rightarrow B, what are the domain, codomain, and range?

The set AA is the domain, the set BB is the codomain, and the range is the subset of BB consisting of all images f(a)f(a) for all a∈Aa \in A.

23
New cards

When is a function ff said to be one-to-one (injective)?

A function ff is one-to-one if and only if f(a)=f(b)f(a) = f(b) implies a=ba = b for all aa and bb in its domain.

24
New cards

When is a function f:A→Bf: A \rightarrow B said to be onto (surjective)?

A function ff is onto if and only if for every element b∈Bb \in B, there is an element a∈Aa \in A such that f(a)=bf(a) = b.

25
New cards

Under what condition is a function ff invertible, and what is its inverse function f−1f^{-1}?

A function ff is invertible if and only if it is a bijection (both one-to-one and onto). Its inverse f−1f^{-1} assigns to each b∈Bb \in B the unique element a∈Aa \in A such that f(a)=bf(a) = b.

26
New cards

How are the floor function ⌊x⌋\lfloor x \rfloor and the ceiling function ⌈x⌉\lceil x \rceil defined for a real number xx?

The floor function ⌊x⌋\lfloor x \rfloor assigns the largest integer less than or equal to xx, and the ceiling function ⌈x⌉\lceil x \rceil assigns the smallest integer greater than or equal to xx.

27
New cards

What is the closed formula for the sum of the terms of a geometric progression ∑j=0narj\sum_{j=0}^n ar^j when r≠1r \neq 1?

The sum is given by ∑j=0narj=arn+1−ar−1\sum_{j=0}^n ar^j = \frac{ar^{n+1} - a}{r - 1}.

28
New cards

How is the Fibonacci sequence f0,f1,f2,…f_0, f_1, f_2, \dots defined recursively?

It is defined by initial conditions f0=0f_0 = 0, f1=1f_1 = 1, and the recurrence relation fn=fn−1+fn−2f_n = f_{n-1} + f_{n-2} for n≥2n \ge 2.

29
New cards

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_0 (aleph null).

30
New cards

How does the Cantor diagonalization argument show that the real numbers are uncountable?

It assumes the real numbers in (0,1)(0, 1) can be listed sequentially, and then constructs a real number whose iith decimal digit differs from the iith decimal digit of the iith number in the list for every ii, producing a number not in the list.

31
New cards

What does the Schröder-Bernstein theorem state?

If AA and BB are sets such that ∣A∣≤∣B∣|A| \le |B| and ∣B∣≤∣A∣|B| \le |A|, then ∣A∣=∣B∣|A| = |B|, meaning there is a one-to-one correspondence between AA and BB.

32
New cards

What condition is required for the matrix product ABAB to be defined?

The number of columns in AA must equal the number of rows in BB.

33
New cards

What are the defining characteristics of an algorithm?

An algorithm must satisfy input, output, definiteness, correctness, finiteness, effectiveness, and generality.

34
New cards

What are the worst-case time complexities of linear search and binary search on an ordered list of nn elements?

Linear search has worst-case time complexity Θ(n)\Theta(n), whereas binary search has worst-case time complexity Θ(log⁡(n))\Theta(\log(n)).

35
New cards

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.

36
New cards

What is the formal definition of 'f(x)f(x) is O(g(x))O(g(x))'?

f(x)f(x) is O(g(x))O(g(x)) if there exist constants CC and kk such that ∣f(x)∣≤C∣g(x)∣|f(x)| \le C|g(x)| whenever x>kx > k.

37
New cards

How are big-Ω\Omega and big-Θ\Theta defined in terms of function growth?

f(x)f(x) is Ω(g(x))\Omega(g(x)) if there exist positive constants CC and kk such that ∣f(x)∣≥C∣g(x)∣|f(x)| \ge C|g(x)| for x>kx > k, and f(x)f(x) is Θ(g(x))\Theta(g(x)) if f(x)f(x) is both O(g(x))O(g(x)) and Ω(g(x))\Omega(g(x)).

38
New cards

What does the Division Algorithm state for an integer aa and a positive integer dd?

There exist unique integers qq and rr, with 0≤r<d0 \le r < d, such that a=dq+ra = dq + r, where q=a div dq = a \text{ div } d is the quotient and r=a mod dr = a \bmod d is the remainder.

39
New cards

What does it mean for two integers aa and bb to be congruent modulo mm, denoted a≡b(modm)a \equiv b \pmod m?

It means that the positive integer mm divides a−ba - b, which is equivalent to a mod m=b mod ma \bmod m = b \bmod m.

40
New cards

What is the Fundamental Theorem of Arithmetic?

Every integer greater than 11 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.

41
New cards

What does Bézout's theorem state for two positive integers aa and bb?

There exist integers ss and tt such that gcd⁡(a,b)=sa+tb\gcd(a, b) = sa + tb, where ss and tt are called Bézout coefficients of aa and bb.

42
New cards

What does the Chinese Remainder Theorem state?

If m1,m2,…,mnm_1, m_2, \dots, m_n are pairwise relatively prime positive integers greater than 11, then the system of linear congruences x≡ai(modmi)x \equiv a_i \pmod{m_i} has a unique solution modulo m=m1m2⋯mnm = m_1 m_2 \cdots m_n.

43
New cards

What does Fermat's Little Theorem state?

If pp is prime and aa is an integer not divisible by pp, then ap−1≡1(modp)a^{p-1} \equiv 1 \pmod p. Furthermore, for every integer aa, ap≡a(modp)a^p \equiv a \pmod p.

44
New cards

How are encryption and decryption carried out in the RSA cryptosystem?

With public key (n,e)(n, e) where n=pqn = pq and gcd⁡(e,(p−1)(q−1))=1\gcd(e, (p-1)(q-1)) = 1, a message block MM is encrypted as C=Me mod nC = M^e \bmod n. Using the private key dd, the inverse of e(mod(p−1)(q−1))e \pmod{(p-1)(q-1)}, it is decrypted as M=Cd mod nM = C^d \bmod n.

45
New cards

What are the two steps in a proof by the Principle of Mathematical Induction?

The basis step shows that P(1)P(1) is true. The inductive step shows that the conditional statement P(k)→P(k+1)P(k) \rightarrow P(k+1) is true for all positive integers kk, assuming the inductive hypothesis that P(k)P(k) is true.

46
New cards

How does the inductive hypothesis of strong induction differ from that of mathematical induction?

Mathematical induction assumes only that P(k)P(k) is true to prove P(k+1)P(k+1), whereas strong induction assumes that P(j)P(j) is true for all integers jj from the base case up to kk to prove P(k+1)P(k+1).

47
New cards

What does the well-ordering property of the positive integers state?

Every nonempty set of nonnegative (or positive) integers has a least element.

48
New cards

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.

49
New cards

In program verification, what is a loop invariant?

A loop invariant is an assertion pp that remains true before and after each execution of the body of a loop, ensuring that if pp is true initially, it remains true throughout and upon loop termination.

50
New cards

What is the worst-case time complexity of the merge sort algorithm for sorting a list of nn elements?

The merge sort algorithm has a worst-case time complexity of O(nlog⁡(n))O(n \log(n)).