Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这个题目 二分+建图 好于 枚举+加边

Posted by perseawe at 2012-07-27 21:23:41 on Problem 2391
我用的是Dinic...

枚举加边每次Label,复杂度比较高,特别是本题的距离函数比较离散.
二分的话可以把对图Floyd后把所有的边找出来后二分终边的位置而不是长度,这样可以快不少.

综上,当题目的距离函数比较离散的时候还是二分吧-_-

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator