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

Re: 是O(mn)吧,m表示数据范围,n表示长度。

Posted by aoxboxcox at 2008-08-10 10:50:17 on Problem 1007 and last updated at 2008-08-10 13:06:32
In Reply To:算逆序数可以O(n)完成的 Posted by:nightelf at 2007-08-28 12:35:42
不要因为只有4种输入,就误认为O(4n)=O(n)
事实上复杂度为n(m-1)

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