-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
Provide an alphabet to the parent of any generated word #10054
Comments
comment:1
I write a useless comment here so that this ticket be listed in the list of Open ticket I participated in. |
comment:2
I checked one by one all the generated words in Sage. They all have parent alphabets except two:
These ones should be corrected:
Is is the goal of this ticket? Just to correct those two generated words? If so, I can write a patch, but I want to make sure I understand correctly what it is about. Alex |
Changed keywords from none to days45 |
comment:3
Here's a patch which gives the two missing words an alphabet and I've also cleaned up some of the documentation in Best, Travis |
Author: Travis Scrimshaw |
comment:4
Added the dependency. |
Dependencies: #8920 |
comment:5
Attachment: trac_10054-parent_gen_words-ts.patch.gz All tests pass (failing test on the patchbot are unrelated). Doc builds fine. Positive review. Thanks for the doc improvements. Sébastien |
Reviewer: Sébastien Labbé |
comment:6
Thank you for the review Sebastien. |
Merged: sage-5.9.beta4 |
The current situation is not uniform, some word generators provide an alphabet to their parent, some other do not. Currently, the policy can be different even for close word generators:
There should be an overall policy (to be discussed in the community).
My point of view is that we should provide a default alphabet each time we know it a priori, so that accessing this info will take a constant time, otherwise the user will sometimes have to use a parsing function that will take a linear time.
Depends on #8920
CC: @seblabbe @sagetrac-abmasse @videlec @saliola
Component: combinatorics
Keywords: days45
Author: Travis Scrimshaw
Reviewer: Sébastien Labbé
Merged: sage-5.9.beta4
Issue created by migration from https://trac.sagemath.org/ticket/10054
The text was updated successfully, but these errors were encountered: