Docsity

Discrete Mathematics: Exercises and Problems, Slides of Discrete Mathematics

Partial preview of the text

Download Discrete Mathematics: Exercises and Problems and more Slides Discrete Mathematics in PDF only on Docsity!

Diana Davis Swarthmore, PA Fall 2018

The following is an approximate map of how the concepts in this course build on each other, starting with basic notions at the bottom and building in sophistication towards the top.

Discussion Skills

1. Contribute to the class every day

2. Speak to classmates, not to the instructor

3. Put up a difficult problem, even if not correct

4. Use other students’ names

5. Ask questions

6. Answer other students’ questions

7. Suggest an alternate solution method

8. Draw a picture

9. Connect to a similar problem

10. Summarize the discussion of a problem

First day - in class

DD (^) 1. Due to increasing hos-

tilities over the issues of divestment and hummus, Swarthmore has decided to split into Swarth Col- lege and More College. In dividing the land hold- ings of the College shown to the right, the Trustees wish to give both colleges the same amount of land, they want each college’s land to be a single piece, they want the pieces to each be as “compact” as possible, and they want the division to be “fair” and “logical” with respect to the Crum Creek, the Crum Woods, the build- ings, and the green space. Help them do so.

DD (^) 2. A 20-member student advisory group represents all of the students majoring in STEM

fields at Swarthmore. 39 students per year major in biology, 13 in chemistry, 70 in computer science, 40 in engineering, 41 in mathematics, 12 in physics, and 29 in special majors in science. How do you think the 20 seats in the group should be distributed to the departments?

PEA 3. A^ graph^ is a network of dots and lines. (a) What is the meaning of the graph shown at right? (b) What do the dots represent? (c) Why are some dots joined by segments and others are not?

October 2018 1 Diana Davis

FM (^) Talking about sets.

  • X ⊂ Y is read “X is a subset of Y ,” and means that every x in X is also in Y.
  • An equivalent notation to X ⊂ Y is X ⊆ Y. If one wants to specify that X 6 = Y , one can write X ( Y. Otherwise, X ⊂ Y allows for the possibility that X = Y.

FM (^) 5. Let S and A be as above, and let B = { 1 , 2 , 3 , 4 , 5 , 6 }. Which are true? Explain.

(a) A ⊂ B (b) B ⊂ S (c) S ⊂ B (d) { 3 } ⊂ A (e) 3 ⊂ B

PEA (^) 6. Show that it is possible to color a map of the United States using only four colors, so

that adjacent states do not receive the same color. For this you may wish to use the map at the beginning of this problem book, or the graph in Page 1 # 3, which represents the fifty states and their borders — two states (vertices) are joined when they share a border. Convention. When a problem is labeled (Continuation), it means that it retains everything about the previous problem, but is labeled as a separate problem for convenience.

PEA (^7). (Continuation) Is it possible to do the coloring job described in the preceding item with

only three colors? Either show how to do it, or prove (give a complete and convincing explanation) that it is impossible.

October 2018 2b Diana Davis

PEA (^) 1. When two vertices of a graph are joined by an edge, the vertices are called adjacent. A

graph in which every pair of vertices is adjacent is called a complete graph. (a) How many edges are needed for a 5-vertex graph to be complete? (b) How many edges are needed for a 24-vertex graph to be complete?

PEA (^) 2. A graph can be colored with n colors if each of its vertices can be assigned one of the

n colors in such a way that adjacent vertices are not assigned the same color. What does coloring a graph have to do with coloring a map?

PEA (^) 3. The smallest value of n for which a graph can be colored with

n colors is called its chromatic number. Find the chromatic number of the graph shown at right. Each vertex represents a student, and vertices are joined by an edge if the students do not get along. Why might you want to color this graph with a minimal number of colors? The Apportionment Problem In every method of apportioning the (currently 435) delegates in the House of Represen- tatives, the ideal quota for a state is calculated by the formula 435·(state population/total population). Because this is not likely to be an integer, it is necessary to either round up to the upper quota or round down to the lower quota to obtain a meaningful result. A method of apportionment must specify exactly how this rounding is to be done. The simplest method of apportionment was proposed in 1790 by Alexander Hamilton, and it is so intuitively appealing that you may have thought of it yourself already: Calculate each state’s share of the total number of available seats, based on population proportions, and round down to give each state as many seats as prescribed by the integer part of its ideal quota. Award the remaining seats to those states that have the largest fractional parts.

PEA (^) 4. Apply the Hamilton method to the following small, three-state examples, and determine

how many delegates to assign to each state. The names of the states are A, B, and C. (a) The populations are A = 453000, B = 442000, and C = 105000, with 100 delegates. (b) The populations are A = 453000, B = 442000, and C = 105000, with 101 delegates. (c) The populations are A = 647000, B = 247000, and C = 106000, with 100 delegates. (d) The populations are A = 650000, B = 255000, and C = 105000, with 101 delegates. (e) Discuss the interesting anomalies that arise in these examples. They are called the Alabama paradox (for historical reasons that we will see later) and the population paradox.

FM Working with sets.

  • The intersection X ∩ Y of two sets X and Y is the set of all elements that are in X and in Y : X ∩ Y = {x : x ∈ X and x ∈ Y }.
  • The union X ∪ Y of two sets X and Y is the set of all elements that are in X or in Y : X ∩ Y = {x : x ∈ X or x ∈ Y }.
  • The complement XC^ of a set X is the set of points not in X: XC^ = {x : x /∈ X}. For this to make sense, the “universal set” that X lives in must be understood.
  • The set X − Y , or X \ Y , is the set of all points in X that are not in Y.

October 2018 3a Diana Davis

DD 1. Use the Hamilton method (page 3) to assign the 20 advisory board seats from Page 1 # 2 to the STEM departments. How does this compare to the apportionment you suggested?

PEA (^) 2. What is the chromatic number of a complete graph (Page 3 # 1) that has

(a) 7 vertices? (b) n vertices?

PEA (^) 3. A connected graph has the property that any two of its vertices can be joined by a chain

of edges (also called a path), so that each edge in the chain has a vertex in common with the edge that follows. For example, the USA graph on page 1 is not connected. Give an example of a connected graph with twelve vertices that can be colored with only two colors.

RS (^) 4. Let X be a subset of a universal set U , and let X and Y be subsets of U. Simplify:

(a) (X ∪ Y ) ∩ (U − X) (b) X ∪ (Y ∩ XC^ ) (c) (X ∩ Y ) ∪ (X ∩ Y C^ )

FM Implication. There are many ways to say that one statement A implies another statement B. The following all mean exactly the same thing:

  • If A, then B.
  • A implies B (written A =⇒ B).
  • A only if B.
  • B is necessary for A.
  • B if A (written B ⇐= A).
  • not B implies not A. (This is the contrapositive.)

FM (^) 5. Let statement A be “the number n is divisible by four,” and let statement B be “the

number n is even.” Write out the six implications above, using these statements, as full and reasonable sentences in English (read them aloud to make sure). Considering this example, do you agree that they are all logically equivalent?

PEA (^) 6. A map-coloring algorithm, applied to the USA map: Color the states in alphabetical

order, always using the first available color. For instance, Alabama gets color number 1, as do Alaska, Arizona, and Arkansas. California gets color number 2, Colorado gets color number 1, and so on. How close does this algorithm come to doing the best possible job (using only four colors)?

PEA (^) 7. Compare the configuration formed by the states Nevada, California, Oregon, Idaho, Utah,

and Arizona with the configuration formed by the states West Virginia, Ohio, Pennsylvania, Maryland, Virginia, and Kentucky. What do they have in common?

PEA (^) 8. The valence of a vertex is the number of attached edges.

(a) What is the largest valence that occurs in the USA graph on page 1? (b) What is the smallest valence?

October 2018 4 Diana Davis

PEA Divisor Methods of Apportionment

According to the Hamilton method, quota-rounding decisions are made only after the entire list of quotas has been examined (and ranked in order of decreasing fractional parts). There are several other methods for apportionment, each one characterized by a rounding rule that is meant to be applied to individual states, without specific reference to the quotas of other states. These methods are described below. First, each state’s population is divided by an arbitrary district size, giving a fractional number of representatives for each state. This number is rounded up or down to give a whole number, according to which method (below) is in effect. Add up the whole numbers for each state, and see if you have hit your target number of representatives. If not, change the arbitrary district size that you used.

The Jefferson method : All adjusted quotas are rounded down. Because all the fractional parts are being discarded, the divisor must be smaller than the ideal district size (total population / number of representatives), if the target number of representatives (currently

  1. is to be hit exactly. This method, proposed by Thomas Jefferson, was approved by Washington and applied to the 1790 census, with a House size of 105 and a divisor of 33,000.

A significant amount of trial and error is necessary to carry out this divisor method (or any of the others). If the divisor is too small, the total number of assigned representatives will exceed 435; if the divisor is too large, the total will fall short of 435. For a project of this size (each trial divisor must be divided into all fifty state populations), it is desirable to use a computer to carry out the numerical work, perhaps with a spreadsheet.

The Adams method : Adjusted quotas are rounded up. An acceptable divisor must be larger than the ideal district size. This method was proposed by John Quincy Adams. It has never been adopted.

The Webster method : Adjusted quotas are rounded in the usual way — to the nearest whole number. This method was proposed in 1831 by Daniel Webster, and used in the 1840 census.

PEA (^) 1. Students at Pascal High School have a 25-member student council, which represents the

2000 members of the student body. The class-by-class sizes are: 581 Seniors, 506 Juniors, 486 Sophomores, and 427 Freshmen. Apportion the seats on the council using the: (a) Jefferson method, (b) Adams method, (c) Webster method. (d) What divisors did you end up using? Make a note of these three numbers. Hint: Use a spreadsheet to make calculations, especially finding a suitable divisor, quicker.

October 2018 5a Diana Davis

For the problems on apportionment, you may use the spreadsheet you received electronically. Alternatively, you are welcome to create your own tool to do apportionment calculations.

PEA (^) Every state gets a representative: This is mandated by the Constitution. Because the

Hamilton, Jefferson, and Webster methods do round down at least some of the time, their rounding rules must be amended to prohibit rounding down to zero. In the spreadsheet, this is done with the MAX command, e.g. MAX(ROUNDDOWN(population/quota,0),1). Here the ROUNDDOWN(population/quota,0) part implements the Jefferson method of rounding down (the 0 means we round with 0 decimal places) and the MAX([Jefferson],1) part means we take the maximum of: what the Jefferson method gave us, or 1.

PEA (^) 1. Apply the methods of Jefferson, Adams, and Webster to the 2010 USA census, and

compare the results with the Hamilton apportionment. You will need to use trial and error to find three acceptable divisors, of course. To compare apportionments side-by-side, copy the resulting column after each apportionment has been successfully completed, and then Paste > Paste Special... > Values. For each divisor method, make note of how its result differs from that of the Hamilton method.

PEA (^) 2. Repeat the preceding comparison for the 1790 USA census. There were only fifteen

states then, and the total number of representatives was 105. The method actually used was Jefferson’s. Rediscover his divisor.

PEA (^3). What is the chromatic number of the graph shown at right?

PEA (^) 4. The graph shown at right has been borrowed from the realm of

geometry. Can you identify the source of this diagram?

PEA (^) 5. The graph at right is called trivalent because every vertex has valence 3. Find some other

examples of trivalent graphs.

PEA (^) 6. Graphs provide a means of summarizing information. To add to the display, it is some-

times appropriate to label the edges of the network with meaningful numerical data. Give an example of how this might be done.

FM (^) Converse and logical equivalence. The converse of the statement “A implies B” is the

statement “B implies A.” If a statement and its converse are both true, we say A and B are logically equivalent, or in other words A ⇐⇒ B, or in other words “A if and only if B.”

FM (^) 7. Let statement A be “x is a Swarthmore student” and let statement B be “x is a human

being.” Write out (a) the implication A =⇒ B, (b) its contrapositive (Page 4 # 4), and (c) its converse. Which of these implications are true?

DD (^) 8. Repeat the preceding problem, this time using statements A and B that you make up.

October 2018 6a Diana Davis

RS (^) 9. For each figure below, write down symbolic notation for the shaded regions.

(a) (b) (c)

Useful sets.

  • The empty set ø, the set consisting of no elements.
  • The natural numbers N = { 1 , 2 , 3 ,.. .}. In Europe, N starts with 0.

RS (^) 10. Find infinitely many nonempty sets S 1 , S 2 ,... of natural numbers such that

N ⊃ S 1 ⊃ S 2 ⊃ S 3 · · ·

and so that the infinite intersection of all of the sets S 1 ∩ S 2 ∩ · · · is ø.

October 2018 6b Diana Davis

PEA 3. The^ edge-skeleton^ of a polyhedron is the graph that consists of the vertices and the edges of the polyhedron. Show that the edge-skeleton of a cube has chromatic number 2.

FM (^) True and false. An implication is true if B is true, or if A is false (in which case we say

that the implication is “vacuously true.”) For example, the statement “If 5 is even, then 15 is prime” is vacuously true. An implication is false only if A is true and B is false.

DD 4.^ Explain each of the following hilarious jokes by rewriting it as a vacuously true statement:

  • Every car I own is a Maserati.
  • Swarthmore Football, undefeated since 2001.

DD (^) 5. Write the contrapositive of each of the following implications. Hint: first write them in

the form A =⇒ B, then write the contrapositive, then translate back into everyday English. (a) The early bird gets the worm. (b) No good deed goes unpunished. (c) If it ain’t broke, don’t fix it. (d) People who live in glass houses shouldn’t throw stones.

PEA (^) 6. After each census, the number of representatives per state is re-calculated. Frequently, the

number of representatives is increased, so that the number of citizens represented by each one is not too big. The Hamilton method, which was used from 1850 to 1890, has the undesirable property that increasing the size of the House can cause a decrease in representation for some state. This became known as the Alabama Paradox when it appeared after the 1880 census, because representatives were not being assigned to Alabama in a monotonic fashion for House sizes between 298 and 302. This phenomenon had actually occurred in 1870 with Rhode Island, and it happened again in 1900 with both Colorado and Maine in fluctuation. A Congressional bill was proposed, which would have enlarged the House to from 356 to

  1. The resulting debate was bitter and partisan, leading Congress to scrap the Hamilton method in favor of the Webster method, with a House size of 386. This ended the controversy. Compare the Webster apportionment for House size 386 with the Hamilton apportionments for House sizes 356, 357, 358, 385, 386, and 387 and then explain what the fuss was about.

PEA 7. The current method of apportionment (used since the 1940 census) is the invention of two mathematicians, Edward Huntington and Joseph Hill. It is a divisor method, whose rounding rule is a bit mysterious. At first glance, one might think that the normal Webster rounding was in effect. To see that this is not the case, consider the 1990 census: Select the Huntington-Hill method, for which an acceptable divisor is 575, 000. Look at the adjusted quota entries for Oklahoma and Mississippi; how are they rounded?

PEA 8.^ Show that the^ geometric mean^ of two different positive numbers is always between the numbers, and is smaller than the arithmetic mean. In other words, explain why, if x and y are positive numbers with x < y, the inequality x <

xy < 12 (x + y) < y holds.

PEA (^9). If a graph is connected and has 12 vertices, what is the smallest number of edges it can

have? What if the graph is connected and has n vertices? Prove your answer correct.

PEA 10.^ A graph that is connected, with as few edges as its vertex count allows (see the previous problem), is called a tree. Prove that a tree cannot contain any circuits.

DD (^11). If in a group of n people, everyone shakes hands with everyone else exactly once, how

many total handshakes are there? Prove your answer correct.

October 2018 7b Diana Davis

DD 1. Every year in the spring, the Mathe- matics and Statistics department makes a department T-shirt. Every math ma- jor or minor who votes in the T-shirt con- test receives a free T-shirt. Each student ranks all of the designs (here, colors) in the order of their preference. Use the “instant runoff” method to determine what color the department shirt should be.

PEA (^) 2. You have seen that the Hamilton method of apportionment can produce the Alabama

Paradox, which is one of the reasons that this method fell into disuse during the nineteenth century. Perhaps the divisor methods (Jefferson, Adams, Webster) that have taken its place are susceptible to the same flaw, however. What do you think?

PEA (^) 3. What happens to the adjusted quota for a state when the trial divisor is made slightly

larger? when the trial divisor is made slightly smaller?

PEA (^) 4. Show that there are two inequivalent graphs that share the valence list 3, 3, 2, 2, 2.

PEA (^) 5. Is it possible for a tournament director to set up a schedule that has each of the nine

entered teams playing exactly five games against the others?

PEA (^) 6. Is the six-state system consisting of Illinois and its five neighbors equivalent to the six-

state system consisting of Nevada and its five neighbors?

PEA (^) 7. The Welsh-Powell algorithm for coloring a graph: Arrange the vertices of a graph by

valence, in non-increasing order, breaking ties randomly. Color the vertices in this order, always using the first available and allowable color. For example, when applied to the USA map, either Missouri or Tennessee gets color 1, the other gets color 2, Kentucky gets color 3, and so forth. Try out this algorithm on at least three simple graphs of your choice, to see whether it always gives a coloring with the smallest possible number of colors.

PEA 8.^ Let^ k^ be the largest valence in a graph. Prove that the chromatic number of this graph is at most k + 1. Note: Do not assume that the graph in question is a complete graph.

DD 9.^ Write the^ negation^ of each of the following statements.

The way I like to think about negation is that someone says the statement X, and then you say, “no, you’re wrong, [negation of X].” Another thing to keep in mind is that the negation of a generalization statement, as in part (a) below, is an existence statement, as in part (b) below, and the negation of an existence statement is a generalization. (a) Everyone in the class is named John. (b) Someone in the class is named Jane. (c) All elements of set S are even. (d) This graph has a vertex of valence more than 4.

FM (^) 10. Let S ⊂ N. Consider the statements:

A: All elements of S are even. (For all x ∈ S, x is even.) B: Some element of S is even. (There exists an x ∈ S such that x is even.) (a) Does B =⇒ A? (b) Does A =⇒ B?

October 2018 8 Diana Davis