Cart
Your cart is empty

Quantity:
0

Total:
0

Mathematics 11.

Table of contents
GRAPHS – points, edges, degree
We have seen such problems also earlier, when we denoted certain things by points and the relations between them by lines or possibly by arrows. Such figures help with understanding the long text during the solution of the following example.
Example 1
Four teams take part in the play-off of the football tournament: Timbertoes (\latex{ T }), Shortlegs (\latex{ S }), Goalkickers (\latex{ G }) and Offsiders (\latex{ O }). Every team plays against all the other teams once, but not all the matches have been played yet. Dan heard the following news about the recent results of the tournament:
The Timbertoes won against the Shortlegs, lost against the Goalkickers, and the result of one of their matches was a tie. There have been no more ties yet. Both the Shortlegs and the Goalkickers have the same number of wins as losses. There is a spectator ban at the last match of the Shortlegs.
Dan managed to get a ticket for the last match of the Offsiders that will give the final result of the tournament. Which team will the Offsiders play against then?
DÉNES KÕNIG
(\latex{ 1884–1944 }),
a Hungarian mathematician, who was the writer of the first scientific level book about graph theory.
Solution
Let us denote the teams by points. If a team wins against another team, then let us draw an arrow from this point pointing to the point corresponding to the loser team. A tie is denoted by a line connecting the points corresponding to the two teams.
Figure 7
\latex{ O }
\latex{ G }
\latex{ S }
\latex{ T }
The Timbertoes won against the Shortlegs and lost against the Goalkickers, thus the tie must have been the result against the Offsiders (Figure 7). As there have been no more ties yet, both the Shortlegs and the Goalkickers have won and lost one match each. Two cases are possible:
CASE I: The Shortlegs and the Goalkickers have not played against each other yet. In this case the Offsiders would already have played all their matches, however Dan is going to their last match, so this case is not possible. (Figure 8)
Figure 8
\latex{ O }
\latex{ G }
\latex{ T }
\latex{ S }
CASE II: The Shortlegs and the Goalkickers have played against each other, and the Shortlegs won. In this case the Offsiders have not played against the Shortlegs and the Goalkickers yet. As there is a spectator ban at the last match of the Shortlegs, Dan's ticket is for the final match between the Offsiders and the Goalkickers. (Figure 9)
Figure 9
\latex{ O }
\latex{ G }
\latex{ S }
\latex{ T }
Example 2
  1. Is it true that in a company of six there are always either three people who know each other mutually or three people who do not know each other mutually?
  2. What is the answer to the previous question in the case of a company of five?
Solution (a)
Every member of the company can have at most \latex{ 5 } acquaintances in the company. Let us choose one person from the company, let him be Albert (\latex{ A }).
Figure 10
\latex{ B }
\latex{ A }
\latex{ C }
\latex{ D }
Two cases are possible based on the pigeonhole principle.
CASE I: Albert knows at least \latex{ 3 } other people (for example Bruce, Chris and Dave).
If there are two among Bruce, Chris and Dave, who know each other, for example Bruce and Chris, then we found three people, who know each other mutually (\latex{ A,\, B,\, C }). (Figure 10)
Figure 11
\latex{ B }
\latex{ C }
\latex{ D }
\latex{ A }
If there are no two among Bruce, Chris and Dave, who would know each other, then they do not know each other mutually. (Figure 11)
CASE II: Albert does not know at least \latex{ 3 } other people (for example Bruce, Chris and Dave).
Figure 12
\latex{ D }
\latex{ B }
\latex{ C }
\latex{ A }
If there are two among Bruce, Chris and Dave, who do not know each other, for example Bruce and Chris, then we found three people, who do not know each other mutually (\latex{ A,\, B,\, C }). (Figure 12)
If there are no two among Bruce, Chris and Dave, who would not know each other, then they know each other mutually. (Figure 13)
Figure 13 
\latex{ B }
\latex{ D }
\latex{ C }
\latex{ A }
Solution (b)
In the case of a company of five it is possible that there are no three people, who know each other mutually and there are no three people, who do not know each other mutually.
Figure 14 shows such a possibility: the points mean the people, and the points corresponding to two people are connected, if the two people know each other.

Then every person of the company knows exactly two other people and does not know exactly two other people in the company.
Figure 14
\latex{ A }
\latex{ C }
\latex{ B }
\latex{ E }
\latex{ D }
⯁  ⯁  ⯁
During the solution of the example we used figures in which points were corresponding to the people, and if two people knew each other, then the points corresponding to them were connected. The connecting line could be a straight or a curved line, the only important thing was which two points were connected. This type of “figure” can be useful when solving other exercises too.
DEFINITION: A figure consisting of points and lines – connecting some (possibly all but it can also happen that none) of the point pairs that can be made of the points – is called a graph. The points are the points or vertices of the graph, the lines are the edges of the graph. (Figure 15)
Notations:
The set of the vertices (points) of the graph \latex{ G } is denoted by \latex{ V}(\latex{G }). (\latex{ V } comes from the word vertex.) The set of the edges of the graph \latex{ G } is denoted by \latex{ E }(\latex{ G })
. (\latex{ E } comes from the word edge.)
DEFINITION: The edge – the two end-points of which are the same – is called a loop. If we draw more than one edge between two points, then we get a multiple edge. A graph is called a simple graph if the set of its points and edges is finite and there is neither a loop nor a multiple edge in the graph. (Figure 15)
Figure 15
Now we generally deal with simple graphs. If for example a simple graph has five points, then it can have at most as many edges in as many ways we can choose two out of five,  i.e. \latex{\frac{5\times4}{2}}
graph, point, edge, loop, multiple edge, simple graph
Example 3
The board of directors of the Association of Flying Elephants has ten members. Some of them shook hands with the others when arriving to the meeting of the board of directors. The secretary asked every member of the association how many of the others they shook hands with.
  1. She noted down the following: \latex{ 3;\,4;\,7;\,6;\,9;\,5;\,8;\,7;\,4 }. The manager ragged the secretary for the inaccurate notes. How did he know these were inaccurate?
  2. Can the notes of the secretary be accurate if she noted down the following: \latex{ 2;\, 2;\, 1;\, 1;\, 1;\, 1;\, 1;\, 1;\, 1;\, 9 }?
  3. Can the notes of the secretary be accurate if she noted down the following: \latex{ 0;\,1;\, 2;\, 2;\, 3;\, 4;\, 4;\, 5;\, 6;\, 9 }?
  4. Can the notes of the secretary be accurate if she noted down the following: \latex{ 9;\,6;\,4;\,9;\,6;\,9;\,8;\,9;\,9;\,3 }?
Solution (a) 
Two people take part in a handshake; therefore two people count it to the number of their handshakes. So the sum of the number of handshakes noted down by the secretary should be the double of the number of hand shakes, therefore it cannot be odd. There are \latex{ 5 } odd numbers among the listed ones, therefore their sum is odd, and so the notes were incorrect.
In order for the handshakes to be achievable, it is necessary that the sum of the number of handshakes is even.
Figure 16
\latex{ 1 }
\latex{ 1 }
\latex{ 1 }
\latex{ 1 }
\latex{ 1 }
\latex{ 1 }
\latex{ 1 }
\latex{ 9 }
\latex{ 2 }
\latex{ 2 }
Solution (b)
It is possible, if the last person shook hands with everyone and the first and the second people shook hands with each other beside the last person. (Figure 16)
Solution (c) 
If someone said \latex{ 0 }, then this person did not shake hands with anyone, if someone said \latex{ 9 }, then this person shook hands with everyone. There cannot be two people like these in the same company, so there is an error in the notes; \latex{ 0 } and \latex{ 9 } cannot be listed simultaneously.
Solution (d) 
As this time there are \latex{ 6 } odd numbers, the sum of the number of hand shakes is even, so the necessary condition is satisfied. The handshakes are still not achievable, because there are \latex{ 5 } people, who shook hands with \latex{ 9 } other people, that is with everyone. So everyone in the company shook hands with these \latex{ 5 } people, thus there cannot be a person, who shook hands with less than \latex{ 5 } people.
In order for the handshakes to be achievable, it is necessary but not sufficient that the sum of the number of handshakes is even.
degree
DEFINITION: The degree (deg) of a point (vertex) of a graph is the number of edges incident with it. (Figure 17)
If there is no edge incident with a point, then this point is called an isolated point; its degree is \latex{ 0 }
.
\latex{ 1 }
\latex{ 3 }
\latex{ 3 }
\latex{ 3 }
\latex{ 2 }
\latex{ 0 }
Figure 17
THEOREM: The sum of the degrees of the points in every graph is twice the number of edges.
Proof
Every edge was counted to the sum of the degrees at both end-points; therefore the sum of the degrees is twice the number of edges.
Consequence:
The sum of the degrees of the points in every graph is an even number.
The numberof the points with odd degree in every graph is even
the sum of the degrees is even
Example 4
\latex{ 28 } participants of a school trip were asked how many of their classmates were there among the participants of the trip. The first \latex{ 15 } answers are the following: \latex{ 8 } students said \latex{ 5 }, two students said \latex{ 4 } and \latex{ 5 } students said \latex{ 3 }. What could be the missing \latex{ 13 } answers, if we know that everyone had a classmate at the trip?
Solution
\latex{ 6 } students participated from the class one student of which said that \latex{ 5 } of his classmates participated, and all of them said that \latex{ 5 } of their classmates participated.
\latex{ 5 } students participated from the class one student of which said that \latex{ 4 } of his classmates participated, and all of them said that \latex{ 4 } of their classmates participated.
\latex{ 4 } students participated from the class one student of which said that \latex{ 3 } of his classmates participated, and all of them said that \latex{ 3 } of their classmates participated.
The points of the graphs representing the example are the participants. These are connected if they are classmates, thus all the possible edges are drawn between the students of one class.
The students, whose answer we know, are denoted by filled circles, and those, whose answers are missing, are denoted by empty circles. (Figure 18)
Figure 18
\latex{ a })
\latex{ b })
\latex{ d })
\latex{ c })
It can also be seen in Figure (a) that there are two classes \latex{ 6 } students of which participated. We know \latex{ 8 } answers, so \latex{ 4 } students of those with the missing answers said \latex{ 5 }. There is one class with \latex{ 5 } participants (b), the \latex{ 3 } missing answers are: \latex{ 4 }. There are two classes with \latex{ 4 } participants (c), the \latex{ 3 } missing answers are: \latex{ 3 }. \latex{ 3 } students remain (d). If all three of them came from different classes, or two of them came from one class and one of them from another class, then it would not be possible that everyone had a classmate among the participants. So the three of them came from one class; all three of them said \latex{ 2 }.
Thus the missing \latex{ 13 } answers are: \latex{ 4 } students said \latex{ 5 }, \latex{ 3 } students said \latex{ 4 }, \latex{ 3 } students said \latex{ 3 } and \latex{ 3 } students said \latex{ 2 }.
DEFINITION: A simple graph is called a complete graph, if any two of its points are connected by an edge. (The graph consisting of a single isolated point is also a complete graph.) (Figure 19)
Figure 17
THEOREM: The numberof the edges of a complete graph with \latex{ n } points is: 
complete graph
Proof
As there is an edge between any two points, the number of the edges is as many in as many ways we can choose two points out of n so that the order of choice does not matter. And it is  \latex{\frac{n\times (n-1)}{2} = \dbinom{n}{2}.}
⯁  ⯁  ⯁
The representation with graphs might also help with solving logic exercises.
Example 5
Exactly two boys out of six stole apples, but who? The statements are the following:
Hugo: Chris and Gabriel are the culprits.
John: Denis and Thomas are the guilty ones.
Denis: Thomas and Chris did it.
Gabriel: Hugo and Chris are the thieves.
Chris: Denis and John committed it.
One of the guilty ones was named correctly in four of the statements, but the other person was named incorrectly. Both of the boys named in the fifth– not in order – statement are innocent. Who stole the apples?
Solution 
Let us take a graph the points of which denote the suspects, and those are connected with an edge, who are named in the same statement. (Figure 20)
Thus one of the end-points of every edge – except for one – is a thief, the other one is not, and none of the end-points of the remaining edge are thieves. It means that the total degree of the two points representing the thieves is \latex{ 4: 1 } from each of the four statements and \latex{ 0 } from the fifth one. As none of the statements names two thieves, the points corresponding to the thieves are not connected with an edge.

The two points with degree \latex{ 2 } are connected with an edge, thus the total degree of \latex{ 4 } is only possible if one of the points is the one with degree three, and we have to choose a point with degree one for this. \latex{ C } is the point with degree three, it is not connected only with the point \latex{ J } out of the points with degree one. So the two thieves are Chris and John.
Figure 20
\latex{ G }(\latex{ 1 })
\latex{ J }(\latex{ 1 })
\latex{ D }(\latex{ 2 })
\latex{ T }(\latex{ 2 })
\latex{ H }(\latex{ 1 })
\latex{ C }(\latex{ 3 })
Example 6
Three missionaries and three cannibals want to cross the river from the right bank to the left bank with a boat, in which two people can sit in. If there are more cannibals than missionaries on any of the banks, then the cannibals eat the missionaries there. Can all six of them cross the river safely? If yes, then how shall they do it with the least number of crossings? (If the boat lands on one of the banks, then everyone gets out before the boat turns back.)
Solution 
Let us represent the solution with graphs. Let us mark the possible arrangements on the right bank in a \latex{4\times4} table, if the number of the cannibals is represented horizontally and the number of the missionaries is represented vertically. Only \latex{ 10 } arrangements are acceptable out of the \latex{ 16 } possible ones, as otherwise there were more cannibals than missionaries on one of the banks. Then we connect the possible arrangements according to that at most two people can fit in the boat, thus only certain points can be reached from every point. (Figure 21)
Let us try to find a route in this graph that can pass through a point several times, under the following circumstances:
  1. The starting point of the route is the top right corne \latex{(m=c=3)}, its end-point is the bottom left corner  \latex{(m=c=0)} 
  2. Crossing from the right bank to the left bank means stepping downwards or to the left on the graph, crossing from the left bank to the right bank means stepping upwards or to the right on the graph, thus these can follow each other in the route only in turns.
Four directed routes meet these conditions all of which consist of \latex{ 11 } steps. The first two and the last two steps can be performed in two different ways each, the steps in between are the same in each case. (Figure 22)
Figure 21
\latex{ 0 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ c }
\latex{ 0 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ m }
Figure 22
\latex{ 0 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ c }
\latex{ 0 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ c }
\latex{ 0 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ c }
\latex{ 0 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ c }
\latex{ 3 }
\latex{ 3 }
\latex{ 3 }
\latex{ 3 }
\latex{ 2 }
\latex{ 1 }
\latex{ 0 }
\latex{ 2 }
\latex{ 2 }
\latex{ 2 }
\latex{ 1 }
\latex{ 1 }
\latex{ 1 }
\latex{ 0 }
\latex{ 0 }
\latex{ 0 }
\latex{ m }
\latex{ m }
\latex{ m }
\latex{ m }
The first solution written down with text is the following:
\latex{ 2 } cannibals cross the river, \latex{ 1 } takes the boat back, again \latex{ 2 } cannibals cross the river, \latex{ 1 } takes the boat back, gets out and now \latex{ 2 } missionaries cross the river. \latex{ 1 } missionary and \latex{ 1 } cannibal row back, then again \latex{ 2 } missionaries cross the river. \latex{ 1 } cannibal goes back, \latex{ 2 } cannibals row across, they do it once more, and thus all six of them will have crossed the river by meeting the conditions.
The advantage of the graph based solution is that we have a better overview of the possibilities; the example cannot be solved in fewer steps than these, and these are all the possible solutions.
DEFINITION: The figure consisting of points and directed lines connecting point pairs is called a directed graph. Its edges are called directed edges.
directed graph
Example 7
We can set up a one-to-one correspondence between the directed graphs and the pictures divided into cells similarly to the monitors as follows: We number the rows and columns of the cells starting with \latex{ 1 } and with an increment of one; these numbers will constitute the points of the graph. A directed edge leads from the point \latex{ x } of the graph to the point \latex{ y } if and only if there is a pixel in the \latex{ x }th row and in the yth column of the picture. Let us give the directed graph corresponding to the picture in Figure 23.
Solution
The solution can be seen in Figure 24.
Figure 23
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
\latex{ 6 }
\latex{ 7 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
\latex{ 6 }
\latex{ 7 }
Figure 24
\latex{ 6 }
\latex{ 7 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
Exercises
{{exercise_number}}. Represent the countries of Europe as the points of a graph, and connect those that have a common overland border. Give the countries through which one can get from Hungary to the Netherlands. Find different routes. (Use a map.)
{{exercise_number}}. Is there a company of \latex{ 21 } in which everyone has \latex{ 7 } acquaintances, if the acquaintance is mutual?
{{exercise_number}}. Build a solid that only has regular triangles as faces, and the number of faces is:
  1. four
  1. five
  1. six
  1. seven
  1. eight
(The solid cannot have an edge that has a vertex different from the end-points.)
{{exercise_number}}. A ball is stitched together out of \latex{ 12 } black regular pentagons and some white regular hexagons. Each pentagon is adjacent to \latex{ 5 } hexagons, and each hexagon is adjacent to \latex{ 3 } pentagons and \latex{ 3 } hexagons. How many hexagons are there on the ball?
{{exercise_number}}. An employee of the Balu Airlines noted down the flights between Budapest, London, Paris, Amsterdam and Munich. Draw the flights between these cities if the notes are the following:
  1. Three flights take off from Budapest, one from London, and two from the other cities each.
  1. Four flights take off from Budapest, from London and from Paris each, and two from the other cities each.
  1. Four flights take off from Budapest, from London and from Paris each, and two from the other cities each.
{{exercise_number}}. At the time of the twenty-seventh dynasty, when flying carpets were general means of transport, \latex{ 7 } flying carpet paths connected the capital with the other towns of the empire. Exactly \latex{ 4 } flight routes started from all the other towns, except for the town of Faraway from which only route started. Show that we can get from Faraway (probably through other towns) to the capital on a flying carpet.
{{exercise_number}}.
  1. Prove that there are two points with equal degrees in every simple graph with \latex{ 6 } points.
  2. Prove that there are two points with equal degrees in every simple graph with \latex{ n } points.
{{exercise_number}}. \latex{ 35 } children took part in a trip. I asked everyone how many of their classmates were there among the participants. I reveal the first \latex{ 22 } answers: \latex{ 8 } children said \latex{ 6 }, \latex{ 7 } children said \latex{ 4 }, \latex{ 5 } children said \latex{ 3 } and \latex{ 2 } children said \latex{ 2 }. What can the missing \latex{ 13 } answers be?
{{exercise_number}}. The following can be read in a writing about an adventure (the sentences are numbered so that it is easier to refer to them later):
  1. No animal can feel itself well-armed, if it does not have a horn.
  1. Every bull can feel itself well-armed.
  1. Those animals, which cannot play the violin, are sympathetic.
  1. Except for the bulls every animal is allowed to go into the china shop.
  1. Those animals, which cannot play the violin, are sympathetic.
  1. The animals, which have a horn, do not deserve any sympathy.
Does it imply that the big games are allowed to go into the china shop?
{{exercise_number}}. After a school ball the council of students con ducted a survey about the number of boys the girls danced with and about the number of girls the boys danced with in pairs. They calculated an average for each year, and the following diagram was obtained: What can you say based on the diagram?
number of dance partners
boys
girls
class
\latex{ 4.3 }
\latex{ 8.4 }
\latex{ 5.1 }
\latex{ 9 }
\latex{ 4.7 }
\latex{ 9.1 }
\latex{ 3.9 }
\latex{ 7.3 }
\latex{ 9. }
\latex{ 10. }
\latex{ 11. }
\latex{ 12. }
{{exercise_number}}. We colour the edges of a complete graph with six points red or blue. Show that there are two triangles for sure that are coloured in the same way.
{{exercise_number}}. We colour the edges of a complete graph with five points red or blue so that there is no unicoloured triangle in the graph. Show that
  1. two red and two blue edges start from each point;
  1. every point of the graph can be strung on a unicoloured closed chain.
{{exercise_number}}. There is a correspondence between \latex{ 17 } scientists. They correspond about a total of three topics, and if we ask any two of them, they correspond with each other and always about the same topic. Show that there are at least three scientists among them for sure so that if we choose any two of these they correspond with each other about the same topic.
{{exercise_number}}. Four missionaries and four cannibals want to cross the river from the right bank to the left bank with a boat, in which two people can sit in. If there are more cannibals than missionaries on any of the banks, then the cannibals eat the missionaries there. Can all \latex{ 8 } of them cross the river safely? If yes, then how shall they do it with the least number of crossings? (If the boat lands on one of the banks, then everyone gets out before the boat turns back.)
{{exercise_number}}. Consider the previous exercise, but this time four missionaries and four cannibals want to cross the river with a boat for four. (Watch out, there cannot be more cannibals than missionaries in the boat either.)
{{exercise_number}}. Four boys: Alistair, Bernard, Chris and Dave, and four girls: Erna, Florence, Grace and Hanna are classmates. Every boy is in love with a girl, and every girl is in love with a boy, and there is someone in love with everyone. Still there is no pair whose members are in love with each other. Alistair is in love with the girl, who is in love with the boy, who is in love with Erna. The girl, who Bernard is in love with, is in love with the boy, who is in love with Florence. Chris is in love with the girl, who is in love with Dave. Bernard is not in love with Grace, and the boy, who Hanna is in love with, is not in love with Grace. If Hanna is not in love with Alistair, then who is Alistair in love with? 
{{exercise_number}}. Based on the correspondence described in example \latex{ 7 } give
  1. the directed graph corresponding to the image shown in Figure a).
  1. the image corresponding to the directed graph shown in Figure b).
  1. the directed graph corresponding to the image shown in Figure c).
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
\latex{ 6 }
\latex{ 7 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
\latex{ 6 }
\latex{ 7 }
\latex{ 7 }
\latex{ 8 }
\latex{ 9 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
\latex{ 6 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
\latex{ 6 }
\latex{ 7 }
\latex{ 1 }
\latex{ 2 }
\latex{ 3 }
\latex{ 4 }
\latex{ 5 }
\latex{ 6 }
\latex{ 7 }
\latex{ b })
\latex{ c })
\latex{ a })
Game
Two people play the following game. Initially \latex{ 3 } points are given; these are the nodes of a network. The \latex{ 1 }st player draws an arc between two points, and places a new point on the arc. The next player does the same by taking care that the arcs intersect neither each other nor themselves. As soon as \latex{ 3 } edges start from a node, it should be encircled and bowled out of the game. We are allowed to draw an edge at the starting points, the starting point and the end-point of which are the same, however a new point should be placed also on this. The loser of the game is, who cannot draw any more edges as first.
For example these could be the first two steps:
\latex{ A }
\latex{ B }
\latex{ C }
For example with this arrangement the game is over:
\latex{ B }
\latex{ Y }
\latex{ C }
\latex{ A }
\latex{ X }
The following questions can be asked:
  1. Why does the game always have an end? Can it be said how many steps there can be in a game maximum?
  2. Start the game with \latex{ 4 } or \latex{ 5 } points.
  3. What does change if maximum \latex{ 4 } edges can start from a point?