Re: divide & conquer algorithm to implement string matching
- From: misterio <giagimari@xxxxxxxxx>
- Date: 31 May 2007 05:32:47 -0700
On 31 Mag, 02:46, Pascal Bourguignon <p...@xxxxxxxxxxxxxxxxx> wrote:
misterio <giagim...@xxxxxxxxx> writes:Maybe you missed the point here,that is I don't use recursion and d&c
On 30 Mag, 14:43, Pascal Bourguignon <p...@xxxxxxxxxxxxxxxxx> wrote:
It's called "divide and conquer", not "divide by 2 and conquer".I know that,I choose 2 just because it's the simplest one.Do you mean
that It could be better if I choose another one?
Yes, you could choose 1 and n-1. It works as well, and can easily be
converted into an iteration instead of a recursion.
here because It's really useful,I use it just to apply this technique
to this problem.It's an exercise,not producion code.If I wanted a good
algorithm,I'd have chosen KMP.
.
- 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: Pascal Bourguignon
- Re: divide & conquer algorithm to implement string matching
- From: misterio
- Re: divide & conquer algorithm to implement string matching
- From: Pascal Bourguignon
- divide & conquer algorithm to implement string matching
- Prev by Date: Re: divide & conquer algorithm to implement string matching
- Next by Date: Re: divide & conquer algorithm to implement string matching
- Previous by thread: Re: divide & conquer algorithm to implement string matching
- Next by thread: computing fractions
- Index(es):