Discrete Mathematics Exam 2

5.0(1)
studied byStudied by 17 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/65

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

66 Terms

1
New cards
Proof by Contradiction
1. Suppose the statement to be proved is false. That is, suppose
that the negation of the statement is true.
2. Show that this supposition lead logically to a contradiction.
3. Conclude that the statement to be proved is true.
2
New cards
Method of Proof by Contraposition
1. Express the statement to be proved in the form
∀x in D ,if P (x ) then Q (x )
2. Rewrite this statement in the contrapositive form
∀x in D ,if ∼Q (x ) then ∼P (x )
3. Prove the contrapositive by direct proof.
a. Suppose x is a (particular but arbitrarily chosen) element in D
such that Q (x ) is false.
b. Show that P (x ) is false.
3
New cards
The Irrationality of √2
By the Pythagorean Theorem, the length of the diagonal equals the square root of 2. So the square root of 2 is irrational!
4
New cards
Are There Infinitely Many Prime Numbers?
The number of primes is infinite
5
New cards
variable
In computing, refers to a storage location in the computer’s memory.
6
New cards
assignment statement
value to a variable:
x := e.
7
New cards
x := e.
x is assigned the value e
8
New cards
Conditional statements
using current values of variables to determine which statement is executed next
9
New cards
If then else
If condition is true, then s1 is executed and execution moves
to the next algorithm statement
If condition is false, then s2 is executed and execution moves
to the next algorithm statement
10
New cards
Iterative statements
when a sequence of algorithm statements is to be executed over and over again
11
New cards
While loop
while (condition)
[statements that make up the body of the loop]
end while
12
New cards
Trace Table
to trace the execution of the following algorithm by finding the values of all the algorithm variables each time they are changed during execution
13
New cards
For-next loop
for variable := initial expression to final expression
[statement that make up the body of the loop]
next (same) variable
14
New cards
Division Algorithm
or an integer a and a positive integer d , the quotient-remainder theorem guarantees the existence of integers q and r such that
a = dq + r and 0 ≤r
15
New cards
gcd(a,b)
greatest common divisor.
1. d is a common divisor of both a and b. In other words, d |a
and d |b.
2. For every integer c , if c is a common divisor of both a and b,
then c is less than or equal to d .
16
New cards
Euclidean Algorithm
a way to find the greatest common divisor of two positive integers, a and b
17
New cards
Sequence
A function whose domain is either all the integers between two given integers or all the integers greater than or equal to the integer
18
New cards
Term
individual element ak (read: “a sub k ”)
19
New cards
Subscript/Index
The k in ak is called
20
New cards
Initial term
m is the subscript of the
21
New cards
Final term
n is the subscript of the
22
New cards
Infinite Sequence
notation am ,am+1,am+2,...
23
New cards
explicit formula or general formula
a rule that shows how the values of ak depend on k
24
New cards
the summation from k equals m to n of a-sub-k
n
∑ak
k =m
25
New cards
Telescoping sum
Some sums can be written so that successive cancellation of terms collapses the final result
26
New cards
product from k equals m to n of a-sub-k
n
∏ak
k =m
27
New cards
Dummy variable
The variable used to represent the index of summation
28
New cards
factorial
the product of all the integers up to and including a given integer. n!
29
New cards
Zero factorial
denoted 0! is defined to be 1: 0! = 1
30
New cards
n choose r
(n/r) without the /
31
New cards
Proving an equality
1. Transform the left hand side and the right hand side independently until they are seen to be equal
2. Transform one side of the equation until it is seen to be the same as the other side of the equation.
32
New cards
Ordinary induction
assume P (k ) is true and show P (k + 1) is true.
33
New cards
Strong induction
Assume P (i ) is true for i ≤k , show P (k + 1) is true.
34
New cards
Well-Ordering Principle for the Integers
Let S be a set of integers containing one or more integers all of which are
greater than some fixed integer. Then S has a least element,
35
New cards
Quotient-Remainder Theorem
Given any integer n and any positive integer d , there exist integers q and r such that
n = dq + r and 0 ≤r
36
New cards
AXB
Let A and B be sets. A relation from A to B
37
New cards
x is related to y by R
xRy if and only if (x ,y ) ∈R .
38
New cards
arrow diagram for R
1. Represent the elements of A as points in one region and elements of B as points in another.
2. For each x ∈A, y ∈B , draw an arrow from x to y if and only
if (x ,y ) ∈R .
39
New cards
function F from a set A to a set B
a relation with domain A and co-domain B that satisfies the following two properties:
1. For every element x in A, there is an element y in B such that (x ,y ) ∈F .
2. For all elements x in A and y in B ,
if (x ,y ) ∈F and (x ,z ) ∈F ,then y = z
40
New cards
congruent modulo 2
mEn if, and only if, m mod 2 = n mod 2
41
New cards
reflexive
referring back to itself. or every x ∈A, xRx
42
New cards
symmetric
for every x , y ∈A, if xRy then yRx
43
New cards
transitive
or every x, y, z ∈A, if xRy and yRz then xRz
44
New cards
transitive closure
R is the relation R ton A that satisfies the following three properties:
1. R tis transitive.
2. R ⊆R t.
3. If S is any other transitive relation that contains R , then
R t⊆S .
45
New cards
Union
A ∪B , is the set of all elements that are in at least one of A and B .
46
New cards
Intersection
A ∩B , is the set of all elements that are common to both A and B .
47
New cards
partition
a finite or infinite collection of nonempty, mutually disjoint subsets whose union is A.
48
New cards
m ≡ n(mod d )
m is congruent to n modulo d , d |(m −n)
49
New cards
encryption
the method by which information is converted into secret code that hides the information's true meaning
50
New cards
Plaintext
A message before conversion
51
New cards
ciphertext
The converted plaintext
52
New cards
Decryption
To convert the ciphertext back into plaintext
53
New cards
Caeser Cipher
Encrypts messages by changing each letter of the alphabet to the one three places farther along with wrapping X to A, Y to B, and Z to C.
54
New cards
public key cryptography
potential recipient of encrypted messages openly distributes a public key containing encryption information
55
New cards
RSA Cryptography
M = C^d mod pq,
where d >0 and d is an inverse to e modulo (p −1)(q −1).
p=5, q=11
56
New cards
Subset
A ⊆B ⇔∀x ,if x ∈A then x ∈B .
57
New cards
proper subset
1. A ⊆B , and
2. there is at least one element in B that is not in A.
58
New cards
venn diagram
a diagram that uses circles to represent mathematical or logical sets pictorially inside a rectangle
59
New cards
Union, denoted A ∪B
is the set of all elements that are in at least one of A or B .
60
New cards
intersection, denoted A ∩B
is the set of all elements that are common to both A and B
61
New cards
difference, denoted B −A
the set of all elements that are in B and not A
62
New cards
complement, denoted A^c
the set of all elements in U that are not in A
63
New cards
empty set, ∅
the set with no elements
64
New cards
disjoint
A ∩B = ∅
65
New cards
mutually disjoint
Ai ∩Aj = ∅ whenever i /= j
66
New cards
partition
a. A is the union of all the Ai
b. the sets A1,A,2A3,...are mutually disjoint.