CSCI 2200 Foundations of Computer Science (FoCS) Homework 6 (document version 1.0) This homework is due by 11:59:59 PM on Friday, March 23, 2018.

Similar documents
Homework #5 Algorithms I Spring 2017

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

AMS /672: Graph Theory Homework Problems - Week V. Problems to be handed in on Wednesday, March 2: 6, 8, 9, 11, 12.

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

Number Theory and Graph Theory

MC302 GRAPH THEORY SOLUTIONS TO HOMEWORK #1 9/19/13 68 points + 6 extra credit points

Lecture 6: Graph Properties

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

Ma/CS 6b Class 5: Graph Connectivity

Assignment 4 Solutions of graph problems

IMO Training 2008: Graph Theory

Introduction to Graph Theory

Graph Algorithms (part 3 of CSC 282),

Homework 3 Solutions

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

HOMEWORK #4 SOLUTIONS - MATH (1) (a) Prove that the chromatic polynomial of any tree with s vertices is. k(k 1) s 1

The extendability of matchings in strongly regular graphs

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

2. CONNECTIVITY Connectivity

A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

HOMEWORK 4 SOLUTIONS. Solution: The Petersen graph contains a cycle of odd length as a subgraph. Hence,

UML CS Algorithms Qualifying Exam Fall, 2003 ALGORITHMS QUALIFYING EXAM

CSE 21 Spring 2016 Homework 5. Instructions

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Course Introduction / Review of Fundamentals of Graph Theory

The Structure and Properties of Clique Graphs of Regular Graphs

Mathematics Masters Examination

Problem set 2. Problem 1. Problem 2. Problem 3. CS261, Winter Instructor: Ashish Goel.

11.4 Bipartite Multigraphs

CSE 21 Spring 2016 Homework 5. Instructions

Abstract. A graph G is perfect if for every induced subgraph H of G, the chromatic number of H is equal to the size of the largest clique of H.

COMP260 Spring 2014 Notes: February 4th

Assignment 1 Introduction to Graph Theory CO342

CSCI 4210 Operating Systems CSCI 6140 Computer Operating Systems Homework 3 (document version 1.2) Multi-threading in C using Pthreads

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

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

Combinatorics Summary Sheet for Exam 1 Material 2019

context. (Similarly, we write ν for ν(g), etc. if there is no risk of confusion.) For a subset A V we write N G (A) = {v V ( w A)(v w)} (the set of

CMSC Honors Discrete Mathematics

Math 485, Graph Theory: Homework #3

by conservation of flow, hence the cancelation. Similarly, we have

Module 7. Independent sets, coverings. and matchings. Contents

Graph Algorithms (part 3 of CSC 282),

Modules. 6 Hamilton Graphs (4-8 lectures) Introduction Necessary conditions and sufficient conditions Exercises...

Let G = (V, E) be a graph. If u, v V, then u is adjacent to v if {u, v} E. We also use the notation u v to denote that u is adjacent to v.

1. The following graph is not Eulerian. Make it into an Eulerian graph by adding as few edges as possible.

Math 776 Graph Theory Lecture Note 1 Basic concepts

CS261: Problem Set #2

CSE 551 TEST 2 SOLUTIONS IN CLASS 03/27/18, 1 HOURS 15 MINUTES

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

Vertex coloring, chromatic number

Math 454 Final Exam, Fall 2005

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

Graph theory - solutions to problem set 1

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

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

Homework 1 (a and b) Convex Sets and Convex Functions

Vertex coloring, chromatic number

Theorem 3.1 (Berge) A matching M in G is maximum if and only if there is no M- augmenting path.

The Structure of Bull-Free Perfect Graphs

CS264: Homework #4. Due by midnight on Wednesday, October 22, 2014

Bipartite Roots of Graphs

An Introduction to Graph Theory

Chapter 6 GRAPH COLORING

Generalized Pebbling Number

HW1. Due: September 13, 2018

Final Exam Math 38 Graph Theory Spring 2017 Due on Friday, June 2, at 12:50 pm. Good Luck!!

Greedy algorithms is another useful way for solving optimization problems.

ASSIGNMENT 4 SOLUTIONS

CS446: Machine Learning Fall Problem Set 4. Handed Out: October 17, 2013 Due: October 31 th, w T x i w

On Two Short Proofs About List Coloring Graphs

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

San Jose State University College of Science Department of Computer Science CS151, Object-Oriented Design, Sections 1, 2, and 3, Spring 2018

A graph is a mathematical structure for representing relationships.

Dr. Amotz Bar-Noy s Compendium of Algorithms Problems. Problems, Hints, and Solutions

MAT 145: PROBLEM SET 6

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

CSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

Part II. Graph Theory. Year

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Definition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

1. Lecture notes on bipartite matching

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009

1 Minimal Examples and Extremal Problems

5 Matchings in Bipartite Graphs and Their Applications

Lecture 5: Graphs. Graphs! Euler Definitions: model. Fact! Euler Again!! Planar graphs. Euler Again!!!!

Solutions to relevant spring 2000 exam problems

Network flows and Menger s theorem

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

Triple Connected Domination Number of a Graph

Recitation 13. Minimum Spanning Trees Announcements. SegmentLab has been released, and is due Friday, November 17. It s worth 135 points.

This is not the chapter you re looking for [handwave]

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

Homework Assignment #3

5. Lecture notes on matroid intersection

Bounds on the k-domination Number of a Graph

Transcription:

CSCI 2200 Foundations of Computer Science (FoCS) Homework 6 (document version 1.0) Overview This homework is due by 11:59:59 PM on Friday, March 23, 2018. This homework is to be completed individually. Do not share your work with anyone else. You must type your solutions for this homework assignment, then generate a PDF. Handwritten assignments will not be graded. You are strongly encouraged to use LaTeX, in particular for mathematical symbols. references on the course website. See Upload your PDF to Submitty; note there is a 1MB limit for file size. Please be concise and to the point in your answers. Even if your solution is correct, if it is not well-written, you may lose points. You have five late days to use throughout the semester. You may use at most three late days on this assignment. Please start your homework early and ask questions at office hours and your recitation section. Also ask (and answer) questions on Piazza. You can use either the new textbook or the textbook from last semester (i.e., F17). Problems are listed below from the current textbook; if the problem was numbered differently in the F17 textbook, the F17 problem is listed in square brackets.

Warm-up Exercises (before Wednesday Recitation) 1. Problem 10.18(a) [or F17 Problem 10.14(a)]: (a) Compute the LCM for the pairs: (2, 3); (3, 5); (6, 8). 2. Problem 11.6 [or F17 Problem 11.5]: Is there a friend network with 7 friends, each of who know 3 friends? 3. Problem 11.17(a)-(b): Show the following facts of any graph with n vertices. (a) There are at least two vertices with the same degree. (b) It is always possible to partition the vertices into two sets so that for every vertex in one of the sets, at least half of its neighbors are in the other set. 4. Problem 11.21(a)-(c) [or F17 Problem 11.20(a)-(c)]: For a connected graph G, prove the following claims. (a) G has an Euler cycle if and only if every vertex has even degree. (b) G has an Euler path (not a cycle) if and only if all vertices but two have even degree. (c) One can transform G into a graph having an Euler cycle by adding at most one vertex and edges only from this new vertex to the other vertices. Similarly, one can get an Euler path. 5. Problem 11.33: A cut-vertex in a connected graph is a vertex whose removal results in the remaining graph being disconnected. Identify all the cut-vertices in the graph on the right. [See the textbook for the graph.] 6. Problem 12.38(a)-(d): Solve each problem for the graph on the right. [See the textbook for the graph.] (a) Clique: A set of pairwise adjacent vertices is a clique. Find a largest clique. (b) IndependentSet: A set of pairwise non-adjacent vertices is an independent set. Find a largest independent set. (c) VertexCover: A vertex cover is a set of vertices; every edge must have at least one endpoint in the vertex cover. Find a smallest vertex cover. (d) DominatingSet: Vertices form a dominating set if every other vertex has a neighbor in the dominating set. Find a smallest dominating set. If you find an efficient way to solve any of these problems on general graphs, instant fame awaits. 7. Problem 13.5: An exam has 4 t/f questions; 6 multiple choice questions with four choices each; and a long-answer question whose answer is an integer between 5 and 5 (inclusive). How many possible ways are there to answer the exam? 2

Recitation Exercises (before/during Wednesday Recitation) Note that there might not be time to cover all of these problems during recitation. 1. Problem 10.18(b) [or F17 Problem 10.14(b)]: (b) Compute gcd(12, 16), lcm(12, 16), gcd(12, 16) lcm(12, 16), 12 16. 2. Problem 11.13(a)-(b) [or F17 Problem 11.12(a)-(b)]: (a) What is the maximum number of edges a graph can have and not be connected? Prove it. (b) What is the minimum number of edges a graph can have and be connected? Prove it. 3. Problem 12.8: In a regular bipartite graph, every vertex has the same degree. Prove: (a) The number of left-vertices equals the number of right-vertices. (b) There is a matching that covers the left-vertices. [Hint: Hall s theorem.] 4. Problem 12.49 [or F17 Problem 12.50]: An independent set is maximal if you cannot increase its size by adding any other vertex. Prove that any maximal independent set is a dominating set. When is the complement of a maximal independent set also a dominating set? 5. Problem 13.11(a)-(c) [this problem is not in the F17 textbook]: 50 runners compete. How many possible outcomes are there when: (a) We care about the order of all finishers. (b) We are only interested in who gets gold, silver, and bronze. (c) We only care about who are in the top-10 finishers, who will qualify for the final. 6. Problem 13.22(a) [or F17 Problem 13.15(a)]: A US Social Security number has 9 digits. The first digit may be zero. (a) How many SS numbers are there? How many are even? How many have only even digits? 3

Homework Problems (to be handed in and graded) 1. [14 POINTS] Problem 9.47 [this problem is not in the F17 textbook]: A postage dispenser has 4 and 7 stamps. A customer will input n, the desired postage, and the machine should: (a) Determine if postage n can be dispensed (yes or no), and (b) If yes, give a way to dispense the postage: numbers n 4 and n 7 for which n = 4n 4 + 7n 7. Give an algorithm to solve (a) and (b) in O(1) compute-time. Assume basic operations take O(1) time on any inputs (+,,,,, ). (Note, dispensing the postage will take linear time.) 2. [16 POINTS] Problem 10.18(c) [or F17 Problem 10.14(c)]: (c) Prove that lcm(m, n) gcd(m, n) = mn. (i) Let m = k gcd(m, n) and n = k gcd(m, n). Prove lcm(m, n) kk gcd(m, n). (ii) Prove mn lcm(m, n) gcd(m, n), hence lcm(m, n) gcd(m, n) mn. [Hint: Bezout.] (iii) Use (i) and (ii) to prove lcm(m, n) = kk gcd(m, n) and lcm(m, n) gcd(m, n) = mn. 3. [14 POINTS] Problem 11.17(c)-(d): Show the following facts of any graph with n vertices. (c) If every vertex has degree at least δ 2, there is a cycle of length at least δ + 1. (d) If every vertex has degree at least n/2, the graph is connected. 4. [10 POINTS] Problem 11.37: Similar to a cut-vertex, an edge e is a cut-edge in G if the removal of e disconnects G. Prove that e is a cut-edge if and only if it is not on any cycle of G. 5. [10 POINTS] Problem 12.13 [or F17 Problem 12.11]: The n jobs J 1,..., J n must be performed on m servers S 1,..., S m. Each server S i has the capacity to do l i 0 jobs. Each job can be done on some subset of the server. Give necessary and sufficient conditions for being able to do all the jobs. 6. [10 POINTS] Problem 12.54 [or F17 Problem 12.50]: For a graph G with n vertices, α(g) is the maximum size of an independent set and χ(g) is the minimum number of colors needed to color G. Prove χ(g) n/α(g). 7. [10 POINTS] Problem 13.21 [or F17 Problem 13.14]: US dollar bills have 8-digit serial numbers, e.g., 62655681. A bill is defective if a digit repeats. What fraction of bills are defective? [Hint: Count the non-defective bills.] 8. [16 POINTS] Problem 13.22(b)-(c) [or F17 Problem 13.15(b)-(c)]: A US Social Security number has 9 digits. The first digit may be zero. (b) How many are palindromes (e.g., 342151243)? (c) How many have no 8? How many have at least one 8? How many have exactly one 8? 4

Submission Instructions To submit your assignment your code, as noted on page 1, please generate a PDF of typewritten work, then submit the PDF via Submitty, the homework submission server. The specific URL is on the course website. Be sure you submit only your PDF file. And only submit solutions to problems posed in the Homework Problems section above. 5