Math in The Modern World
Math in The Modern World
Textbook: Aufmann, R., Lockwood, J., Nation, R., Clegg, D., Epp, S., Abad, E. Jr. Mathematics in the Modern World.
(Rex Book Store, Inc., Manila, Philippines). 2018.
I. Nature of Mathematics
Fibonacci Sequence
Rabbit Problem
Questions:
1. What is the pattern of the birth of rabbits?
2. How many pairs of rabbits will be at 6th month?
Answers:
1. The number of pairs of rabbits for any month after the first 2 months can
be determined by adding the number of pair of rabbits in each of the 2
previous months
2. In the 4th month, there are 3 pairs of rabbits and in the 5th month there
are 5 pairs. Thus, there will be 8 pairs (5+3) at the 6th month.
• Fibonacci Sequence: 1,1,2,3,5,8,13,21,...
• Example: Find the first ninth term of the Fibonacci sequence using the
recursive definition.
Binet’s Formula
Example:
1/1 = 1.000 13/8 = 1.625
2/1 = 2.000 21/13 ≈ 1.615
3/2 = 1.500 34/21 ≈ 1.619
5/3 ≈ 1.667 55/34 ≈ 1.618
8/5 = 1.600 89/55 ≈ 1.618
Fibonacci sequence has many interesting properties. Among
these is that these pattern is very visible in nature. Some of
nature’s most beautiful patterns, like the spiral arrangement of
sunflower seeds, the number of petals in a flower, and the
shape of a snail’s shell all contain Fibonacci numbers.
Shapes and figures that bear this proportion are generally
considered to be aesthetically pleasing. As such, this ratio is visible
in many works of art and architecture such as in the Mona Lisa, the
Notre Dame Cathedral, and the Parthenon. In fact, the human DNA
molecule also contains Fibonacci numbers, being 34 angstroms
long by 21 angstroms wide for each full cycle of the double helix
spiral. This approximates the Golden Ratio at a value of 1.619 (1
angstrom = 10-10 meter or 0.1 nanometer).
Partner Activity
1 2
3 4
5 6
7 8
9 10
II. Speaking Mathematically
1.) Are there numbers with the property that the sum of their squares equals
• A conditional statement says that if one thing is true then some other
thing also has to be true.
• Example: If 15 is divisible by 6 then 15 is divisible by 2.
• An existential statement says that there is at least one thing for which a
certain property is true.
• Example: There is a prime number which is even.
Other Types of Statements
• A universal conditional statement is both universal and conditional.
• Example: For all animals x, if x is a dog then x is a mammal.
• Example: If x is a dog then x is a mammal.
• Example: Is {0}=0?
• Exampe: Is {2,{1}}={1,{2}}?
• Example: Let n be a nonnegative integer. Define Un={2n-1, 2n+1, 2n+3}. Find U0, U1, U2.
• Here is a list of frequently used sets in mathematics:
Symbol Set
R set of all real numbers
Q set of all rational numbers
Z set of all integers
W set of all whole numbers
N set of all natural numbers
• Example: R+={xϵR : x > 0}; R-={xϵR : x < 0}; R≥0={xϵR : x ≥ 0}; Z+=?
• More examples on using set-builder notation: Describe each set by listing the elements or
by drawing if listing is impossible.
1.) {xϵR : -2.5 ≤ x <5}
2.) {xϵZ : -2.5 ≤ x < 5}
3.) {xϵN : -2.5 ≤ x < 5}
• Example: Two programs were broadcast on television at the same time; one was the Big
Game and the other was Ice Stars. The Nelson Ratings Company uses boxes attached to
television sets to determine what shows are actually being watched. In its survey of 1000
homes at the midpoint of the broadcasts, their equipment showed that 153 households were
watching both shows, 736 were watching the Big Game and 55 households were not
watching either. How many households were watching only Ice Stars?
•Example: In a recent survey people were asked if they took a vacation in April, May, or
December in the past year. The results were the following: 73 took a vacation in April, 51
took a vacation in May, 27 took a vacation in December, and 2 had taken no vacation. Also,
10 had taken vacations at all three times, 33 had taken both an April and a May vacation, 18
had taken only a May vacation, and 5 had taken both April and December but not a May
vacation.
(1) How many people had taken vacations at exactly two times of the year?
(2) How many people had taken vacations in April only?
(3) How many had taken vacations during both April and May but not December?
(4) How many had taken vacations during both May and December but not April?
(5) How many people had been surveyed?
• There exists a set without elements and we call it the empty set (written
as Ø or { }).
• For any sets A and B, if AB then A and B are said to be disjoint.
• Example: If A={2,4,6,8} and D={3,5,7,9}, then AD and so A and D are disjoint.
• Two ordered pairs (a,b) and (c,d) are equal if and only if a=c and b=d.
• Cartesian Product: Given sets A and B, the Cartesian product of A and
B is the set
A X B={(a,b) : aϵA, bϵB}.
?
Inductive Reasoning
• Inductive reasoning is the process of reaching a general conclusion by
examining specific examples.
a.) What happens to the height of a tsunami when its velocity is doubled?
b.) What should be the height of a tsunami if its velocity is 30 feet per second?
Counterexamples
• Example: For each circle, count the number of regions formed by the line segments that
connect the dots on the circle. Using small numbers of dots, complete the list below.
Number of Dots 1 2 3 4 5 6
Number of Regions 1 2 ? ? ? ?
Make a guess on the number of regions when there are six dots.
• Example: Verify that each of the following statements is false by finding a counterexample.
N.B. Using inductive reasoning would not guarantee that your conclusion is true.
Deductive Reasoning
• Deductive reasoning is the process of reaching a conclusion by applying
general assumptions, procedures, or principles.
• Example: Use deductive reasoning to derive the general form of the expression.
1.) Consider the following procedure: Pick a number. Multiply the number by 9, add 15
to the product, divide the sum by 3, and subtract 5.
2.) Consider the following procedure: Pick a number. Multiply the number by 8, add 6
to the product, divide the sum by 3, and subtract 2.
• Example: Brianna, Ryan, Tyler, and Ashley were recently elected as the new class officers
(president, vice president, secretary, treasurer) of the sophomore class at Summit College.
From the following clues, determine which position each holds.
1.) Ashley is younger than the president but older than the treasurer.
2.) Brianna and the secretary are both of the same age, and they are the youngest
members of the group.
3.) Tyler and the secretary are next-door neighbors.
Problem Solving with Patterns
• An ordered list of numbers a1, a2, ... an, ... is called a sequence. The
numbers separated by commas are the terms of the sequence. The nth
term represents the general formula for each term.
• Example: Using “difference table”, determine the succeeding terms of each sequences.
1.) 2,5,8,11,14,...
2.) 5,14,27,44,65,...
3.) 2,7,24,59,118,207,...
4.) 1,14,51,124,245,426,...
N.B. Here, we assume that the pattern obtained by the “difference table” continues.
• Example: Assume the pattern shown by the square tiles in the following figures continue.
a1 a2 a3 a4 a5
1.) What is the nth-term formula for the number of tiles in the nth figure of the
sequence?
2.) How many tiles are in the eighth figure of the sequence?
3.) Which figure will consist of exactly 320 tiles?
• Example: Assume that the pattern shown by the square tiles in the following figure
continues.
a1 a2 a3 a4 a5
1.) What is the nth-term formula for the number of tiles in the nth figure of the
sequence?
2.) How many tiles are in the tenth figure of the sequence?
3.) Which figure will consist of exactly 419 tiles?
Problem-Solving Strategies
Note: George Polya is a Hungarian mathematician who contributed to different areas of mathematics. One
of his main contribution is a formula which is a consequence of the Burnside's Lemma which counts the
number of orbits in a group action. Polya applied this to solve counting problems in combinatorics.
• Example: Consider the map shown below. Allison wishes to walk along the streets from point
A to point B. How many direct routes can Allison take?
B
• Example: A baseball team won two out of their last four games. In how many different orders
could they have two wins and two losses in four games?
• Example: In a basketball league consisting of 10 teams, each team plays each of the other
teams exactly three times. How many league games will be played?
• Example: If six people greet each other at a meeting by shaking hands with one another,
how many handshakes will take place?
• Example: Four people on one side of a river need to cross the river in a boat that can carry a
maximum load of 180 pounds (including the driver of the boat). The weights of the people
are 80, 100, 150, and 170 pounds. Find the minimum number of crossings that must be
made by the boat to carry everyone to the opposite side. (Note: Assuming anyone can drive
the boat).
IV. Statistics
•Statistics involves the collection, organization, summarization,
presentation, and interpretation of data.
•The branch that interprets and draws conclusions from the data is called
inferential statistics.
•Suppose Elle is a senior at a university and in a few months she plans to graduate to start a
career as a landscape architect. A survey of five landscape architects from last year's senior
class shows that they received job offers with the following yearly salaries:
$43,000 $39,500 $38,000 $41,250 $44,000.
What amount would best represent the salaries above?
Measures of Central Tendency
• The mean of n numbers x1, x2, ... xn is the sum of the numbers divided by
n.
n
xi
Mean i 1
n
• The mode of a list of numbers is the number that occurs most frequently.
• Exampe: Find the mode of the data in the following lists.
1.) 18, 15, 21, 16, 15, 14, 15, 14, 21
2.) 3, 4, 7, 4, 3, 6, 8, 4, 7, 3, 6, 5, 5, 3, 4
3.) 14, 27, 3, 82, 64, 34, 8, 51
• Note: The mean, median and mode are all averages and the three may
not be equal for a certain set of data.
• The weighted mean of n numbers x1, x2, ... , xn with the respective
assigned weights w1, w2, ... , wn isn
wi xi
Weighted Mean i 1
n.
wii 1
• Example: Suppose Maria's grades on the first semester in a certain university are as
follows: Course Course Grade Course Unit
Fundamentals of Mathematcis 1.1 3
General Physics 1.2 3
Physical Education II 1.5 2
NSTP II 2.0 1
Make a frequency table for the raw data above and compute the mean.
Measures of Dispersion
• The range of a set of data values is the difference between the greatest
data value and the least data value.
• Example: Consider a soft-drink dispensing machine that should dispense 8 oz of your
selection into a cup. The table shows data for two of these machines.
Machine 1 Machine 2
9.52 8.01
6.41 7.99
10.07 7.95
5.85 8.03
8.15 8.02
mean = 8.0 mean = 8.0
Find the range of the numbers of ounces dispensed by Machine 1. Find the range of the
numbers of ounces dispensed by Machine 2.
• If x1, x2, ... , xn is a population of n numbers with a mean of μ, then the
standard deviation of the population is
n
ix 2
i 1
.
n
If x1, x2, ... , xn is a sample of n numbers with a mean of x , then the
standard deviation of the sample is
x
n
2
i x
s i1
.
n 1
• Example: A student has the following quiz scores: 5, 8, 16, 17, 18, 20. Find the standard
deviation for this population of quiz scores.
• Example: A consumer group has tested a sample of 8 size-D batteries from each of 3
companies. The results of the tests are shown in the following table. According to these
tests, which company produces batteries for which the values representing hours of
constant use have the smallest standard deviation?
Company Hours of constant use per battery
EverSoBright 6.2, 6.4, 7.1, 5.9, 8.3, 5.3, 7.5, 9.3
Dependable 6.8, 6.2, 7.2, 5.9, 7.0, 7.4, 7.3, 8.2
Beacon 6.1, 6.6, 7.3, 5.7, 7.1, 7.6, 7.1, 8.5
• A variance for a given set of data is the square of the standard deviation
of the data. For population variance, we use 2 . While s2 is used for the
sample variance.
• Example: A student has the following quiz scores: 5, 8, 16, 17, 18, 20. Find the variance for
this population of quiz scores.
Measures of Relative Position
• The z-score for a given data value x is the number of standard deviations
that x is above or below the mean of the data. The following formulas
show how to calculate the z-score for a data value x in a population and
in a sample.
x
Population: z x
xx
Sample: z x
s
Note: A z-score of 3 for a data value x means that x is 3 standard deviations ABOVE the mean.
A z-score of -1 for a data value x means that x is 1 standard deviation BELOW the mean.
• Example: Cheryl has taken two quizzes in her history class. She scored 15 on the first quiz,
for which the mean of all scores was 12 and the standard deviation was 2.4. Her score on
the second quiz, for which the mean of all scores was 11 and the standard deviation was
2.0, was 14. In comparison to her classmates, did Cheryl do better on the first quiz or the
second quiz?
• Example: A consumer group tested a sample of 100 light bulbs. It found that the mean life
expectancy of the bulbs was 842 h, with a standard deviation of 90. One particular light bulb
from the DuraBright Company had a z-score of 1.2. What was the life span of this light bulb?
• Example: On an examination given to 8600 students, Hal's score of 405 was higher than
the scores of 3952 of the students who took the examination. What is the percentile for
Hal's score?
• The three numbers Q1, Q2, and Q3 that partition a ranked data set into four
(approximately) equal groups are called the quartiles of the data. Q1 is
called the first quartile, Q2 is the second quartile, and Q3 is third quartile.
• The Median Procedure for Finding Quartiles:
1.) Rank the data.
2.) Find the median of the data. This is Q2.
3.) Q1 is the median of the data values less than Q2. Q3 is the median
of the data values greater than Q2.
• Example: The following table lists the weights, in ounces, of 15 avocados in a random
sample. Find the quartiles for the data.
12.4 10.8 14.2 7.5 10.2 11.4 12.6 12.8 13.1 15.6
9.8 11.4 12.2 16.4 14.5
• Example: A vegetable distributor knows that during the month of August, the weights of its
tomatoes are normally distributed with a mean of 0.61 lb and a standard deviation of 0.15 lb.
a.) What percent of the tomatoes weigh less than 0.76 lb?
b.) In a shipment of 6000 tomatoes, how many tomatoes can be expected to weigh
more than 0.31 lb?
c.) In a shipment of 4500 tomatoes, how many tomatoes can be expected to weigh
from 0.31 lb to 0.91 lb?
Standard Normal Distribution
• Example: A study shows that the lengths of the careers of professional football players are
nearly normally distributed, with a mean of 6.1 years and a standard deviation of 1.8 years.
a.) What percent of professional football players have a career of more than 9 years?
b.) If a professional football player is chosen at random, what is the probability that the
player will have a career of between 3 and 4 years?
Linear Regression and Correlation
• Researchers often wish to know the relationship or whether a relationship
exists between two variables. If two variables are determined to be related,
the next thing of interest is to model the relationship by a mathematical
equation.
• The two variables involved in the investigation are called bivariate data. A
scatter diagram is then drawn to give a picture of the relationship.
• One of the interesting case is studying if there is a linear relationship.
• The least-squares regression line or line of best fit for a set of bivariate
data is the line that minimizes the sum of the squares of the vertical
deviations from each data point to the line.
• The equation of the least-squares line for the n ordered pairs (x1,y1),
(x2,y2),...,(xn,yn) is yˆ ax b, where
n n n
n xi y i xi y i
a i 1 i 1 i 1 , b y a x.
2
n
2 n
n xi xi
i 1 i 1
• Example: Sam observed and found some data on how many hours of sunshine and how
many ice creams were sold at the shop from Monday to Friday.
Hours of sunshine (x) 2 3 5 7 9
Ice creams sold (y) 4 5 7 10 15
Draw the scatter diagram and find the equation for the line of best fit for the data.
• Example: The stride length for an animal is defined as the distance x from a particular point
on a footprint to that same point on the next footprint of the same foot. A scientist is trying to
experiment on the stride of an animal vs its speed. He obtained the following data.
a.) Adult men
Stride length (m) 2.5 3.0 3.3 3.5 3.8 4.0 4.2 4.5
Speed (m/s) 3.4 4.9 5.5 6.6 7.0 7.7 8.3 8.7
b.) Dogs
Stride length (m) 1.5 1.7 2.0 2.4 2.7 3.0 3.2 3.5
Speed (m/s) 3.7 4.4 4.8 7.1 7.7 9.1 8.8 9.9
Draw the scatter diagram for each of the above and find the equation of the line of best fit.
Linear Correlation Coefficient
n n n
n xi y i xi y i
r i 1 i 1 i 1 .
n
2 2
2 2
n n n
n xi xi n y i y i
i 1 i 1 i 1 i 1
• A positive r indicates a positive correlation, that is, if one variable
increases then the other also increases. A negative r indicates a negative
correlation, that is, if one variable increases then the other tends to
decrease.
• Different Types of Linear Correlation
• Example: Find the linear coefficient for the stride length versus speed of an adult man as
given in the above example.
• Example: Find the linear coefficient for the stride length versus speed of a dog as given in
the above example.
• Example: In the table below, the hours per week that a student spent playing pool and the
student's weekly algebra test scores for those same weeks are listed. Compute for the
linear coefficient and conclude on the type of linear relationship between the two
variables.
Hours per week spent playong pool 4 5 7 8 10
Weekly algebra test score 52 60 72 79 83
• The truth value of a simple statement is either true (T) or false (F).
• The truth value of a compound statement depends on the truth values of
its simple statements and its connectives.
• A truth table shows the truth value of a compound statement for all
possible truth values of its simple statements.
• Truth Table for ~p
p ~p
T F
F T
• Example: Write the negation of each statement and determine the truth value.
1.) Red is blue.
2.) 1 is not equal to -1.
p q pVq
T T T
T F T
F T T
F F F
• Example: Determine the truth value of each statement.
1.) 2 is a prime number and red is blue.
2.) 2 is a prime number or red is blue.
3.) -2 ≤ 5
4.) There are infinitely many primes but only one prime is even.
Quantifiers and Negation
• Recall: The words all, every, any are called universal quantifiers. While
some, there exists, at least one are called existential quantifiers.
• How do we negate quantified statements?
• Example: Give the negation of the following statements.
1.) All dogs in the house are black.
2.) No doctors write in a legible manner.
3.) Some vegetables are not green.
4.) There are examinees who failed the first part of the examination.
• Quantified Statements and Their Negations
Statement Negation
All X are Y. Some X are not Y.
No X are Y. Some X are Y.
Some X are Y. No X are Y.
Some X are not Y. All X are Y.
Equivalent Statements and Tautologies
• Standard Truth Table Form
p q Statement p q r Statement
T T T T T
T F T T F
F T T F T
F F T F F
F T T
• Example: Construct the truth table of F T F
(pΛ~q)V(~pVq). F F T
F F F
p q p↔q
T T T
T F F
F T F
F F T
• Example: Write the converse, inverse and contrapositive of the following implication.
If I study then I will pass the examination.
• Example: Find the truth tables for the converse, inverse and contrapositive of p→q and
compare it with that of p→q.
p q p→q q→p ~p→~q ~q→~p
T T T
T F F
F T T
F F T
• Example: Determine which of the given statements are equivalent.
1.) If I do not live in Cebu City then I do not live in Tisa.
If I do not live in Tisa then I do not live in Cebu City.
If I live in Cebu City the I live in Tisa.
If I live in Tisa then I live in Cebu City.
2.) Let a, b and c be real numbers.
If a=b then ac=bc.
If ac=bc then a=b.
If a≠b then ac≠bc.
If ac≠bc then a≠b.
• A theorem in mathematics always comes in an implication form or
biconditional which can be broken into two implications. Sometimes, it is
easier to prove the equivalent contrapositive form than the given theorem.
Mathematicians called the related proof method as the contrapositive
proof.
2.) p1: The fish is fresh or I will not order the fish.
p2: The fish is fresh.
q : Therefore, I will order the fish.
3.) p1: If she does not get on the plane then she will regret it.
p2: She does not regret it.
q : Therefore, she gets on the plane.
• Example: Write the arguments above in symbolic forms using its simple statements.
1.) Let p: Aristotle was human; q: Aristotle was mortal. Then
p→q
p__ that is, ((p → q) Λ p) → q.
q
How to determine the validity of an argument?
• Using Truth Table to Determine the Validityof an Argument
i.) Transform the argument in symbolic form.
ii.) Construct a truth table that shows the truth value of each premise
and the truth value of the conclusion for all combinations of truth
values of the simple statements.
iii.) If the conclusion is true in every row of the truth table in which all
the premises are true, the argument is valid. If the conclusion is false in
some row in which all the premises are true, the argument is invalid.
• Example: Determine if each of the arguments above is valid or invalid using truth tables.
1.)
p q ((p → q) Λ p) → q
T T
T F
F T
F F
• When the number of simple statements grow large, truth table procedure
becomes inefficient. Thus, we make use of a list of verified tautologies in
writing a sequence of statements which starts from the premises and ends
up with the conclusion. We do this via a two-column table.
• Example: Determine whether the following argument is valid.
If I read a literature book I start to fall asleep .
If I start to fall asleep then I drink soda.
If I drink soda then I must eat a candy bar.
If I read a literature book then I eat a candy bar.
Example: Evaluate each of the following, where and indicate addition and subtraction
respectively on a 12-hour clock.
1.) 3.)
2.) 4.)
Instances like these just repeat in cycles and are represented
mathematically using the concept of modulo congruence and modulo
arithmetic.
Modulo Congruence
Let x be any integer and bany positive integer. Then bdividesx (written as ) if
there exists an integer y such that .
Example: Which of the following is true?
1.) 2|6 3.) 1|5 5.) 3|0
2.) 4|6 4.) 5|1
is obtained by adding x and y under the usual addition then using the
Division algortihm. That is, we write whenever
where q, rareintegers such that
• We define:
subtraction modulo n:
multiplication modulo n:
in the same manner.
Example:
Evaluate each of the following:
1.
2.
3.
4.
5. Disregard A.M. or P.M., If it is 5 o’clock now, what time was it 57 hours ago?
Solving Congruence Equations
• Let a and b be integers and n is a positive integer. Then
• Example: Solve
• Example: Solve
• Example: Solve
Applications of Modular Arithmetic
• Every book that is cataloged in the Library of Congress has an ISBN
(International Standard Book Number) which is a 13-digit number.
• The first three digits of an ISBN are 978 (or 979), followed by nine digits
which are divided into three groups and indicate the country or region,
publisher, and the title of the book.
• The last digit (the 13th digit) is called the check digit which is computed
as follows:
For integer i such that 1 ≤ i ≤ 12, denote the ith digit of an ISBN by di.
Then
2.) A purchase order for the book The Mathematical Tourist by Ivars Peterson includes the ISBN
978-0-395-28517-4. Is this a valid ISBN?
Another coding scheme is the UPC (Universal Product Code) which
is used in grocery stores.
The UPC is a 12-digit number such that the last digit is also called
the check digit and is computed using modular arithmetic.
Credit card numbers are normally 13 to 16 digits long. The first one to six digits
are used to identify the card issuer. The table below shows some of the
identification prefixes used by four popular card issuers.
Begin with the next-to-past digit and reading from right to left, double every digit. If a digit
becomes a two-digit number after being doubled, treat the as two individual digits. Find the sum
of the new list of digits. The final sum must be congruent to 0 mod 10.
Example:
1.) Is 5234-8213-3410-1298 is a valid credit card number?
3.) Example: Using Luhn algorithm, check your own atm card number if it is valid.
(From the book Elementary Number theory: Primes, Congruences, and Secrets
by William Stein)
- W. Stein
Diffie Hellman
Cryptology
• Cryptology is the study of making and breaking secret codes.
Coding Scheme
• Numerical Equivalents for the Letters of the Alphabet
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 0
where
Example: Use the cyclical alphabetic encrypting code that shifts each letter 11 positions to
where gcd(a,26) = 1.
Example:
1.) Use the congruence c ≡ (5p + 2) mod 26 to encode the message
LASER PRINTER.
Decoding a message that was encrypted using the congruence requires
solving the congruence for p. The method relies on multiplicative inverses. Here
we solve the congruence used in the previous example for p.
Example:
1.) Decode the message ACXUT CXRT, which was
encrypted using the congruence
VII. Graph Theory
(Courtesy google.com)
A B C D
A D
B B A
C E
C D E
Euler Circuits
• A path is a graph G=(V,E) such that V={x1, x2, x3, ... , xn-2, xn-1, xn} and
E={{x1,x2}, {x2,x3}, ... , {xn-2,xn-1}, {xn-1,xn}}.
• If a path ends at the same vertex at which it started, it is called a closed
path or a circuit.
• Note: a path or a circuit is sometimes useful when considered a part of a
“bigger” graph.
• In a graph, a circuit that uses every edge but never uses the same edge
twice is called an Euler circuit.
• Example: Find an Euler circuit in the following graph.
A B C D
E F G H
• Example: Find an Euler circuit in the following graph.
A B
C D
D E
• A graph with an Euler circuit s called an Eulerian graph.
• Eulerian Graph Theorem:
A connected graph is Eulerian if and only if every vertex of the graph is
of even degree.
• Example: Use the Eulerian Graph Theorem to verify our two examples above on the
existence of Eulerian circuits.
• Example: Recalling the problem of 7 bridges of Kӧnigsberg, was it possible for the people to
take a stroll that would lead them across each bridge and return them to the starting point
without traversing the same bridge twice?
• In a graph, a path that uses every edge once and only once is called an
Euler path.
• Example: Determine if there exists an Euler path of the following graph.
A B
C D
• A Version of Euler Path Theorem:
Let G be a connected graph with two distinct vertices x and y of odd
degrees. G has an Euler path from vertex x to vertex y if and only if x and
y are the only vertices of odd degrees.
• Example: Verify our last example on the existence of an Euler path using this theorem.
• Example: Recalling the problem of 7 bridges of Kӧnigsberg, was it possible for the people to
take a stroll such that they start in one of the starting point and end up with a different point
with the condition that they cross each bridge without traversing the same bridge twice?
• Example: A bicyclist wants to mountain
bike through all the trails of a national park.
A map of the park is shown on the right.
Because the bicyclist will be dropped off in
the morning by friends and picked up in
the evening, she does not have a
preference for where she begins and ends
her ride. Is it possible for the cyclist to
traverse all of the trails without repeating
any portions of her trip?
• Example: The floor plan of a warehouse is
illustrated on the right. Use a graph to
represent the floor plan, and answer the
following questions: Is it possible to walk
through the warehouse so that you pass
through every doorway once but not
twice? Does it matter whether you return to
the starting point?
Hamiltonian Circuits
• A Hamiltonian circuit ina a given graph is a path that begins and ends at
the same vertex and passes through each vertex of a graph exactly once.
A graph that contains a Hamiltonian circuit is called a Hamiltonian graph.
• Example: Which of the following graphs is a Hamiltonian graph?
A B E F J K
I
C D G H L M N
San Francisco - X X X X
New York - X X X
Los Angeles X X - X
Dallas X - X X
Boston X X - X
Phoenix X X X -
Atlanta X X X -
Weighted Graphs
• A weighted graph is a graph in which each edge is associated with a
value called weight.
• Example:
1
2
6 3
• Example: Find good routes from the previous examples using the edge-picking algorithm.
• Example: Brian needs to visit the pet store, the shopping mall, the local farmers market,
and the pharmacy. His estimated driving times (in minutes) between the locations are
given in the following table. Use the greedy algorithm and edge-picking algorithm to find
two possible routes, starting and ending at home, that will help Brian minimize his total
travel time.
• Example: How many faces are there in each of the following graph?
• Euler's Formula
In a connected planar graph drawn with no intersecting edges, let v be
the number of vertices, e the number of edges, and f the number of faces.
Then
v + f = e + 2.
• Example: Verify the graphs from the previous example using the Euler's formula.
• Example: Determine the number of faces of the following graph and verify using the Euler's
formula.
Graph Coloring
• Francis Guthrie, a South African mathematician and botanist, tried to color
a map of the countries of England. He wanted that countries sharing a
common border to have different colors. He then noticed that four colors
are needed to color the map and so he postulated that four colors are
sufficient to color any map. This is now known as the four-color problem.
• Example: 4-Coloring of the US map.
• Example: Suppose the following is a map of a province with different cities. Color the map
such that two cities sharing a common boundary have different colors.
• Four-Color Theorem
Every planar graph is 4-colorable.
• Example: Consider the map of Central Cebu Protected Landscape (CCPL) on the
following page. Construct a graph such that each city/municipality included in CCPL
is represented by a vertex and two vertices are connected if the corresponding
cities/municipalities share the same boundary. Color the graph and decide whether
it is 2-colorable, 3-colorable or 4-colorable.
• The minimum number of colors needed to color a graph so that no edge
connects vertices of the same color is called the chromatic number of
the graph.
• 2-Colorable Graph Theorem
A graph is 2-colorable if and only if it has no circuits that consist of an
odd number of vertices.
• Example: Determine if each of the following graphs is 2-colorable or not.
Applications of Graph Coloring
• Example: Eight different school clubs want to schedule meetings on the last day of the
semester. Some club members, however, belong to more than one of these clubs, so clubs
that share the same members cannot meet at the same time. How many different time slots
are required so that all members can attend all meetings? Clubs that have a member in
common are indicated with an “X” in the table below.
Ski Student Debate Honor Student Community Campus Campus
Club Government Club Society Newspaper Outreach Democrats Republicans
Ski Club - X X X X
Student Government X - X X X
Debate Club X - X X X
Honor Society X X X - X X
Student Newspaper X X - X X
Community Outreach X X X - X X
Campus Democrats X X X -
Campus Republcans X X X -
• Example: Six film students have collaborated on the creation of five films.
Film A was produced by Brian, Chris, and Damon.
Film B was produced by Allison and Fernando.
Film C was produced by Damon, Erin, and Fernando.
Film D was produced by Brian and Erin.
Film E was produced by Brian, Chris,and Erin.
The college is scheduling a one-day film festival where each film will be shown once and the
producers of each film will attend and participate in a discussion afterward. The college has
several screening rooms available and two hours will be allotted for each film. If the showings
begin at noon, create a screening schedule that allows the festival to end as early as possible
while assuming that all the producers of each film can attend that film's screening.
• Example: Five classes at an elementary school have arranged a tour at a zoo where the
students get to feed the animals.
Class 1 wants to feed the elephants, giraffes, and hippos.
Class 2 wants to feed the monkeys, rhinos, and elephants.
Class 3 wants to feed the monkeys, deer, and sea lions.
Class 4 wants to feed the parrots, giraffes, and polar bears.
Class 5 wants to feed the sea lions, hippos, and polar bears.
If the zoo allows animals to be fed only once a day by one class of students, can the tour
be accomplished in two days? (Assume that each class will visit the zoo only on one day.) If
not, how many days will be required?