图论——DAG图的覆盖与独立集
Alex_McAvoy
想要成为渔夫的猎手
展开
-
图论 —— DAG 的覆盖与独立集
【概述】在 DAG 的覆盖与独立集问题中,常见的问题分为三类:最小路径点覆盖 最小路径可重复点覆盖 最大独立集数这三类问题都可以利用二分图的匈牙利算法来解决。【最小路径覆盖】最小路径覆盖:给定一张有向无环图,要求用尽量少的不相交的简单路径,覆盖有向无环图的所有顶点(每个顶点恰好被覆盖一次)根据 Koning 定理的推广:DAG 最小路径覆盖 = DAG 顶点数 - 新二分...原创 2019-10-20 16:21:02 · 1909 阅读 · 0 评论 -
Harry Potter and the Present II(HDU-3991)
Problem DescriptionHarry and his friends buy a lot of presents now, but they immediately find they had bought too many presents, so they decide to distribute them to the magicians who need them.To...原创 2018-12-04 16:59:44 · 961 阅读 · 0 评论 -
Repairing Company(POJ-3216)
Problem 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 r...原创 2018-12-03 22:32:27 · 406 阅读 · 0 评论 -
Taxi Cab Scheme(POJ-2060)
Problem DescriptionRunning a taxi station is not all that simple. Apart from the obvious demand for a centralised coordination of the cabs in order to pick up the customers calling to get a cab as ...原创 2019-03-13 19:43:07 · 424 阅读 · 0 评论 -
Air Raid(POJ-1422)
Problem 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 an intersection and walking through ...原创 2018-12-03 22:13:42 · 497 阅读 · 0 评论 -
Robots(POJ-1548)
Problem DescriptionYour company provides robots that can be used to pick up litter from fields after sporting events and concerts. Before robots are assigned to a job, an aerial photograph of the f...原创 2018-12-03 22:03:04 · 352 阅读 · 0 评论 -
Dolls(HDU-4160)
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, so...原创 2018-12-03 21:51:00 · 669 阅读 · 0 评论 -
The Maximum Unreachable Node Set(UVALive-8456)
Problem DescriptionIn this problem, we would like to talk about unreachable sets of a directed acyclic graph G = (V, E).In mathematics a directed acyclic graph (DAG) is a directed graph with no d...原创 2019-10-20 16:47:56 · 452 阅读 · 0 评论