views:

1812

answers:

2

I've implemented a basic search for a research project. I'm trying to make the search more efficient by building a suffix tree. I'm interested in a C# implementation of the Ukkonen algorith. I don't want to waste time rolling my own if such implementation exists.

+3  A: 

Hard question. Here's the closest to match I could find: http://www.codeproject.com/KB/recipes/ahocorasick.aspx, which is an implementation of the Aho-Corasick string matching algorithm. Now, the algorithm uses a suffix-tree-like structure per: http://en.wikipedia.org/wiki/Aho-Corasick_algorithm

Now, if you want a prefix tree, this article claims to have an implementation for you: http://www.codeproject.com/KB/recipes/prefixtree.aspx

<HUMOR> Now that I did your homework, how about you mow my lawn. (Reference: http://flyingmoose.org/tolksarc/homework.htm) </HUMOR>

Edit: I found a C# suffix tree implementation that was a port of a C++ one posted on a blog: http://code.google.com/p/csharsuffixtree/source/browse/#svn/trunk/suffixtree

torial
I'm looking for the suffix tree.
Goran
Consider your lawn mowed :)
Goran
Cool :-) Next Thursday works best :-)
torial
A: 

Mate, I am struggling to implement Suffix Tree in c# for my homework. I cant find adequate resources on the i. Am hoping you can help me out with this? I have a submission deadline in 2 days..

Many thanks C

I've put this feature on hold for a while so I have no new information for you. Neither does the community it seems.
Goran
Check out my answer, I just modified it for a c#, and please mow my lawn...
torial