Professional Documents
Culture Documents
Discrete Math CS 6105 PDF
Discrete Math CS 6105 PDF
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is TRUE
If the triangle is not green, then the square is not blue.
ATOMIC
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
If I will not give you magic beans, then you will not give me
Contrapositive
a cow.
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is FALSE
The square and the triangle are both blue.
Not a Statement
Customers must wear shoes.
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
If you will not give me a cow, then I will not give you
Converse
magic beans.
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
Contrapositive
You will give me a cow and I will not give you magic beans.
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is TRUE
If the triangle is green, then the square is blue.
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
Converse
If you will give me a cow, then I will not give you magic beans.
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
Neither
If I will give you magic beans, then you will give me a cow.
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is FALSE
Customers must wear shoes
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is FALSE
The square is not blue or the triangle is green.
Molecular
The customers wore shoes and they wore socks.
When a connected graph can be drawn without any edges crossing, it is called
________________ .
Planar graph
Which of the following is false?
A graph with one odd vertex will have an Euler Path but not an Euler Circuit.
¬P ∨ Q is equivalent to :
P→Q
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a square,
and the other is a triangle. Each shape is drawn in a single color. Suppose you believe me when I
tell you that if the square is blue, then the triangle is green. What do you therefore know about
the truth value of the following statements?
False
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is TRUE
If the triangle is green, then the square is blue.
A sequence of vertices such that consecutive vertices (in the sequence) are adjacent (in the
graph). A walk in which no edge is repeated is called a trail, and a trail in which no vertex is
repeated (except possibly the first and last) is called a path.
Walk
Answer:
A sequence that involves a common difference in identifying the succeeding terms.
Arithmetic Progression
bijection
A is a function which is both an injection and surjection. In other words, if every
element of the codomain is the image of exactly one element from the domain
A Bipartite graph is a graph for which it is possible to divide the vertices into two disjoint
sets such that there are no edges between any two vertices in the same set.
True
15
False
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is FALSE
The square and the triangle are both green.
Atomic
The customers wore shoes.
Indicate which, if any, of the following graphs G = (V, E, φ), |V | = 5, is not connected.
False
An argument is said to be valid if the conclusion must be true whenever the premises are all
true.
True
Euler circuit Euler path
A is a which starts and stops at the same vertex.
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is TRUE
If the triangle is not green, then the square is not blue.
Classify the sentence below as an atomic statement, a molecular statement, or not a
statement at all. If the statement is molecular, identify what kind it is (conjuction,
disjunction, conditional, biconditional, negation).
Every natural number greater than 1 is either prime or composite.
Molecular Conditional
Does this graph have an Euler Path, Euler Circuit, both, or neither?
Both
True
A graph in which every pair of vertices is adjacent.
complete graph
Answer:
Proofs that is used when statements cannot be rephrased as implications.
Proof by Contradiction
Answer:
What is the line covering number of for the following graph?
3
Identify the propositional logic of the truth table given
Negation
A set of statements, one of which is called the conclusion and the rest of which are called
premises.
argument
Answer:
¬(P ∨ Q) is logically equal to which of the following expressions?
¬P ∧ ¬Q.
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
If I will not give you magic beans, then you will not give me
Contrapositive
a cow.
Determine whether the sentence below is an atomic statement, a molecular statement, or
not a statement at all.
Not a statement at all
(a) Customers must wear shoes.
Atomic statement
(b) The customers wore shoes.
Molecular statement
(c) The customers wore shoes and they wore socks.
Logic Equivalence
is the same truth value under any assignment of truth values to their
atomic parts.
False
Tree
Does a rational r value for r2 =6 exist?
A graph is complete if there is a path from any vertex to any other vertex.
False
True
isomorphic
How many spanning trees are possible in the given figure?
7(try)
Given the series : 2,5,8,11....
Arithmetic
40
Double Summation
Geometric Series
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statements?
FALSE
(a) The square and the triangle are both blue.
FALSE
(b) The square and the triangle are both green.
TRUE
(c) If the triangle is not green, then the square is not blue.
TRUE
(d) If the triangle is green, then the square is blue.
FALSE
(e) The square is not blue or the triangle is green.
The ________________________ states that if event A can occur in m ways, and event B can occur
in n disjoint ways, then the event “A or B” can occur in m + n ways.
Additive principle
Logic
is a function from a subset of the set of integers.
sequence
What is the minimum height height of a full binary tree?
3
Any tree with at least two vertices has at least two vertices of degree two (trY)
True
A sequence of vertices such that every vertex in the sequence is adjacent to the vertices
before and after it in the sequence
Walk
A spanning tree that has the smallest possible combined weight.
Tautology
True
False
False
True
9 (try)
Tracing all edges on a figure without picking up your pencil or repeating and starting and
stopping at different spots
Euler Circuit
Conjunction
Disjunction
Implication
forest
A graph F is a if and only if between any pair of vertices in F there is at
one path
most
bipartite
A graph has two distinct groups where no vertices in either group connecting to
members of their own group
direct proof
Deduction rule is an argument that is not always right.
False
Find f (1).
4
The geometric sequences uses common _________ in finding the succeeding terms.
ratio (try)
nodes
The tree elements are called
An undirected graph G which is connected and acyclic is called ____________.
tree
Grandchild
A graph T is a tree if and only if between every pair of distinct vertices of T there is a unique
path.
True
False
inverse image
The of a a subset B of the codomain is the set f −1 (B) {x ∈ X : f (x) ∈ B}.
16,64
The minimum number of colors required in a proper vertex coloring of the graph.
Chromatic Number
Let A = {1, 2, 3, 4, 5} and B = {3, 4, 5, 6, 7}
Find A U B
{1, 2, 3, 4, 5, 6, 7}
{∅,{3},{4},{5},{3,4},{3,5},{4,5},{3,4,5}}
3
{1, 2, 3, 4, 5}∩({3, 4, 5, 6, 7}U{2, 3, 5})
{1, 2, 3, 4, 5}∩{2, 3, 4, 5, 6, 7}
{2, 3, 4, 5}
False
Exercise 3
It is a rule that assigns each input exactly one output
Function
Rule that states that every function can be described in four ways: algebraically (a formula),
numerically (a table), graphically, or in words.
Rule of four
Consider the function f : N → N given by f (0) 0 and f (n + 1) f (n) + 2n + 1. Find f (6).
36
recursive
definition consists of an
initial condition
together with a
recurrence relation
range
The is a subset of the codomain. It is the set of all elements which are assigned to
at least one element of the domain by the function. That is, the range is the set of all
outputs.
bijection
A is a function which is both an injection and surjection. In other words, if every
element of the codomain is the image of exactly one element from the domain
inverse image
• The of a a subset B of the codomain is the set f −1 (B) {x ∈ X : f (x) ∈ B}.
False
The ________________________ states that if event A can occur in m ways, and event B can occur
in n disjoint ways, then the event “A or B” can occur in m + n ways.
Additive principle
Determine the number of elements in A U B.
18
Additive principle states that if given two sets A and B, we have |A × B| |A| · |B|.
False
Let A, B and C represent people who like apples, bananas, and carrots respectively. The
number of people in A = 10, B = 12 and C = 16. Three people are such that they enjoy
apples, bananas as well as carrots. Two of them like apples and bananas. Let three people
like apples and carrots. Also, four people are such that they like bananas and carrots.
26
32
How many people takes coffee but not tea and wine?
45
What is the difference of persons who take wine and coffee to the persons who the persons
who takes tea only?
15
Out of 7 consonants and 4 vowels, how many words of 3 consonants and 2 vowels can be
formed?
210
Defined as the product of all the whole numbers from 1 to n.
Factorial
In how many different ways can the letters of the word 'OPTICAL' be arranged so that the
vowels always come together?
720
False
How many 3-letter words with or without meaning, can be formed out of the letters of the
word, 'LOGARITHMS', if repetition of letters is not allowed?
720
negation
False
Bipartite graph
Tree
The ________________________ states that if event A can occur in m ways, and event B can occur
in n disjoint ways, then the event “A or B” can occur in m + n ways.
Additive principle
Let ‘G’ be a connected planar graph with 20 vertices and the degree of each vertex is 3. Find
the number of regions in the graph.
12
Solution
By the sum of degrees theorem,
20 ∑ i=1 deg(Vi) = 2|E|
20(3) = 2|E|
|E| = 30
By Euler’s formula,
|V| + |R| = |E| + 2
20+ |R| = 30 + 2
|R| = 12
Hence, the number of regions is 12.
If two vertices are adjacent, then we say one of them is the parent of the other, which is
child
called the of the parent.
¬P ∧ ¬Q.
Degree of a vertex
15
How many 3-letter words with or without meaning, can be formed out of the letters of the
word, 'LOGARITHMS', if repetition of letters is not allowed?
Hamilton path
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
Converse
If I will give you magic beans, then you will not give me a cow.
Degree of a vertex
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
Neither
If I will give you magic beans, then you will give me a cow.
Find | R | when R = {2, 4, 6,..., 180}
90
Molecular
The customers wore shoes and they wore socks.
A sequence of vertices such that consecutive vertices (in the sequence) are adjacent (in the
graph). A walk in which no edge is repeated is called a trail, and a trail in which no vertex is
repeated (except possibly the first and last) is called a path.
Walk
Answer 2
Corollary
A graph F is a forest if and only if between any pair of vertices in F there is at most one path
4.2.2
Answer 3
Propositi
Any tree with at least two vertices has at least two vertices of degree one.
on 4.2.3
Answer 4
Propositi
4 Let T be a tree with v vertices and e edges. Then e v - 1.
on 4.2.4
Indicate which, if any, of the following three graphs G = (V, E, φ), |V | = 5, is not isomorphic
to any of the other two.
An argument is said to be valid if the conclusion must be true whenever the premises are all
true.
True
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is FALSE
The square and the triangle are both green.
{1, 2, 3, 4, 5}∩{2, 3, 4, 5, 6, 7}
{2, 3, 4, 5}
same vertex
In a simple graph, the number of edges is equal to twice the sum of the degrees of the
vertices.
False
In my safe is a sheet of paper with two shapes drawn on it in colored crayon. One is a
square, and the other is a triangle. Each shape is drawn in a single color. Suppose you
believe me when I tell you that if the square is blue, then the triangle is green. What do you
therefore know about the truth value of the following statement?
The statement is TRUE
If the triangle is not green, then the square is not blue.
As soon as one vertex of a tree is designated as the blank , then every other vertex on the
tree can be characterized by its position relative to the root.
root
If the right angled triangle t, with sides of length a and b and hypotenuse of length c, has area
equal to c2/4, what kind of triangle is this?
isosceles triangle
Function
3,9,__,81....
27
De Morgan's law is used in finding the equivalence of a logic expression using other logical
functions.
True
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
Contrapositive
You will give me a cow and I will not give you magic beans.
Converse
Consider the statement, “If you will give me a cow, then I will give you magic beans.” Decide
whether each statement below is the converse, the contrapositive, or neither.
Converse
(a) If you will give me a cow, then I will not give you magic beans.
Contrapositive
(b) If I will not give you magic beans, then you will not give me a cow.
Neither
(c) If I will give you magic beans, then you will give me a cow.
(d) If you will not give me a cow, then I will not give you magic
Converse
beans.
Contrapositive
(e) You will give me a cow and I will not give you magic beans.
Converse
(f) If I will give you magic beans, then you will not give me a cow.
False
deduction rule
These are lines or curves that connect vertices.
Nodes (Try)
False
A graph is an ordered pair G (V, E) consisting of a nonempty set V (called the vertices) and a
set E (called the edges) of two-element subsets of V.
True
8
A graph in which every pair of vertices is adjacent.
complete graph
Consider the statement, “If you will give me a cow, then I will give you magic beans.”
Determine whether the statement below is the converse, the contrapositive, or neither.
Converse
If you will give me a cow, then I will not give you magic beans.
(c) The Broncos will win the Super Bowl or I’ll eat my hat.
Molecular Conjunction
True
isomorphism
P → Q = ¬Q → ¬P