
图论_二分图
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
HDU2063--二分图最大分配
DescriptionRPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partner,Grass只愿意和linle或LL做partner,PrincessSnow愿意和水域浪子原创 2013-02-01 13:42:48 · 897 阅读 · 0 评论 -
POJ3041--Asteroids--二分图最大匹配--Konig
DescriptionBessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid contains K asteroids (1 <= K <= 10,000), which are conven原创 2013-02-17 01:12:05 · 685 阅读 · 0 评论 -
POJ3216--Repairing Company
DescriptionLily runs a repairing company that services the Q blocks in the city. One day the company receives M repair tasks, the ith of which occurs in block pi, has a deadline ti on any repa原创 2013-08-01 13:14:43 · 722 阅读 · 0 评论 -
POJ2446--Chessboard
DescriptionAlice 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 i原创 2013-08-01 13:34:27 · 979 阅读 · 0 评论 -
HDU2444--The Accomodation of Students
Problem DescriptionThere are a group of students. Some of them may know each other, while others don't. For example, A and B know each other, B and C know each other. But this may not imply that A a原创 2013-04-30 18:30:32 · 747 阅读 · 0 评论 -
HDU1068--Girls and Boys
Problem Descriptionthe second year of the university somebody started a study on the romantic relations between the students. The relation “romantically involved” is defined between one girl and one原创 2013-04-30 15:59:57 · 777 阅读 · 0 评论 -
HDU4160--Dolls
Problem DescriptionDo you remember the box of Matryoshka dolls last week? Adam just got another box of dolls from Matryona. This time, the dolls have different shapes and sizes: some are skinny, som原创 2013-04-30 14:25:48 · 824 阅读 · 0 评论 -
Cards--SOJ week 2.1004--二分图最大匹配
DescriptionThere are many blue cards and red cards on the table. For each card, an integer number greater than 1 is printed on its face. The same number may be printed on several cards.A blue ca原创 2013-03-17 16:06:51 · 969 阅读 · 0 评论 -
Konig定理
Konig定理:最少覆盖数==最大匹配数例题: 有两台机器A和B及N个需要运行的任务,每台机器有M种不同的模式,而每个任务i都恰好在一台机器上运行,如果他在机器A上运行,则机器A需要设置为模式ai,如果他在机器B上运行,则机器B需要设置为模式bi,每台机器上的任务可以按照任意顺序执行,但是每台机器每转换一次模式需要重新启动一次,请合理为每个任务安排一台机器并合理安排顺序,使得机器重启次数尽原创 2013-02-17 01:07:20 · 2991 阅读 · 0 评论 -
POJ3020--Antenna Placement--二分图最大匹配
DescriptionThe Global Aerial Research Centre has been allotted the task of building the fifth generation of mobile phone nets in Sweden. The most striking reason why they got the job, is their disco原创 2013-02-17 22:53:56 · 553 阅读 · 0 评论 -
HDU1607--二分图最大匹配
DescriptionYour old uncle Tom inherited a piece of land from his great-great-uncle. Originally, the property had been in the shape of a rectangle. A long time ago, however, his great-great-uncle d原创 2013-02-01 15:44:17 · 797 阅读 · 0 评论 -
HDU2255--奔小康赚大钱(KM算法)
Problem Description传说在遥远的地方有一个非常富裕的村落,有一天,村长决定进行制度改革:重新分配房子。这可是一件大事,关系到人民的住房问题啊。村里共有n间房间,刚好有n家老百姓,考虑到每家都要有房住(如果有老百姓没房子住的话,容易引起不安定因素),每家必须分配到一间房子且只能得到一间房子。另一方面,村长和另外的村领导希望得到最大的效益,这样村里的机构才会有钱.由于原创 2015-01-26 12:43:22 · 570 阅读 · 0 评论