#17979: Reimplementation of IntegerListsLex
-------------------------------------+-------------------------------------
Reporter: aschilling | Owner:
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-6.6
Component: combinatorics | Resolution:
Keywords: days64 | Merged in:
Authors: Bryan Gillespie, | Reviewers:
Anne Schilling, Nicolas M. Thiery | Work issues:
Report Upstream: N/A | Commit:
Branch: | 652a6d552c10b95fd3c735094fe105e4081e47ce
public/ticket/17979 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by aschilling):
Replying to [comment:141 jdemeyer]:
> Concerning terminology: is "lexicographic order" really the standard way
of refering to this ordering? I would call it "reverse lexicographic"
because it starts with the ''largest'' element first (but I'm not in
combinatorics, so if this is standard, then it's fine).
>
> However, I do think this "lexicographic order" needs to be documented
somewhere, especially with the behaviour of implicit trailing zeros. Add
this example, because it might look counter-intuitive that the `[1]`
appears in the middle here:
> {{{
> sage: list(IntegerListsLex(max_length=4, max_part=1))
> [[1, 1, 1, 1],
> [1, 1, 1],
> [1, 1, 0, 1],
> [1, 1],
> [1, 0, 1, 1],
> [1, 0, 1],
> [1, 0, 0, 1],
> [1],
> [0, 1, 1, 1],
> [0, 1, 1],
> [0, 1, 0, 1],
> [0, 1],
> [0, 0, 1, 1],
> [0, 0, 1],
> [0, 0, 0, 1],
> []]
> }}}
Added. The doc compilation issues should also be fixed now!
--
Ticket URL: <http://trac.sagemath.org/ticket/17979#comment:152>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.