Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
请问每次更新有没有O(N)的算法我的做法是每次更新先对更新的两个点Floyd,然后判断是否有topo顺序(我是判断每两个点是否都存在确定关系),两个都是O(N)的复杂度 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator