-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overlap_partion of a word should return an instance disjoint set data structure #8318
Comments
comment:2
Hello, Sébastien ! I tested your patch and generated the documentation. I have some comments on the latter:
I suggest something like: Returns the partition over the alphabet induced by overlapping the words self Then you give the formal definition and the example.
That's all for now. The rest seems fine. As soon as you fix the documentation according to my comments, I'll resume the review. |
Changed keywords from none to equation, words, partition |
comment:3
Attachment: trac_8318_overlap_partition-sl.patch.gz I fixed the documentation. Needs review! |
comment:4
I'm done with the review. All tests passed, I corrected a minor error in the documentation. The code makes sense. Positive review. |
Attachment: trac_8313_review-abm.patch.gz one-character review -- apply on top of the first patch |
Reviewer: Alexandre Blondin Massé |
Author: Sébastien Labbé |
comment:6
Merged in this order: |
Merged: sage-4.3.4.alpha0 |
When I coded the
overlap_partition
function in 2007, the purpose was to study equations on words. But, when the sage-words code was merged into sage in december 2008, the disjoint set data structure was not ready so that sage-words got merged without it. That is whyoverlap_partition
returns a set of sets (and also why I don't use the function ever since then).The disjoint set data structure got merged into sage recently : #6775. So this patch changes the behavior of
overlap_partition
to its initial goal.BEFORE (sage-4.3.2):
WITH THE PATCH:
The following example illustrates that a word that overlaps with itself has a period :
The following example shows that if the image of a word under an involution f overlaps its square, then it is f-symmetric i.e. the product of two f-palindromes :
CC: @sagetrac-abmasse
Component: combinatorics
Keywords: equation, words, partition
Author: Sébastien Labbé
Reviewer: Alexandre Blondin Massé
Merged: sage-4.3.4.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/8318
The text was updated successfully, but these errors were encountered: