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:具体怎么暴力?我的想法

Posted by frkstyc at 2006-11-08 14:05:04 on Problem 3080
In Reply To:Re:具体怎么暴力?我的想法 Posted by:Sempr at 2006-11-08 13:59:09
一定要把暴力进行到底

>  O(n^2)枚举一个串的子串,O(mn^2)去给其他串naive匹配,总共O(mn^4)
> ^^^^^^这个地方,只要枚举每个串的后缀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