From: Alain Frisch <alain@frisch.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Knuth-Morris-Pratt
Date: Fri, 27 Jul 2007 02:19:18 +0200 [thread overview]
Message-ID: <46A93A06.7060704@frisch.fr> (raw)
In-Reply-To: <4a051d930707260727q31794e28pb388151a163209b7@mail.gmail.com>
Christopher L Conway wrote:
> Hmm. My KMP implementation turned out to be a real bottleneck in my
> ICFP code; I suspected I should have chosen Boyer-Moore (not knowing
> anything about the constant factors of each, just stabbing in the
> dark)... Maybe it was the average-case O(log n) "get" in my "rope"
> implementation...
Boyer-Moore is more useful with a large alphabet. With only 4
characters, I don't think it would have helped you a lot for the contest
(I might be wrong).
-- Alain
next prev parent reply other threads:[~2007-07-27 0:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-26 13:03 Knuth-Morris-Pratt Jean-Christophe Filliatre
2007-07-26 14:27 ` [Caml-list] Knuth-Morris-Pratt Christopher L Conway
2007-07-27 0:19 ` Alain Frisch [this message]
2007-07-26 15:17 ` Markus E.L.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46A93A06.7060704@frisch.fr \
--to=alain@frisch.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox