Skip to content

New class IntegerListLex for generating integer lists => much improved partition iterators #4549

@nthiery

Description

@nthiery

IntegerListsLex refactoring, and application to Partitions

  • Reworked the integer lists lexicographic generator into a full
    featured combinatorial class IntegerListsLex
  • support for n in a set (or any iterable I implementing n in I)

Applications to Partitions:

  • Systematic use of IntegerListsLex to get constant amortized time
    iterators (huge efficiency improvement).
  • This includes PartitionsGreatestEQ and PartitionsGreatestLE which
    were previously implemented in GAP. This was inefficient due to
    the communication overhead, and not using an iterator.
    (backward compatible unpickling)
  • Implements horizontal_border_strip.

CC: @sagetrac-sage-combinat

Component: combinatorics

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions