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 npbool at 2016-03-08 12:56:11 on Problem 1344
总体思想就是,假如两个叶节点的父节点相同,那么他们和其他节点相似度之差是固定的;枚举节点对,检查是否满足这个条件,如果满足,就可以解出他们与父节点的边权,把这两个点可以吸收到父节点里,修正相似度矩阵,迭代计算。O(n^4)。
需要注意的是边的权值可以是小数......很坑。

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