sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.33k stars 453 forks source link

Add an implementation of LCA to sage.combinat.words.suffix_trees #7642

Open 7e73390c-fee5-4245-b3a2-b9c35184c2c4 opened 14 years ago

7e73390c-fee5-4245-b3a2-b9c35184c2c4 commented 14 years ago

I have implemented the linear time preprocessing, constant-time queries algorithm for the lowest common ancestor (LCA) in the context of the suffix trees for words.

The only thing I'm not very sure about is where to place the bit manipulation functions.

Component: combinatorics

Keywords: lca suffix_tree

Issue created by migration from https://trac.sagemath.org/ticket/7642

7e73390c-fee5-4245-b3a2-b9c35184c2c4 commented 14 years ago

Attachment: trac_7642.patch.gz

6bdad4c1-1e26-4f2f-a442-a01a2292c181 commented 14 years ago
comment:2

Several comments about this patch :

What you are doing in this patch is out of my field, so my remarks could just come from this. I thought it would just be an algorithm on trees, but many details not being explicit in the docstrings, it is difficult for me to fill the holes... :-)

Nathann

bac7d3ea-3f1b-4826-8464-f0b53d5e12d2 commented 14 years ago
comment:3

Has this been checked on Solaris?

There's general information about building on Solaris at

http://wiki.sagemath.org/solaris

Information specifically for 't2' at

http://wiki.sagemath.org/devel/Building-Sage-on-the-T5240-t2

Both the source (4.3.0.1 is the latest to build on Solaris) and a binary which will run on any SPARC can be found at http://www.sagemath.org/download-source.html

Dave