caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Substring search on an array of strings
@ 2004-06-24  7:52 Diego Olivier Fernandez Pons
  2004-06-24 15:51 ` Shawn Wagner
  0 siblings, 1 reply; 5+ messages in thread
From: Diego Olivier Fernandez Pons @ 2004-06-24  7:52 UTC (permalink / raw)
  To: caml-list

    Bonjour,

Caml Str library does not seem to provide a function allowing to match
efficently a string in a array of strings.

I was wondering if there were already known algorithms for this before
I try the workarounds I had in mind :

i) building a 'superstring' with the array of strings (the shortest
superstring problem is NP but there are simple primal-dual
approximation algorithms) and use a classical search algorithm.

ii) try to lift the suffix Knuth-Morris-Prat automaton to work on the
union of the words instead of a single word (is this possible ?)


        Diego Olivier

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20040625165512.GG595@speakeasy.org>]

end of thread, other threads:[~2004-06-25 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-24  7:52 [Caml-list] Substring search on an array of strings Diego Olivier Fernandez Pons
2004-06-24 15:51 ` Shawn Wagner
2004-06-25 16:21   ` Diego Olivier Fernandez Pons
     [not found] <20040625165512.GG595@speakeasy.org>
2004-06-25 17:05 ` Diego Olivier Fernandez Pons
2004-06-25 17:25   ` Shawn Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).