1 / 24

V 1

V 1. V 2. No edges between vertices in V 1 or V 2 This is a bipartite graph but not a complete bipartite graph ( so it is NOT K 6, 4 ). b. a. c. g. f. e. d. {a, b, d }, {c, e, f, g} K 3, 4. How many vertices and edges in K m, n ?. If a is in V1, then, b, d, e must be in V2 (why?)

nuri
Download Presentation

V 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. V1 V2 No edges between vertices in V1 or V2 This is a bipartite graph but not a complete bipartite graph ( so it is NOT K6, 4 ).

  2. b a c g f e d {a, b, d }, {c, e, f, g} K3, 4 How many vertices and edges in Km, n?

  3. If a is in V1, then, b, d, e must be in V2 (why?) Then, c is in V1 and there is no inconsistency. So we can rearrange the graph as follows:

  4. Theorem: A simple graph is bipartite if and only if it is possible to assign one of two different colors to each vertex of the graph so that no two adjacent vertices are assigned the same color.

  5. b a c f d e Is a bipartite graph?

  6. b a a c f d e

  7. b a c f d e Is a bipartite graph?

  8. b a c f d e

  9. b a c f d e Not a bipartite graph

  10. Application: Job Assignments Suppose that there are m employees in a group and j different jobs that need to be done, where m ≤ j. Each employee is trained to do one or more these jobs. Use a bipartite graph to model employee capabilities. John Mary Helen Brad Testing Implementation Architecture Requirements

  11. Matching A subset of edges such that no two edges are incident with the same vertex. A matching Not a matching

  12. Maximal matching is a matching with the largest number of edges. Maximal matching Not a maximal matching

  13. Job assignment: To assign jobs to employees so that the largest number of employees are assigned jobs, we seek a maximum matching in the graph that model employee capabilities. John Mary Helen Brad Testing Implementation Architecture Requirements

  14. 9.3 Representing Graphs Vertex Adjacent Vertices ------------------------------------------------ u1 u2, u5 u2 u1, u3, u4 u3 u2, u4 u4 u2, u3, u5 u5 u1, u2, u4 Adjacency list

  15. Adjacency Matrix Order the vertices in some way V1, V2, …., Vn , the adjacency matrix is an n-by-n matrix

  16. Vertices Edges

More Related