Re: divide & conquer algorithm to implement string matching
- From: misterio <giagimari@xxxxxxxxx>
- Date: 30 May 2007 09:19:29 -0700
Maybe I'm wrong,but to me it seems that if I consider the lenght of
the pattern to search a constant this algorithm takes O(n) time to
compute the solution,if the length of the pattern is varying,in the
worst case (that should be if the lenght of the pattern is an half of
the lenght of the main string)this algorithm could take O(n^2) time to
compute the solution.Am I right?
.
- Follow-Ups:
- References:
- divide & conquer algorithm to implement string matching
- From: misterio
- Re: divide & conquer algorithm to implement string matching
- From: Logan Shaw
- Re: divide & conquer algorithm to implement string matching
- From: misterio
- Re: divide & conquer algorithm to implement string matching
- From: misterio
- Re: divide & conquer algorithm to implement string matching
- From: misterio
- Re: divide & conquer algorithm to implement string matching
- From: misterio
- Re: divide & conquer algorithm to implement string matching
- From: misterio
- divide & conquer algorithm to implement string matching
- Prev by Date: Re: divide & conquer algorithm to implement string matching
- Next by Date: Re: Web vs. Desktop based systems
- Previous by thread: Re: divide & conquer algorithm to implement string matching
- Next by thread: Re: divide & conquer algorithm to implement string matching
- Index(es):