in reply to suffix array efficiency

May I ask how you are using the suffix array you are constructing? (Perhaps a short example?)

I ask because, as you've discovered, constructing suffix arrays in Perl -- as opposed to C or other languages where you can manipulate pointers to avoid large scale memory duplication -- is an expensive operation, and in the past I've found that then using them also carries high costs.

Generally, I've found that there is usually a different approach to the underlying problem that works out substantially more efficient by avoiding the construction of the suffix array.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.