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 |
Re:具体怎么暴力?我的想法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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator