NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MH1301 DISCRETE MATHEMATICS. Time Allowed: 2 hours

Similar documents
Unless stated otherwise, explain your logic and write out complete sentences. No notes, books, calculators, or other electronic devices are permitted.

Problem Set 8 Solutions R Y G R R G

CONTENTS GRAPH THEORY

Math 1001: Excursions in Mathematics Final Exam: 9 May :30-4:30 p.m.

Final exam. Question Points Score. Total: 150

Decision Mathematics practice paper

SMS Dictionary. Solution hint. Input format. Output format. (Indian National Olympiad in Informatics, INOI, 2007)

@CRC Press. Discrete Mathematics. with Ducks. sarah-marie belcastro. let this be your watchword. serious mathematics treated with levity

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

MATHEMATICS 152, FALL 2004 METHODS OF DISCRETE MATHEMATICS Outline #10 (Sets and Probability)

Preface for Instructors and Other Teachers 1 About This Book... xvii

Olympiad Combinatorics. Pranav A. Sriram

Edge-disjoint tree representation of three tree degree sequences

9.5 Counting Subsets of a Set: Combinations. Answers for Test Yourself

1. Anthony and Bret have equal amounts of money. Each of them has at least 5 dollars. How much should Anthony give to Bret so that Bret has 10

CCO Commun. Comb. Optim.

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

CS103 Handout 25 Spring 2017 May 5, 2017 Problem Set 5

Decision Mathematics D1 Advanced/Advanced Subsidiary. Friday 17 May 2013 Morning Time: 1 hour 30 minutes

Faithful Representations of Graphs by Islands in the Extended Grid

Counting. Chapter 6. With Question/Answer Animations

Decision Mathematics D1

CSE 21 Practice Final Exam Winter 2016

Counting in Algorithms

Ideas beyond Number. Activity worksheets

Three of these grids share a property that the other three do not. Can you find such a property? + mod

Math 166: Topics in Contemporary Mathematics II

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

Western Australian Junior Mathematics Olympiad 2007

12. 6 jokes are minimal.

Common Mistakes. Quick sort. Only choosing one pivot per iteration. At each iteration, one pivot per sublist should be chosen.

Permutations and Combinations

The Richard Stockton College of New Jersey Mathematical Mayhem 2013 Group Round

Topics to be covered

Math 113-All Sections Final Exam May 6, 2013

CPCS 222 Discrete Structures I Counting

Week 1. 1 What Is Combinatorics?

Teacher s Notes. Problem of the Month: Courtney s Collection

CS 32 Puzzles, Games & Algorithms Fall 2013

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170

7.1 Solving Quadratic Equations by Graphing

ECS 20 (Spring 2013) Phillip Rogaway Lecture 1

Odd king tours on even chessboards

arxiv: v2 [cs.cc] 20 Nov 2018

6.042/18.062J Mathematics for Computer Science December 17, 2008 Tom Leighton and Marten van Dijk. Final Exam

Radio Labeling Cartesian Graph Products

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:

TILING RECTANGLES AND HALF STRIPS WITH CONGRUENT POLYOMINOES. Michael Reid. Brown University. February 23, 1996

5. Suppose the points of a scatterplot lie close to the line 3x + 2y = 6. The slope of this line is: A) 3. B) 2/3. C) 3/2. D) 3/2.

NOTES ON SEPT 13-18, 2012

Outline. Content The basics of counting The pigeonhole principle Reading Chapter 5 IRIS H.-R. JIANG

Name: Hoped-for Major:

Honors Precalculus Chapter 9 Summary Basic Combinatorics

Representing Square Numbers. Use materials to represent square numbers. A. Calculate the number of counters in this square array.

On uniquely k-determined permutations

Final Exam, Math 6105

Problem Set 4 Due: Wednesday, November 12th, 2014

UK JUNIOR MATHEMATICAL CHALLENGE May 6th 2011

6.1 Basics of counting

Lecture 20: Combinatorial Search (1997) Steven Skiena. skiena


Food for Thought. Robert Won

COUNTING TECHNIQUES. Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen

Generating indecomposable permutations

Quarter Turn Baxter Permutations

With Question/Answer Animations. Chapter 6

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

Reading 14 : Counting

Graph Theory: The Four Color Theorem

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

The Apprentices Tower of Hanoi

November 6, Chapter 8: Probability: The Mathematics of Chance

Discrete Mathematics and Probability Theory Spring 2018 Ayazifar and Rao Midterm 2 Solutions

Approximation Algorithms for Conflict-Free Vehicle Routing

Formulas for Primes. Eric Rowland Hofstra University. Eric Rowland Formulas for Primes / 27

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

arxiv:cs/ v2 [cs.cc] 27 Jul 2001

lecture notes September 2, Batcher s Algorithm

Problem Set 8 Solutions R Y G R R G

Analysis of Power Assignment in Radio Networks with Two Power Levels

Midterm 2 6:00-8:00pm, 16 April

The Pigeonhole Principle

Counting integral solutions

Assignment 2. Due: Monday Oct. 15, :59pm

Southeastern European Regional Programming Contest Bucharest, Romania Vinnytsya, Ukraine October 21, Problem A Concerts

Ideas beyond Number. Teacher s guide to Activity worksheets

Lower Bounds for the Number of Bends in Three-Dimensional Orthogonal Graph Drawings

Towards generalizing thrackles to arbitrary graphs

Latin Squares for Elementary and Middle Grades

Solutions to Problem Set 7

CMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall

Section continued: Counting poker hands

Block 1 - Sets and Basic Combinatorics. Main Topics in Block 1:

Checkpoint Questions Due Monday, October 7 at 2:15 PM Remaining Questions Due Friday, October 11 at 2:15 PM

The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n ways to do the first task and n

1999 Mathcounts National Sprint Round Solutions

FORTY-FOURTH ANNUAL MICHIGAN MATHEMATICS PRIZE COMPETITION. sponsored by The Michigan Section of the Mathematical Association of America.

Section Summary. Permutations Combinations Combinatorial Proofs

Transcription:

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION 206-207 DISCRETE MATHEMATICS May 207 Time Allowed: 2 hours INSTRUCTIONS TO CANDIDATES. This examination paper contains FOUR (4) questions and comprises FOUR (4) printed pages. 2. Answer all questions. The marks for each question are indicated at the beginning of each question. 3. Answer each question beginning on a FRESH page of the answer book. 4. This is a CLOSED-BOOK exam. 5. Candidates may use calculators. However, they should write down systematically the steps in the workings.

Question (30 marks) A card deck consists of 52 cards; each card has one of the 3 face values and one of the four suits,,,. The face values from smallest to largest are A 2 3 4 5 6 7 8 9 0 J Q K. In five-card poker, you are dealt a hand consisting of five different cards. The order of these five cards does not matter in a hand. (i) Count the number of hands in which all face values are at most 5. Solution: We need to count all 5-card hands out of the 5 4 = 20 cards with face values A up to 5 in all four suits. So the number of hands is C(20, 5). (ii) Count the number of hands in which the largest face value is 5. Solution: Let A be the set of hands in which the largest face value is 5. Let B be the set of hands in which all face values are at most 5. Let C be the set of hands in which all face values are at most 4. Then B is the disjoint union of A and C, so B = A + C. We already know from the previous question that B = C(20, 5). Similarly we have C = C(6, 5). Therefore A = B C = C(20, 5) C(6, 5) = 36. (iii) A hand is a three-of-a-kind if it has three cards of one face value, one card of another face value, and a fifth card of yet another face value, for example {8, 8, 8, A, 9 }. Count the number of three-of-a-kind hands. Solution: There are 3 choices for the face value of the triple, C(4, 3) choices for the suits in the triple (three suits out of a set of four). This leaves out C(2, 2) choices for the two face values of the two remaining cards, and 4 choices for each of their suits. This gives a total of possible three-of-a-kind hands. 3 C(4, 3) C(2, 2) 4 4 = 54, 92 2

Question 2 (45 marks) Answer each of the following questions (NO justification needed): (a) How many non-isomorphic simple undirected graphs with 4 vertices and 3 edges are there? (b) Can a simple graph with 6 vertices have degree sequence 2 3 3 5? If yes, draw such a graph. (c) What is the length of a longest simple circuit in K 6? (d) What is the chromatic number of K 6,6? (e) If G is a connected planar graph with 5 regions and 25 vertices, how many edges does the graph G have? (f) If G is a connected planar graph with 30 vertices, each of degree 3, then how many regions does the graph G have? (g) Give a recurrence relation for e n = the number of edges of graph K n. (h) Yes or no: Does every planar graph always contain an Euler path? (i) Yes or no: Does every planar graph always contain an Hamilton path? In questions (j) (o), the grid graph G m,n refers to the graph obtained by taking an m n rectangular grid of streets (m n) with m north/south blocks and n east/west blocks. For example: G,5 G 2,6 G 3,4 (j) Find a formula for the number of vertices of G m,n. (k) Find a formula for the number of edges of G m,n. (l) Find a formula for the number of regions (including the infinite region) of G m,n. (m) For which positive integers m and n does G m,n have an Euler circuit? 3

(n) For which positive integers m and n does G m,n have an Euler path but no Euler circuit? (o) Find the chromatic number of G m,n Solution: (a) 3 (b) No (c) 2 (d) 2 (e) 38 (f) 7 (g) e n = e n + n (h) No (i) No (j) (m + )(n + ) (k) n(m + ) + m(n + ) or 2mn + n + m (l) mn + (m) m = n = (n) m =, n = 2 (o) 2 4

Question 3 (5 marks) Find a minimal spanning tree for the following weighted graph. Indicate the name of the algorithm that you are using, and the order that the edges are added to the tree. a 6 4 3 b 9 c 4 d 5 6 7 e 2 3 4 3 f g h Solution: We can use Prim s algorithm. Starting from vertex a, we add the edges in the following order: {a, c} of weight 4. {c, b} of weight 3. {b, d} of weight. {c, e} of weight 5. {e, g} of weight 2. {g, h} of weight. {e, f} of weight 3. The total weight of the minimal spanning tree is 9. 5

a 4 3 b The tree looks like c 5 d e 3 f 2 g h Question 4 Let G = (V, E) be an undirected weighted graph, and let P be a shortest path from some vertex a to another vertex b. Suppose now that all the edge weights in G are increased by a constant number c. Is this path P still a shortest-path from a to b? If so, prove it. If not, then provide a counterexample. Solution: This statement is not true. A counterexample is shown as following: x y a b c 2 2 The shortest path from a to c is a x y c with total length 3. However, if we increase all the edge weights by a constant number c = 00, the shortest path from a to c becomes a b c with total length 02 + 02 = 204, while the a x y c path now has length (00 + ) 3 = 303. END OF PAPER 6