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

请问每次更新有没有O(N)的算法

Posted by agralol at 2010-11-21 16:31:47 on Problem 1094
我的做法是每次更新先对更新的两个点Floyd,然后判断是否有topo顺序(我是判断每两个点是否都存在确定关系),两个都是O(N)的复杂度

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