
二分匹配
大一大二期间曾经刷过的ACM题解,记录了大学生涯ACM的时光~
研发之道
一个坚持把架构做到极致的技术人,热衷于互联网技术。混迹互联网十几年,热衷于高性能、高并发、分布式技术领域的研究。
展开
-
poj 1469 COURSES(二分匹配 vector 邻接表 实现)
COURSES Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 18986 Accepted: 7481 Description Consider a group of N students and P courses. Each student visits原创 2015-06-25 19:03:34 · 729 阅读 · 0 评论 -
1076. Trash(KM算法 二分最佳完美匹配)
1076. Trash Time limit: 1.0 second Memory limit: 64 MB You were just hired as CEO of the local junkyard.One of your jobs is dealing with the incoming trash and sorting it for recycling.The原创 2015-06-25 20:35:44 · 1213 阅读 · 0 评论 -
poj 3041 Asteroids (二分图最大匹配 == 最小点覆盖数)
应该属于最基本的匹配问题,重点在于为什么可以把行和列化为二分图的左右两个集合,理解好长时间,可以尝试这样理解:一个炸弹只能炸掉一行 或着 一列,左右两个集合中的值分别代表某一行或着某一列,因为连线的意义是如果某一行某一列锁定的值有行星才连线,我们所要求的是最少的炸弹数即最少的行数和列数之和即选出最少的行数和列数从左右两个集合中,这些行和列满足的要求是能够覆盖所有的边,换句话说这些行和列的炸弹能够炸原创 2015-08-27 16:39:20 · 682 阅读 · 0 评论 -
杭电HDU ACM 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): 2496 Accepted Submission(s): 1028 Special Judge Problem De原创 2015-08-27 10:51:20 · 1276 阅读 · 0 评论 -
poj 1466 HDU 1068 Girls and Boys (最大独立集)
Girls and Boys Time Limit: 5000MS Memory Limit: 10000K Total Submissions: 11141 Accepted: 4983 Description In the second year of the university somebody started a study原创 2015-08-27 17:19:52 · 821 阅读 · 0 评论 -
杭电 HDU ACM 1150 Machine Schedule(二分匹配)
Machine Schedule Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7056 Accepted Submission(s): 3537 Problem Description As we all kno原创 2015-08-29 12:00:41 · 872 阅读 · 0 评论