随笔分类 -  二分匹配

1 2 下一页

图论部分,最大匹配
HDU 4751 Divide Groups (2013南京网络赛1004题,判断二分图)
摘要:Divide GroupsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 423Accepted Submission(s): 161Problem DescriptionThis year is the 60th anniversary of NJUST, and to make the celebration more colorful, Tom200 is going to invite distinguished alumnus bac 阅读全文

posted @ 2013-09-22 12:17 kuangbin 阅读(1308) 评论(0) 推荐(0) 编辑

HDU 4685 Prince and Princess (2013多校8 1010题 二分匹配+强连通)
摘要:Prince and PrincessTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 150Accepted Submission(s): 46Problem DescriptionThere are n princes and m princesses. Princess can marry any prince. But prince can only marry the princess they DO love.For all prin 阅读全文

posted @ 2013-08-16 00:08 kuangbin 阅读(1634) 评论(0) 推荐(0) 编辑

HDU 2255 奔小康赚大钱 (KM算法 模板题)
摘要:奔小康赚大钱Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2129Accepted Submission(s): 923Problem Description传说在遥远的地方有一个非常富裕的村落,有一天,村长决定进行制度改革:重新分配房子。这可是一件大事,关系到人民的住房问题啊。村里共有n间房间,刚好有n家老百姓,考虑到每家都要有房住(如果有老百姓没房子住的话,容易引起不安定因素),每家必须分配到一间房子且只能得到一间房子。另一方面,村长和另 阅读全文

posted @ 2013-07-31 21:11 kuangbin 阅读(2327) 评论(0) 推荐(0) 编辑

HDU 2389 Rain on your Parade(二分匹配,Hopcroft-Carp算法)
摘要:Rain on your ParadeTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 655350/165535 K (Java/Others)Total Submission(s): 2154Accepted Submission(s): 662Problem DescriptionYou’re giving a party in the garden of your villa by the sea. The party is a huge success, and everyone is here. It’s a warm, sun 阅读全文

posted @ 2013-07-29 22:49 kuangbin 阅读(1420) 评论(0) 推荐(0) 编辑

HDU 3360 National Treasures(二分匹配,最小点覆盖)
摘要:National TreasuresTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 871Accepted Submission(s): 291Problem DescriptionThe great hall of the national museum has been robbed few times recently. Everyone is now worried about the security of the treasures 阅读全文

posted @ 2013-07-29 09:57 kuangbin 阅读(630) 评论(0) 推荐(0) 编辑

HDU 1845 Jimmy’s Assignment(二分匹配)
摘要:Jimmy’s AssignmentTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 464Accepted Submission(s): 224Problem DescriptionJimmy is studying Advanced Graph Algorithms at his university. His most recent assignment is to find a maximum matching in a special 阅读全文

posted @ 2013-07-27 10:52 kuangbin 阅读(868) 评论(0) 推荐(0) 编辑

HDU 1507 Uncle Tom's Inherited Land*(二分匹配,输出任意一组解)
摘要:Uncle Tom's Inherited Land*Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1247Accepted Submission(s): 542Special JudgeProblem DescriptionYour old uncle Tom inherited a piece of land from his great-great-uncle. Originally, the property had been 阅读全文

posted @ 2013-07-27 10:09 kuangbin 阅读(1453) 评论(4) 推荐(1) 编辑

HDU 4619 Warm up 2(2013多校2 1009 二分匹配)
摘要:Warm up 2Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 28Accepted Submission(s): 8Problem Description Some 1×2 dominoes are placed on a plane. Each dominoe is placed either horizontally or vertically. It's guaranteed the dominoes in the 阅读全文

posted @ 2013-07-25 17:34 kuangbin 阅读(872) 评论(0) 推荐(0) 编辑

POJ 2446 Chessboard (二分匹配)
摘要:ChessboardTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 10743Accepted: 3338DescriptionAlice and Bob often play games on chessboard. One day, Alice draws a board with size M * N. She wants Bob to use a lot of cards with size 1 * 2 to cover the board. However, she thinks it too easy to bob, 阅读全文

posted @ 2012-11-26 19:24 kuangbin 阅读(790) 评论(0) 推荐(0) 编辑

ZOJ 3460 Missile(二分+二分匹配)
摘要:MissileTime Limit: 2 Seconds Memory Limit: 65536 KBYou control N missile launching towers. Every tower has enough missiles, but for each tower only one missile can be launch at the same time. Before the launching, every missile need T1 seconds to leave the tower. Assume that all the missiles have t. 阅读全文

posted @ 2012-10-05 00:00 kuangbin 阅读(551) 评论(0) 推荐(1) 编辑

HDU 3829 Cat VS Dog (二分匹配求最大独立集)
摘要:Cat VS DogTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 125536/65536 K (Java/Others)Total Submission(s): 1770Accepted Submission(s): 600Problem DescriptionThe zoo have N cats and M dogs, today there are P children visiting the zoo, each child has a like-animal and a dislike-animal, if the chil 阅读全文

posted @ 2012-09-23 10:25 kuangbin 阅读(985) 评论(0) 推荐(0) 编辑

二分图最大匹配总结
摘要:二分图匹配(匈牙利算法)1。一个二分图中的最大匹配数等于这个图中的最小点覆盖数König定理是一个二分图中很重要的定理,它的意思是,一个二分图中的最大匹配数等于这个图中的最小点覆盖数。如果你还不知道什么是最小点覆盖,我也在这里说一下:假如选了一个点就相当于覆盖了以它为端点的所有边,你需要选择最少的点来覆盖所有的边。2。最小路径覆盖=最小路径覆盖=|G|-最大匹配数在一个N*N的有向图中,路径覆盖就是在图中找一些路经,使之覆盖了图中的所有顶点,且任何一个顶点有且只有一条路径与之关联;(如果把这些路径中的每条路径从它的起始点走到它的终点,那么恰好可以经过图中的每个顶点一次且仅一次);如果 阅读全文

posted @ 2012-08-26 16:15 kuangbin 阅读(31571) 评论(7) 推荐(8) 编辑

POJ 2594 Treasure Exploration(最大路径覆盖)
摘要:Treasure ExplorationTime Limit: 6000MSMemory Limit: 65536KTotal Submissions: 5480Accepted: 2154DescriptionHave you ever read any book about treasure exploration? Have you ever see any film about treasure exploration? Have you ever explored treasure? If you never have such experiences, you would neve 阅读全文

posted @ 2012-08-21 08:21 kuangbin 阅读(587) 评论(0) 推荐(0) 编辑

POJ 2771 Guardian of Decency(二分匹配,最大独立集)
摘要:Guardian of DecencyTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 4071Accepted: 1702DescriptionFrank N. Stein is a very conservative high-sc... 阅读全文

posted @ 2012-08-20 11:48 kuangbin 阅读(595) 评论(2) 推荐(1) 编辑

POJ 2195 Going Home(二分图最大权值匹配)
摘要:Going HomeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 13981Accepted: 7156DescriptionOn a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vertically, to an adjacent point. For each little man, you need to p 阅读全文

posted @ 2012-08-20 10:22 kuangbin 阅读(874) 评论(0) 推荐(0) 编辑

HDU 1151 Air Raid(最小路径覆盖)
摘要:Air RaidTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1904Accepted Submission(s): 1225Problem DescriptionConsider a town where all the streets are one-way and each street leads from one intersection to another. It is also known that starting from 阅读全文

posted @ 2012-08-20 00:11 kuangbin 阅读(1506) 评论(0) 推荐(0) 编辑

HDU 1150 Machine Schedule(最小点覆盖)
摘要:Machine ScheduleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3444Accepted Submission(s): 1669Problem DescriptionAs we all know, machine scheduling is a very classical problem in computer science and has been studied for a very long history. Sche 阅读全文

posted @ 2012-08-19 23:42 kuangbin 阅读(3252) 评论(0) 推荐(3) 编辑

HDU 1054 Strategic Game(二分图最小点覆盖)
摘要:Strategic GameTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2916Accepted Submission(s): 1217Problem DescriptionBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is v 阅读全文

posted @ 2012-08-19 20:40 kuangbin 阅读(1196) 评论(0) 推荐(0) 编辑

POJ 3692 Kindergarten(二分图匹配)
摘要:KindergartenTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 3866Accepted: 1832DescriptionIn a kindergarten, there are a lot of kids. All girls of the kids know each other and all boys also know each other. In addition to that, some girls and boys know each other. Now the teachers want to pi 阅读全文

posted @ 2012-08-19 01:09 kuangbin 阅读(1363) 评论(0) 推荐(0) 编辑

POJ 1274 The Perfect Stall(二分图匹配)
摘要:The Perfect StallTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 14447Accepted: 6612DescriptionFarmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, all the stalls in the new barn are different. For th 阅读全文

posted @ 2012-08-19 00:51 kuangbin 阅读(1641) 评论(0) 推荐(0) 编辑

1 2 下一页

导航

JAVASCRIPT: