Student Name and ID Number. MATH 3012 Final Exam, December 11, 2014, WTT

Similar documents
1. Consider the 62-element set X consisting of the twenty-six letters (case sensitive) of the English

FINAL EXAM SOLUTIONS. 1. Consider the 9-element set X consisting of the five letters {a, b, c, d, e} and the four digits

1. Let n and m be positive integers with n m. a. Write the inclusion/exclusion formula for the number S(n, m) of surjections from {1, 2,...

Student Name and ID Number. MATH 3012, Quiz 3, April 16, 2018, WTT

13 Interval Orders and Interval Graphs

MATH 363 Final Wednesday, April 28. Final exam. You may use lemmas and theorems that were proven in class and on assignments unless stated otherwise.

4. (a) Draw the Petersen graph. (b) Use Kuratowski s teorem to prove that the Petersen graph is non-planar.

Topic 10 Part 2 [474 marks]

Graph and Digraph Glossary

CS6702 GRAPH THEORY AND APPLICATIONS QUESTION BANK

ASSIGNMENT 4 SOLUTIONS

STUDENT NUMBER: MATH Final Exam. Lakehead University. April 13, Dr. Adam Van Tuyl

BHARATHIDASAN ENGINEERING COLLEGE NATTARAMPALLI Department of Science and Humanities CS6702-GRAPH THEORY AND APPLICATION

Combinatorics Summary Sheet for Exam 1 Material 2019

Introductory Combinatorics

Department of Computer Applications. MCA 312: Design and Analysis of Algorithms. [Part I : Medium Answer Type Questions] UNIT I

Math 485, Graph Theory: Homework #3

Discrete mathematics , Fall Instructor: prof. János Pach

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MH 1301 DISCRETE MATHEMATICS TIME ALLOWED: 2 HOURS

Answers to specimen paper questions. Most of the answers below go into rather more detail than is really needed. Please let me know of any mistakes.

Notation Index. Probability notation. (there exists) (such that) Fn-4 B n (Bell numbers) CL-27 s t (equivalence relation) GT-5.

Graph Algorithms (part 3 of CSC 282),

r=1 The Binomial Theorem. 4 MA095/98G Revision

UNIVERSITY OF MANITOBA. SIGNATURE: (in ink) (I understand that cheating is a serious offense)

Module 2: NETWORKS AND DECISION MATHEMATICS

Combinatorics Qualifying Exam August, 2016

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks

Graph Algorithms (part 3 of CSC 282),

Notation Index 9 (there exists) Fn-4 8 (for all) Fn-4 3 (such that) Fn-4 B n (Bell numbers) CL-25 s ο t (equivalence relation) GT-4 n k (binomial coef

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

CS388C: Combinatorics and Graph Theory

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Problem 1. Which of the following is true of functions =100 +log and = + log? Problem 2. Which of the following is true of functions = 2 and =3?

Homework 5: Graphs, Minimum Spanning Trees, and Dijkstra Shortest-Path

Key Graph Theory Theorems

Simple graph Complete graph K 7. Non- connected graph

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow

Assignment 1 Introduction to Graph Theory CO342

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

MAS341 Graph Theory 2015 exam solutions

Final Exam May 6, 2015

5105 BHARATHIDASAN ENGINEERING COLLEGE

Math Summer 2012

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV

Graphs. Pseudograph: multiple edges and loops allowed

COMP 251 Winter 2017 Online quizzes with answers

Assignment 4 Solutions of graph problems

DESIGN AND ANALYSIS OF ALGORITHMS

An Introduction to Graph Theory

Matching and Planarity

Math 100 Homework 4 B A C E

Chapter 1 Graph Theory

Artificial Intelligence

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

Chapter 9 Graph Algorithms

Network flows and Menger s theorem

Combinatorics MAP363 Sheet 1. Mark: /10. Name. Number. Hand in by 19th February. date marked: / /2007

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

Chapter 9 Graph Algorithms

Discrete mathematics II. - Graphs

Chapter 14. Graphs Pearson Addison-Wesley. All rights reserved 14 A-1

Discrete Math: Selected Homework Problems

2.) From the set {A, B, C, D, E, F, G, H}, produce all of the four character combinations. Be sure that they are in lexicographic order.

CLASS: II YEAR / IV SEMESTER CSE CS 6402-DESIGN AND ANALYSIS OF ALGORITHM UNIT I INTRODUCTION

Applied Combinatorics

4.1.2 Merge Sort Sorting Lower Bound Counting Sort Sorting in Practice Solving Problems by Sorting...

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Lecture 1: Examples, connectedness, paths and cycles

Part II. Graph Theory. Year

Final Exam May 8, 2018

Combinatorics: The Fine Art of Counting

Exercise set 2 Solutions

Graph Theory: Introduction

Practice Exam #3, Math 100, Professor Wilson. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Computational Discrete Mathematics

CMSC Honors Discrete Mathematics

CMSC Theory of Algorithms Second Midterm

Proposition 1. The edges of an even graph can be split (partitioned) into cycles, no two of which have an edge in common.


Problem Set 7 Solutions

Chapter 4. Relations & Graphs. 4.1 Relations. Exercises For each of the relations specified below:

Graph Theory. Part of Texas Counties.

About the Author. Dependency Chart. Chapter 1: Logic and Sets 1. Chapter 2: Relations and Functions, Boolean Algebra, and Circuit Design

Minimum-Spanning-Tree problem. Minimum Spanning Trees (Forests) Minimum-Spanning-Tree problem

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague December 16, CS1800 Discrete Structures Final

CS521 \ Notes for the Final Exam

MT365 Examination 2007 Part 1. Q1 (a) (b) (c) A

END-TERM EXAMINATION

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Multiple Choice. Write your answer to the LEFT of each problem. 3 points each

CIS 121 Data Structures and Algorithms Midterm 3 Review Solution Sketches Fall 2018

1. A busy airport has 1500 takeo s perday. Provetherearetwoplanesthatmusttake o within one minute of each other. This is from Bona Chapter 1 (1).

Fundamentals of Discrete Mathematical Structures

QUESTIONS 1 10 MAY BE DONE WITH A CALCULATOR QUESTIONS ARE TO BE DONE WITHOUT A CALCULATOR. Name

Math 776 Graph Theory Lecture Note 1 Basic concepts

n 2 ( ) ( ) Ο f ( n) ( ) Ω B. n logn Ο

Chapter 9 Graph Algorithms

Worksheet for the Final Exam - Part I. Graphs

11/22/2016. Chapter 9 Graph Algorithms. Introduction. Definitions. Definitions. Definitions. Definitions

Transcription:

MATH 3012 Final Exam, December 11, 2014, WTT Student Name and ID Number 1. Consider the 11-element set X consisting of the three capital letters {A, B, C} and the eight digits {0, 1, 2,..., 7}. a. How many strings of length 9 can be formed if repetition of symbols is not permitted? b. How many strings of length 9 can be formed if repetition of symbols is permitted? c. How many strings of length 9 can be formed using exactly three A s, four B s and two 7 s? d. How many strings of length 9 can be formed if exactly three characters are letters and exactly two of the remaining six characters are 5 s? Here, repetition is allowed. 2. How many integer valued solutions are there to the equation x 1 + x 2 + x 3 + x 4 + x 5 = 58 when: a. x i > 0 for i = 1, 2, 3, 4, 5. b. x i 0 for i = 1, 2, 3, 4, 5. c. x i > 0 for i = 1, 3, 5, x 2 > 7 and x 4 8. d. x i > 0 for i = 1, 2, 3, 4, 5 and x 2 7. 3 a. Use the Euclidean algorithm to find d = gcd(3465, 819). b. Use your work in the first part of this problem to find integers a and b so that d = 3465a+819b.

c. Using your previous work, factor 819 completely into a product of primes. You will need this answer later on this test. 4. For a positive integer n, let t n count the number of ternary strings of length n which do not contain a substring of the form: (1, 2, 0) (in consecutive positions). Note that t 1 = 3, t 2 = 9 and t 3 = 26. Develop a recurrence equation for t n and use it to compute t 4, t 5 and t 6. 5. Use the algorithm developed in class (always go to the least vertex adjacent via an unused edge) to find an Euler circuit in the graph G shown below. Use node 1 as root: 3 4 13 6 8 11 10 5 9 12 2 7 1

6. Consider the following graph. 3 4 13 6 8 11 10 5 12 9 2 7 1 a. Explain why {3, 4, 5} is a maximal clique. b. Find the maximum clique size ω(g) for this graph, and find a set of vertices that form a maximum clique. c. Show that χ(g) = ω(g) by providing a proper coloring of G. You may indicate your coloring by writing directly on the figure. d. Despite the fact that χ(g) = ω(g), the graph G is not perfect. Explain why. 7. Show that the graph G from the preceding problem is hamiltonian by providing an appropriate listing of the vertices, starting with 1, 10, 8 and ending with 1. 8. For the subset lattice 2 12, a. The total number of elements is: b. The total number of maximal chains is: c. The number of maximal chains through {2, 4, 6, 9} is: d. The width of 2 12 is:

9. For the poset P shown below, e c g l f b a h k j d m i a. List all elements comparable with a. b. List all elements covered by a. c. By inspection (not by algorithm), explain why this poset is not an interval order. d. Find the height h and a partition into h minimal elements by recursively stripping off the set of minimal elements. You may display your answer by writing directly on the diagram. Then darken a set of points that form a maximum chain. 10. The poset P shown below is an interval order: d a g c h f b e a. Find the down sets and the up sets. Then use these answers to find an interval representation of P that uses the least number of end points.

D(a) = D(b) = D(c) = D(d) = D(e) = D(f) = D(g) = D(h) = U(a) = U(b) = U(c) = U(d) = U(e) = U(f) = U(g) = U(h) = I(a) = I(b) = I(c) = I(d) = I(e) = I(f) = I(g) = I(h) = b. In the space below, draw the representation you have found. Then use the First Fit Coloring Algorithm for interval graphs to solve the Dilworth Problem for this poset, i.e., find the width w and a partition of P into w chains. You may display your answers by writing the colors directly on the intervals in the diagram. c. Find a maximum antichain in P : 1 2 3 4 5 6 7 11 a. Write all the partitions of the integer 7 into odd parts: b. Write all the partitions of the integer 7 into distinct parts:

12 a. Interpret the coefficient a n of x n in the following generating function in terms of partitions of an integer n: f(x) = (1 + x)(1 + x 3 )(1 + x 5 )(1 + x 7 )(1 + x 9 )... b. Then write all partitions of the integer 16 associated with the coefficient of x 16 for the function f(x) in part c. 13. Find the general solution to the advancement operator equation: A 3 (A + 5) 2 (A 3) 2 (A 7)(A 3)f = 0 14. Find the solution to the advancement operator equation: (A 2 6A + 9)f(n) = 0, f(0) = 8 and f(1) = 9. 15 a. Write the inclusion/exclusion formula for the number of onto functions from {1, 2,..., n} to {1, 2,..., m}.

b. Evaluate your formula when n = 6 and m = 4. 16. a. Write the inclusion/exclusion formula for the number of derangements on {1, 2,..., n}. b. Evaluate your formula when n = 6. 17. Previously, you factored 819 into a product of primes. Using this factorization, evaluate the euler φ-function φ(819). 18. Verify Euler s formula for the planar graph shown below.

19. Consider the following weighted graph: H E 32 C 31 99 35 30 92 85 A G 91 33 83 F 80 46 84 D B 82 In the space below, list in order the edges which make up a minimum weight spanning tree using, respectively Kruskal s Algorithm (avoid cycles) and Prim s Algorithm (build tree). For Prim, use vertex A as the root. Kruskal s Algorithm Prim s Algorithm 20. Consider a poset P whose ground set is X = {a, b, c, d, e, f, g, h, i, j}. Network flows (and the special case of bipartite matchings) are used to find the width w of P and a minimum chain partition. When the labelling algorithm halts, the following edges are matched: c g e a d c j b g h a. Find the chain partition of P that is associated with this matching. Also find the value of w. b. Explain why elements i and f belong to every maximum antichain in P.

21. A data file digraph data.txt has been read for a digraph whose vertex set is [7]. The weights on the directed edges are shown in the matrix below. The entry w(i, j) denotes the length of the edge from i to j. If there is no entry, then the edge is not present in the graph. Apply Dijkstra s algorithm to find the distance from vertex 1 to all other vertices in the graph. Also, for each x, find a shortest path from 1 to x. W 1 2 3 4 5 6 7 1 0 19 17 28 22 44 48 2 0 4 6 30 8 10 3 9 0 41 11 20 4 27 20 28 0 45 5 2 0 21 9 6 82 5 3 2 2 0 10 7 8 22 4 18 12 0

22. Consider the following network flow: S E 45, 45 16, 16 29, 21 33, 24 50, 38 D 15, 0 B 47, 47 C 48, 8 F 20, 13 18, 0 15, 15 89, 63 5, 5 A 10, 6 G 48, 13 2, 2 84, 84 T a. What is the current value of the flow? b. What is the capacity of the cut V = {S, B, C, D, E} {T, A, F, G}. c. Carry out the labeling algorithm, using the pseudo-alphabetic order on the vertices and list below the labels which will be given to the vertices. d. Use your work in part c to find an augmenting path and make the appropriate changes directly on the diagram. e. Carry out the labeling algorithm a second time on the updated flow. It should halt without the sink being labeled. f. Find a cut whose capacity is equal to the value of the updated flow.

23. True False. Mark in the left margin. 1. 2 100 > 100, 000, 000, 000, 000. 2. There is a planar graph G on 538 vertices with χ(g) = 7. 3. All graphs with 958 vertices and 4273 edges are non-planar. 4. There is a non-hamiltonian graph on 842 vertices in which every vertex has degree 462. 5. Every connected graph on 836 vertices in which every vertex has degree 98 has an Euler circuit. 6. The number of lattice paths from (7, 9) to (18, 14) is ( 25 23). 7. The number of spanning trees on {1, 2,..., n} is 2 n 2. 8. A cycle on 458 vertices is a homeomorph of the complete bipartite graph K 2,2. 9. The number of lattice paths from (0, 0) to (n, n) which do not pass through a point above the diagonal is the Catalan number ( 2n n ) /(n + 1). 10. Any modern computer can accept a file of 3, 000 positive integers, each at most 5, 000, and quickly determine whether 2, 647 is the sum of two integers in the file. 11. Any modern computer can accept a file of 3, 000 positive integers, each at most 5, 000, and quickly determine whether 475, 746 is the product of two integers in the file. 12. Any modern computer can accept a file of 3, 000 positive integers, each at most 5, 000, and quickly factor each of the numbers into primes. 13. There is a graph on 872 vertices in which no two vertices have the same degree. 14. There is a poset with 623 points having width 58 and height 9. 15. The permutation (9, 4, 1, 7, 5, 8, 2, 6, 3) is a derangement. 16. Linear programming problems with integer coefficient constraints always have integer valued solutions. 17. Every network flow problem is also a linear programming problem. 18. Every linear programming problem is also a network flow problem.