Discrete Mathematics EXERCISES Lecture 11 Dr.-Ing. Erwin Sitompul

Slides:



Advertisements
Similar presentations
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross By Herbert I. Gross and Richard A. Medeiros next Set 9.
Advertisements

Discrete Mathematics 3. MATRICES, RELATIONS, AND FUNCTIONS Lecture 5 Dr.-Ing. Erwin Sitompul
Discrete Mathematics Dr.-Ing. Erwin Sitompul
Discrete Mathematics 6. GRAPHS Lecture 10 Dr.-Ing. Erwin Sitompul
1 Matching Polytope x1 x2 x3 Lecture 12: Feb 22 x1 x2 x3.
Relations Relations on a Set. Properties of Relations.
Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.
MCA 202: Discrete Mathematics under construction Instructor Neelima Gupta
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Recursively Defined Functions
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Discrete Mathematics Lecture # 16 Inverse of Relations.
CSE115/ENGR160 Discrete Mathematics 04/24/12 Ming-Hsuan Yang UC Merced 1.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Tucker, Applied Combinatorics, Section 1.4, prepared by Patti Bodkin
Discrete Mathematics Lecture#11.
MCA 520: Graph Theory Instructor Neelima Gupta
Chapter 4 Graphs.
Applied Discrete Mathematics Week 10: Equivalence Relations
Angie Rangel Jose De Jesus Melendez Carlos Aguilar Drake Jain DISCRETE MATHEMATICS MATH 170 PROJECT PART II.
Copyright © 2014, 2010 Pearson Education, Inc. Chapter 2 Polynomials and Rational Functions Copyright © 2014, 2010 Pearson Education, Inc.
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Mathematical Preliminaries
 To apply some rule and product rule in solving problems.  To apply the principles of counting in solving problems.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Discrete Mathematical Structures: Theory and Applications
Lecture 10: Graph-Path-Circuit
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Chapter Relations and Their Properties
Main Menu Main Menu (Click on the topics below) Combinatorics Introduction Equally likely Probability Formula Counting elements of a list Counting elements.
Counting Principles Multiplication rule Permutations Combinations.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
Chapter 9.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 6th ed., by Kenneth H.
Discrete Mathematics 4. NUMBER THEORY Lecture 7 Dr.-Ing. Erwin Sitompul
Combinatorics Ramsey theory.  a precocious British mathematician, philosopher and economist  a problem in mathematical logic: can one always find order.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Introduction to Graph Theory
2/25/2016Tucker, Sec Applied Combinatorics, 4 th Ed. Alan Tucker Section 2.2 Hamilton Circuits Prepared by: Nathan Rounds and David Miller.
1) Find and label the degree of each vertex in the graph.
CSCI 115 Course Review.
Discrete Mathematics 3. MATRICES, RELATIONS, AND FUNCTIONS Lecture 6 Dr.-Ing. Erwin Sitompul
English for Economic Informatics I Tomáš Foltýnek Theoretical Foundations of Informatics.
Relations and Graphs Relations and Graphs Sanjay Jain, Lecturer, School of Computing.
Module Code MA1032N: Logic Lecture for Week Autumn.
Relations and Their Properties
Review: Discrete Mathematics and Its Applications
Homework 8 Graph G is given by the figure below.
CSNB 143 Discrete Mathematical Structures
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
Discrete Structures – CNS2300
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 9 Relations Slides are adopted from.
Chapter 2 Sets Homework 3 Given U = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } as a set universe and the sets : A = { 1, 2, 3, 4, 5 }, B = { 4, 5, 6, 7 }, C = { 5,
Applied Combinatorics, 4th Ed. Alan Tucker
Chapter 4 Review Math Analysis
Lecture 15: Graph Theory II
Discrete Math II Howon Kim
Review: Discrete Mathematics and Its Applications
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
Discrete Mathematics Dr.-Ing. Erwin Sitompul
Lesson 3.1 Real Numbers pp
Discrete Mathematics Dr.-Ing. Erwin Sitompul
Presentation transcript:

Discrete Mathematics EXERCISES Lecture 11 Dr.-Ing. Erwin Sitompul

11/2 Erwin SitompulDiscrete Mathematics Homework 10, No.1 Take a look at the graphs (a), (b), and (c). Determine whether each graph is an Eulerian graph, semi- Eulerian graph, Hamiltonian graph, or semi-Hamiltonian graph. Give enough explanation to your answer.

11/3 Erwin SitompulDiscrete Mathematics Solution of Homework 10  There are two vertices of odd degree, the others are of even degree  Euler path.  Euler path must starts from one vertex of odd degree and finish at the other vertex of odd degree.  It can also be proven that graph (a) contains a Hamilton circuit.  All vertices have even degree  Euler circuit.  Graph (b) contains Hamilton path, i.e., from down left vertex to top left vertex, or the opposite way around.

11/4 Erwin SitompulDiscrete Mathematics Solution of Homework 10  There are more than two vertices of odd degree  graph (c) does not contain either Euler path or Euler circuit.  Graph (c) contains Hamilton circuit.

11/5 Erwin SitompulDiscrete Mathematics Homework 10, No.2 A department has six task forces. Every task force conducts a routine monthly meeting. The member of the six task forces are: TF 1 = {Amir, Budi, Yanti} TF 2 = {Budi, Hasan, Tommy} TF 3 = {Amir, Tommy, Yanti} TF 4 = {Hasan, Tommy, Yanti} TF 5 = {Amir, Budi} TF 6 = {Budi, Tommy, Yanti} (a) What is the minimum number of time slots that must be allocated so that everyone that belong to more than one task force can attend the meetings that he/she must join without any time conflict? (b)Draw the graph that represents this problem and explain what do a vertex and an edge represent.

11/6 Erwin SitompulDiscrete Mathematics Solution of Homework 10 TF 1 = { Amir, Budi, Yanti } TF 2 = { Budi, Hasan, Tommy } TF 3 = { Amir, Tommy, Yanti } TF 4 = { Hasan, Tommy, Yanti } TF 5 = { Amir, Budi } TF 6 = { Budi, Tommy, Yanti } AmirBudiYantiHasanTommy TF TF TF TF TF TF vertex  task force edge  someone is a member of two task forces at the same time

11/7 Erwin SitompulDiscrete Mathematics Exercise 1 Substitute the following switch circuit with a simpler equivalent circuit. Solution: The switch circuit above can be expressed by the following logical notation: (A  B’)  (A  B)  C (A  B’)  (A  B)  C= ((A  B’)  (A  B))  CAssociative Law = (A  (B’  B))  CDistributive Law = (A  T)  CNegation Law = A  CIdentity Law

11/8 Erwin SitompulDiscrete Mathematics Three best friends, Amir, Budi, and Cora are talking about the grades that Dudi got in the last semester. Amir says, “Dudi got at least four A’s.” Budi says, ”No, Dudi got less than four A’s.” “I think,” Cora says, “Dudi got at least 1 A” If only one of the three best friends said the truth, how many A’s did Dudi get? Exercise 2 Solution: If Amir said the truth, then Cora should also say the truth. If Cora said the truth, then Amir or Budi should say the truth also. Thus, only Budi said the truth while Amir and Cora did not say the truth (“Dudi got less than four A’s.”). The answer: Dudi did not got any A.

11/9 Erwin SitompulDiscrete Mathematics Prove that (X – Y) – Z = X – (Y  Z) Exercise 3 Solution: (X – Y) – Z= (X – Y)  Z’ Definition of Difference = X  Y’  Z’ Definition of Difference = X  (Y’  Z’) Associative Law = X  (Y  Z)’De Morgan’s Law = X – (Y  Z) Definition of Difference

11/10 Erwin SitompulDiscrete Mathematics Exercise 4 By using the Inclusion-Exclusion Principle, determine the number of positive integers ≤ 300 divisible by 2 or 3. Solution: Suppose U = Set of positive integers ≤ 300, A = Set of positive integers ≤ 300 divisible by 2, B = Set of positive integers ≤ 300 divisible by 3. Then A  B = Set of positive integers ≤ 300 divisible by 2 and 3, A  B = Set of positive integers ≤ 300 divisible by 2 or 3.  A  = 300/2 = 150  B  = 300/3 = 100  A  B  = 300/6 = 50  divisible by 2 and 3 ≡ divisible by 6  A  B  =  A  +  B  –  A  B  = – 50 = 200

11/11 Erwin SitompulDiscrete Mathematics Exercise 5 Determine whether the following relations are reflexive, transitive, symmetric, or anti-symetric: a)“The sister of” b)“The father of” c) “Having the same parents as” Solution : a)“The sister of” Not reflexive  One cannot be the sister of him/herself. Not transitive  If X is the sister of Y, and Y is the sister of Z, it does not mean that X is the sister of Z (counting step sister as a sister). Not symmetric  X is the sister of Y, Y does not have to be the sister of X, since Y can be the brother of X. Not anti-symmetric  It can occur that X is the sister of Y, and Y is the sister of X, while X ≠ Y.

11/12 Erwin SitompulDiscrete Mathematics Exercise 5 Solution : b)“The father of” Not reflexive  One cannot be the father of him/herself. Not transitive  If X is the father of Y, and Y is the father of Z, then X is the grandfather of Z. Not symmetric  If X is the father of Y, then it is impossible for Y to be the father of X. Anti-symmetric  No violation against the rule. Determine whether the following relations are reflexive, transitive, symmetric, or anti-symetric: a)“The sister of” b)“The father of” c) “Having the same parents as”

11/13 Erwin SitompulDiscrete Mathematics Exercise 5 Solution : c)“Having the same parents as” Reflexive  Although sounds strange, it is true. Transitive  If X R Y, and Y R Z, then X R Z. Symmetric  X R Y, then Y R X. Not anti-symmetric  X R Y, and Y R X, while X ≠ Y Determine whether the following relations are reflexive, transitive, symmetric, or anti-symetric: a)“The sister of” b)“The father of” c) “Having the same parents as”

11/14 Erwin SitompulDiscrete Mathematics Exercise 6 Prove that 89 and 55 are relatively prime. Solution : 89 = 1  (1) 55 = 1  (2) 34 = 1  (3) 21 = 1  (4) 13= 1  8 + 5(5) 8 = 1  5 + 3(6) 5= 1  3 + 2(7) 3= 1  2 + 1(8) 89 and 55 are relatively prime because their GCD(89,55) =1.

11/15 Erwin SitompulDiscrete Mathematics Exercise 7 Determine one pair of integers (u,v) which is the solution for 89u + 55v = 8. Solution : 89 = 1  (1) 55 = 1  (2) 34 = 1  (3) 21 = 1  (4) (4)  8= 21 – 1  13 (5) (3)  13= 34 – 1  21 (6) (6)  (5) 8= 21 – 1  (34 – 1  21) 8= 2  21 – 34 (7) (2)  21= 55 – 1  34 (8) (8)  (7) 8= 2  21 – 34 8= 2  (55 – 1  34) – 34 8= 2  55 – 3  34 (9)

11/16 Erwin SitompulDiscrete Mathematics Exercise 7 Solution : 89 = 1  (1) 55 = 1  (2) 34 = 1  (3) 21 = 1  (4) 8= 2  55 – 3  34 (9) (1)  34= 89 – 1  55 (10) (10)  (9) 8= 2  55 – 3  34 8= 2  55 – 3  (89 – 1  55) 8= 5  55 – 3  89 Thus, one possible pair of integers (u,v) as the solution of the linear combination is (–3,5). Determine one pair of integers (u,v) which is the solution for 89u + 55v = 8.

11/17 Erwin SitompulDiscrete Mathematics Exercise 8 The ISBN code of a printed book is ISBN-13: A0B2934. If B mod A = 2, determine A and B. Solution : Processing the first 12 numbers of the code: 9       3 + A   3 + B     3 = 70 + A + B. Including the check digit (the 13 th number): 70 + A + B + 4  0 (mod 10) 74 + A + B  0 (mod 10) A + B = {6,16,26,36,…} While B mod A = 2 Possible combinations for (A,B) are (3,5), (4,6), (5,7), (6,8), (7,9), and (3,8). The combination that fulfills the condition is: A = 7 and B = 9, where A + B = 16.

11/18 Erwin SitompulDiscrete Mathematics Exercise 9 The fixed-line phone numbers in one region consist of 8 digits. The first digit may not be 0 or 1. (a)How many possible phone numbers are there in the region? (b) How many phone numbers have no 0? (c) How many phone numbers have at least one 0? Solution: (a)8  10  10  10  10  10  10  10 = phone numbers. (b)8  9  9  9  9  9  9  9 = phone numbers. (c) Phone numbers with at least one 0 =Possible phone numbers – Phone numbers without any 0 = phone numbers.

11/19 Erwin SitompulDiscrete Mathematics Exercise 10 (a)Determine the number of ways a president can fill the position of Foreign Minister, Minister for Internal Affairs, Defense Minister, and Secretary of State, out of 45 candidates that he has?. (b) In how many ways can you choose 4 pails of wall paint out of 45 pails of wall paint, each with different colors? Solution: (a) (b)

11/20 Erwin SitompulDiscrete Mathematics Exercise 11 Persib Bandung conducts a preparation training center with 16 players for the next Indonesian Super League season. The players are requested to choose 5 people among them to become the member of team council for occasional negotiations with the management. (a)In how many ways can the players choose their team council? (b) If 7 of the 16 players are young and below 23 years old, in how many ways can the team council be elected if there are 2 young players in the council? Solution: (a) (b)

11/21 Erwin SitompulDiscrete Mathematics End of the Lecture