Maximal Cliques on Circular-arc Graph
合肥2008現場賽, 2009網賽 Guarders
In graph theory, a circular-arc graph is the intersection graph of a set of arcs on the circle. --wiki
uestc_floyd的做法是搜+剪枝.
zzh@bupt大牛想出二分圖匹配的做法:
固定某個區間Li肯定選中, 則剩下的區間里, 可能被選擇的只有與Li有交集的那些.
(*)將那些區間分兩類: 與Li的左邊界交的, 與Li的右邊界交的.
易知與Li兩邊界都交的是肯定可以選的, 不會產生不合要求的局面.
不合要求的情況只可能是, 某個一類區間和某個二類區間沒有交, 卻同時選了它們.
所以二分圖建圖方法為, 若某個一類區間和某個二類區間沒有交, 則連一條邊.
二分圖的頂點數+1-最大匹配數即為Li對應的最優解.
枚舉每個Li.
理論時間復雜度相當高, O(n)*O(匹配), 實現上可以加入排序, 最優解剪枝等方案.
ps. (*)非常巧妙的想法! 非常藝術!
FeedBack:
# re: Guarders: Maximal Cliques on Circular-arc Graph
只有注冊用戶登錄后才能發表評論。 | ||
【推薦】100%開源!大型工業跨平臺軟件C++源碼提供,建模,組態!
![]() |
||
相關文章:
|
||
網站導航:
博客園
IT新聞
BlogJava
博問
Chat2DB
管理
|
||
|
| |||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
31 | 1 | 2 | 3 | 4 | 5 | 6 | |||
7 | 8 | 9 | 10 | 11 | 12 | 13 | |||
14 | 15 | 16 | 17 | 18 | 19 | 20 | |||
21 | 22 | 23 | 24 | 25 | 26 | 27 | |||
28 | 29 | 30 | 31 | 1 | 2 | 3 | |||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
"Do not spend all your time on training or studying - this way you will probably become
very exhausted and unwilling to compete more.
Whatever you do - have fun. Once you find programming is no fun anymore
– drop it. Play soccer, find a girlfriend, study something not related
to programming, just live a life - programming contests are only
programming contests, and nothing more. Don't let them become your life
- for your life is much more interesting and colorful."
-- Petr
留言簿(3)
隨筆分類(59)
隨筆檔案(43)
- 2013年9月 (1)
- 2011年8月 (3)
- 2011年7月 (3)
- 2011年6月 (1)
- 2011年5月 (1)
- 2010年5月 (3)
- 2010年4月 (1)
- 2009年12月 (1)
- 2009年10月 (1)
- 2009年9月 (1)
- 2009年7月 (6)
- 2009年6月 (7)
- 2009年5月 (3)
- 2009年4月 (3)
- 2009年3月 (4)
- 2009年2月 (2)
- 2008年2月 (2)
cows
搜索
最新評論

- 1.?re: srm 514 div1 250 600 900
- 請高手幫忙啊,我給你留言了,SRM 144 DIV1 的1100分的題,請幫忙分析一下啊,我的郵箱:ervin_yue@163.com
- --ervin_yue
- 2.?re: 人民搜索筆試.坑爹題...
-
能要下您的q號嗎,我最近也要去筆試人民搜索,
能多了解下嗎,
我的q 3323 08723
謝謝
- --栗
- 3.?re: pku 2486 Apple Tree 樹形DP+背包DP
- 這樣做復雜度應該是n*n*k*k
- --kimiyoung
- 4.?re: Two Professors (CERC 2008) 解題報告
- Up!
- --zaakdov
- 5.?re: 字符串匹配 后綴數組 trie圖(更新)
-
@小狗
Thanks~~ 手誤了 - --<A href="mailto:wolf5x1016@gmail.com"