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^4) -。-

Posted by seu_enic at 2009-02-27 16:24:34 on Problem 1050
for ( i = 0 ; i < n ; i++ )
    for ( j = 0 ; j < n ; j++ )
    {
         ....;
         for ( k = 0 ; k < n ; k++ )
             for ( t = i ; t <= j ; t++ )
                   ....;
    }

这个感觉是O(n^4)啊。大家都说O(n^3),请教,谢谢。

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