Chapter 10 Independence, Dominance, and Matchings

Slides:



Advertisements
Similar presentations
Graph Theory Chapter 9 Planar Graphs 大葉大學 資訊工程系 黃鈴玲.
Advertisements

1 生物計算期末作業 暨南大學資訊工程系 2003/05/13. 2 compare f1 f2  只比較兩個檔案 f1 與 f2 ,比完後將結果輸出。 compare directory  以兩兩比對的方式,比對一個目錄下所有檔案的相 似程度。  將相似度很高的檔案做成報表輸出,報表中至少要.
: Arrange the Numbers ★★★☆☆ 題組: Contest Archive with Online Judge 題號: 11481: Arrange the Numbers 解題者:李重儀 解題日期: 2008 年 9 月 13 日 題意: 將數列 {1,2,3, …,N}
布林代數的應用--- 全及項(最小項)和全或項(最大項)展開式
Section 1.2 Describing Distributions with Numbers 用數字描述分配.
Mar. 14, :Vito ’ s family ★☆☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10014:Vito’s family 解題者:劉淑惠、侯沛彣 解題日期: 2006 年 3 月 9 日 題意: Vito.
指導教授:陳淑媛 學生:李宗叡 李卿輔.  利用下列三種方法 (Edge Detection 、 Local Binary Pattern 、 Structured Local Edge Pattern) 來判斷是否為場景變換,以方便使用者來 找出所要的片段。
交易的動機. 討論:  為什麼人要進行交易? 討論:  試想像你走進一間唱片店,付了$100 給店主,買下你最喜愛歌手的最新唱片。  誰會得益 ?  誰又會有所損失?
1 Advanced Chemical Engineering Thermodynamics Appendix H Brief introduction to perturbation theory of dense fluid.
Graph V(G 1 )={0, 1, 2, 3, 4, 5, 6, 7, 8, 9} E(G 1 )={(0, 2), (0, 3), (1, 4), (2, 3), (2, 5), (2, 6), (3, 6), (3, 7), (4, 7), (5, 6), (5,
: ShellSort ★★☆☆☆ 題組: Problem D 題號: 10152: ShellSort 解題者:林一帆 解題日期: 2006 年 4 月 10 日 題意:烏龜王國的烏龜總是一隻一隻疊在一起。唯一改變烏龜位置 的方法為:一隻烏龜爬出他原來的位置,然後往上爬到最上方。給 你一堆烏龜原來排列的順序,以及我們想要的烏龜的排列順序,你.
STAT0_sampling Random Sampling  母體: Finite population & Infinity population  由一大小為 N 的有限母體中抽出一樣本數為 n 的樣 本,若每一樣本被抽出的機率是一樣的,這樣本稱 為隨機樣本 (random sample)
STAT0_corr1 二變數的相關性  變數之間的關係是統計研究上的一大目標  討論二分類變數的相關性,以列聯表來表示  討論二連續隨機變數時,可以作 x-y 散佈圖觀察它 們的關係強度  以相關係數來代表二者關係的強度.
平均值檢定 假設 檢定 One Sample 平均值 是否為 u. One Sample—1 工廠甲過去向 A 公司購買原料, 平均交貨日約為 4.94 日, 標準差 現在 A 公司改組, 甲工廠繼續向 A 公司 購買, 隨機抽取 8 次採購, 平均日數為 4.29 日, 請問 A 公.
: The Playboy Chimp ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10611: The Playboy Chimp 解題者:蔡昇宇 解題日期: 2010 年 2 月 28 日 題意:給一已排序的數列 S( 升冪.
長訊科技 EVRCOM Voice Mail System 使用者操作說明及流程. 自動總機 -- 來電語音轉接服務流程 ( 範例流程 )
: Abundance and Perfect Numbers ★★★★☆ 題組: Contest Volumes with Online Judge 題號: 10914: Abundance and Perfect Numbers 解題者:劉洙愷 解題日期: 2008 年 5 月 2.
: The largest Clique ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11324: The largest Clique 解題者:李重儀 解題日期: 2008 年 11 月 24 日 題意: 簡單來說,給你一個 directed.
3-3 使用幾何繪圖工具 Flash 的幾何繪圖工具包括線段工具 (Line Tool) 、橢圓形工具 (Oval Tool) 、多邊星形 工具 (Rectangle Tool) 3 種。這些工具畫出 來的幾何圖形包括了筆畫線條和填色區域, 將它們適當地組合加上有技巧地變形與配 色, 不但比鉛筆工具簡單,
: Happy Number ★ ? 題組: Problem Set Archive with Online Judge 題號: 10591: Happy Number 解題者:陳瀅文 解題日期: 2006 年 6 月 6 日 題意:判斷一個正整數 N 是否為 Happy Number.
Chapter 8 消費可能性 偏好 選擇 Part 3 家庭的選擇
7.1 背景介紹 7.2 多解析度擴展 7.3 一維小波轉換 7.4 快速小波轉換 7.5 二維小波轉換 7.6 小波封包
選舉制度、政府結構與政 黨體系 Cox (1997) Electoral institutions, cleavage strucuters, and the number of parties.
Fourier Series. Jean Baptiste Joseph Fourier (French)(1763~1830)
Johnson’s algorithm Johnson’s演算法可用於計算All pairs shortest path問題。
: Multisets and Sequences ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11023: Multisets and Sequences 解題者:葉貫中 解題日期: 2007 年 4 月 24 日 題意:在這個題目中,我們要定義.
: Placing Lampposts ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10859: Placing Lampposts 解題者:陳志瑜 解題日期: 2011 年 5 月 10 日 題意:美化為 Dhaka City.
資料結構實習-一 參數傳遞.
觀測量的權 權的觀念與計算.
公用品.  該物品的數量不會因一人的消費而受到 影響,它可以同時地被多人享用。 角色分配  兩位同學當我的助手,負責:  其餘各人是投資者,每人擁有 $100 , 可以投資在兩種資產上。  記錄  計算  協助同學討論.
: A-Sequence ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10930: A-Sequence 解題者:陳盈村 解題日期: 2008 年 5 月 30 日 題意: A-Sequence 需符合以下的條件, 1 ≤ a.
: GCD - Extreme II ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11426: GCD - Extreme II 解題者:蔡宗翰 解題日期: 2008 年 9 月 19 日 題意: 最多 20,000 組測資,題目會給一個數字.
演算法 8-1 最大數及最小數找法 8-2 排序 8-3 二元搜尋法.
: Automatic correction of misspellings ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11048: Automatic correction of misspellings 解題者:陳宜佐 解題日期:
: Ubiquitous Religions ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10583: Ubiquitous Religions 解題者:吳佳樺 解題日期: 2010 年 3 月 18 日 題意: 一開始給予兩個數字.
: Flip Sort ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10327: Flip Sort 解題者:歐子揚 解題日期: 2010 年 2 月 26 日 題意:在這個問題中使用一種排序方式 (Flip) ,意思就是 只能交換相鄰的.
845: Gas Station Numbers ★★★ 題組: Problem Set Archive with Online Judge 題號: 845: Gas Station Numbers. 解題者:張維珊 解題日期: 2006 年 2 月 題意: 將輸入的數字,經過重新排列組合或旋轉數字,得到比原先的數字大,
廣電新聞播報品質電腦化 評估系統之研發 國立政治大學 資訊科學系 指導教授:廖文宏 學生:蘇以暄.
Chapter 10 m-way 搜尋樹與B-Tree
ProblemH - Hyper Toy Soldiers 星級 : ??? 題組: Online-judge.uva.es PROBLEM SET Volume CIV 題號: Problem H - Hyper Toy Soldiers 解題者: 柯名澤 解題日期: 2006 年.
數據專線出租業務介紹 日. CONFIDENTIAL P:2 服務定義 Leased Line 服務可提供客戶點對點間之專屬電路, 客戶可利用此電路傳送語音及數據資料 市內 數據電路 市內 數據電路   可用於數據及語音之傳輸   專線所連接之兩端點皆位於同一話價區者稱之   可用於數據及語音之傳輸.
E XPLOITING R ANDOM F OREST TO P REDICT S ULFATED T YROSINE 宋孟純 洪敏華 洪瑜珊.
23802 兒童成長與護理 兒童成長與護理專題講座 講者:方向敏. 在了解孩子在生理、心理及 社交上的成長過程及 會面對的問題後, 更能有效地掌握 與孩子相處之道, 共同建立愉快健康的家庭。
Probability Distribution 機率分配 汪群超 12/12. 目的:產生具均等分配的數值 (Data) ,並以 『直方圖』的功能計算出數值在不同範圍內出現 的頻率,及繪製數值的分配圖,以反應出該 機率分配的特性。
: Help My Brother ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11033: Help My Brother 解題者: 呂明璁 解題日期: 2007 年 5 月 14 日.
SQL 進階查詢.
連續隨機變數 連續變數:時間、分數、重量、……
Distribute Video Coding 林明德. Lossless Compression 不考慮 X 和 Y 的相關性,直接傳送 X 和 Y 各需要使用 3bits ,總共傳出 的 bit 數為 6bits 。 (1) 考慮 X 和 Y 的相關性 (2) 將 Y 直接傳出,使用 3bits.
:Commandos ★★★☆☆ 題組: Contest Archive with Online Judge 題號: 11463: Commandos 解題者:李重儀 解題日期: 2008 年 8 月 11 日 題意: 題目會給你一個敵營區內總共的建築物數,以及建築物 之間可以互通的路有哪些,並給你起點的建築物和終點.
Visual C++重點複習.
資料結構實習-六.
Course 7 貪婪法則 Greedy Approach
: Place the Guards ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11080: Place the Guards 解題者:陳盈村 解題日期: 2008 年 3 月 26 日 題意:有一個國王希望在他的城市裡佈置守衛,
: SAM I AM ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11419: SAM I AM 解題者:李重儀 解題日期: 2008 年 9 月 11 日 題意: 簡單的說,就是一個長方形的廟裡面有敵人,然 後可以橫的方向開砲或縱向開砲,每次開砲可以.
: Bee Maja ★★☆☆☆ 題組: Contests Hosting Service with Online Judge 題號: 10182: Bee Maja 解題者:林祺光、李哲宇 解題日期: 2006 年 3 月 26 日 題意:現有兩種六邊形座標系,將甲座標系的某一點轉 為相對應的乙座標系。
著作權所有 © 旗標出版股份有限公司 第 14 章 製作信封、標籤. 本章提要 製作單一信封 製作單一郵寄標籤.
1 Chemical and Engineering Thermodynamics Chapter 1 Introduction Sandler.
: How many 0's? ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11038: How many 0’s? 解題者:楊鵬宇 解題日期: 2007 年 5 月 15 日 題意:寫下題目給的 m 與 n(m
啤酒遊戲- 供應鍊模擬 Dr. CK Farn 2006 Spring. 中央大學。范錚強 2 模擬設定 過度簡化的供應鍊 銷售桶裝啤酒 角色 工廠(倉庫) 配銷商 大盤商 零售商.
Graph Theory Chapter 7 Eulerian Graphs 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
Discrete Mathematics Chapter 7 Advanced Counting Techniques 大葉大學 資訊工程系 黃鈴玲.
Graph Theory Chapter 5 Networks 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
Graph Theory Chapter 6 Matchings and Factorizations 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
Introduction to DNA Computing Introducer: 黃宏偉 Adviser: 楊昌彪 教授.
Chapter 3 Trees and Forests 大葉大學 資訊工程系 黃鈴玲
Discrete Mathematics Chapter 7 Relations 感謝 大葉大學 資訊工程系 黃鈴玲老師 提供.
Graph Theory Chapter 4 Paths and Distance in Graphs 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
Graph Theory Chapter 10 Coloring Graphs 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
Graph Theory Chapter 8 Hamiltonian Graphs 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
大葉大學 資訊工程系 黃鈴玲  G. Agnarsson and R. Greenlaw, Graph Theory: Modeling, Applications, and Algorithms, Pearson,  G. Chartrand and O. R. Oellermann,
Presentation transcript:

Chapter 10 Independence, Dominance, and Matchings Graph Theory Chapter 10 Independence, Dominance, and Matchings 大葉大學 資訊工程系 黃鈴玲 2010.12

Contents 10.1 Independence of Vertices 10.2 Domination of Vertices 10.3 Matchings in Graphs

10.1 Independence of Vertices Definition 9.18 Definition 10.1

Note 10.3

For a graph G, the independence number a(G) satisfies . Example 10.4 (Frequency Assignment Problem) 9個可用的頻道(u1~u9),會互相干擾的連一條邊,最多可同時使用幾個頻道? u3 u5 u4 u2 G u1 u6 u7 u9 u8 5個 Observation 10.6 For a graph G, the independence number a(G) satisfies .

10.2 Domination of Vertices Definition 10.11

For a graph G, the domination number g (G)  a (G). Example 10.13 (城鎮安排police station位置) 城鎮(u1~u9),交通方便,police station能管理到的的連一條邊,最少需幾個 police station? u3 u5 u4 u2 G u1 u6 u7 u9 u8 3個 Observation 10.16 For a graph G, the domination number g (G)  a (G).

10.3 Matchings in a Graph Example 1.3 (Job Assignment Problem) Job J1~J5, Applicants A1~A7, Job與Applicant連邊表示申請者通過該職位的 申請測驗,試找出最佳之配對。 Jobs: qualified Applicants:

Example 10.24 (Weighted Job Assignment Problem) Job J1~J5, Applicants A1~A7, Job與Applicant連邊表示申請者通過測驗及 適合該職位的程度(權重數字越高越好),試找出權重總和最高之配對。

Definition 10.26 not a matching perfect matching

a b M = { ab, cd, ef } is a maximum matching M’ = { bc, de } is maximal, not maximum. c d e f Maximum (所有matching中最多edge的)  Maximal (此matching不可再加邊成為更大的matching)

Remark 10.28 Definition 10.30

An M-augmenting path P of G : P中的邊將M的與M的性質交換,M中的邊數會加一 Theorem 10.32

補充: Maximum Matchings in Bipartite Graphs Algorithm (Maximum Matching Algorithm for Bipartite graphs) [To determine a maximum matching in a bipartite graph G with V(G)={v1, v2, …, vp} and an initial matching M1.] 1. i 1, M  M1 2. If i < p, then continue; otherwise, stop, M is a maximum matching now. 3. If vi is matched, then i  i +1 and return to Step 2; otherwise, v  vi and Q is initialized to contain v only. 4. 4.1 For j = 1, 2, …, p and j  i, let Tree(vj)=F. (表示vj不在alternating tree中) Also, Tree(vi)=T.

4.2 If Q= , then i  i +1 and return to step 2; otherwise, delete a vertex x from Q and continue. 4.3 4.3.1 Suppose that N(x)={y1, y2, …, yk}. Let j  1. 4.3.2 If j  k, then y  yj; otherwise, return to Step 4.2. 4.3.3 If Tree(y)=T, then j  j + 1 and return to Step 4.3.2; otherwise, continue. 4.3.4 If y is incident with a matched edge yz, then Tree(y)T, Tree(z)T, Parent(y)x, Parent(z)y and add z to Q, j  j + 1, and return to Step 4.3.2. Otherwise, y is a single vertex (找到了!) and we continue. 4.3.5 Use array Parent to determine the alternating v-x path P’ in the tree. Let P  P’U{xy} be the augmenting path. 5. Augment M along P to obtain a new matching M’. Let M  M’, i  i +1 , and return to step 2.

Q : Example x1 y1 x2 y2 x3 y3 x4 y4 x2 y5 y2 x3 x5 y6 x5 x6 y6 x4 y3 i=1, x1 is matched. x1 y1 i=2, v=x2 x2 y2 Q : x2 x3 x5 x4 x1 x6 x3 y3 x4 y4 x2 y5 y2 x3 x5 y6 x5 x6 y6 紅色邊:Initial matching M x4 y3 x1 y4 x6 y5 y1 M-augmenting path

Example (Fig 6.6) x1 y1 i=3, x3 is matched. x2 y2 i=4, x4 is matched. … y5 x5 i=12, y6 is matched. x6 y6 New matching M’ M’ = { x2y6, x5y4, x1y1, x4y3, x3y2, x6y5 } is maximum.

Homework Let G be the given bipartite graph. The edges of a matching M are shown in bold. Beginning with M and using the Maximum Matching Algorithm for Bipartite graphs to find a maximum matching for G. v1 v2 v3 v4 v5 v6 v13 v12 v11 v10 v9 v8 v7