HBC233166[JSOI2015]SALESMAN,树形dp,动态规划[WF2011]Trash Removal(改)题解

季陌殇 算法基础篇 90 0
题库丰富多样,涵盖各个领域,全网最全C++题库,让您在练习中不断成长!
Allied Chute Manufacturers is a company that builds trash chutes. A trash chute is a hollow tube installed in buildings so that trash dropped in at the top will fall down and be collected in the bas

Allied Chute Manufacturers is a company that builds trash chutes. A trash chute is a hollow tube installed in buildings so that trash dropped in at the top will fall down and be collected in the basement. Designing trash chutes is actually highly nontrivial. Depending on what kind of trash people are expected to drop into them, the trash chute needs to have an appropriate size. And since the cost of manufacturing a trash chute is proportional to its size, the company always would like to build a chute that is as small as possible. Choosing the right size can be tough though. We will consider a 2-dimensional simplification of the chute design problem. A trash chute points straight down and has a constant width. Objects that will be dropped into the trash chute are modeled as polygons. Before an object is dropped into the chute it can be rotated so as to provide an optimal fit. Once dropped, it will travel on a straight path downwards and will not rotate in flight. The following figure shows how an object is first rotated so it fits into the trash chute.  Your task is to compute the smallest chute width that will allow a given polygon to pass through. 

HBC233166[JSOI2015]SALESMAN,树形dp,动态规划[WF2011]Trash Removal(改)题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
想要在职场中立于不败之地?那就来试试全网最全C++题库,让您在练习中快速提升技能。

标签: HBC233166[JSOI2015]SALESMAN 树形dp 动态规划[WF2011]Trash Removal(改)题解