Ticket #6000 (closed enhancement: fixed)
[with patch, positive review] Sets enumerated by exploring a search space with a (lazy) tree or graph structure
| Reported by: | nthiery | Owned by: | nthiery |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.0.1 |
| Component: | combinatorics | Keywords: | enumerate sets, depth first search, ideal of a relation |
| Cc: | sage-combinat | Author(s): | Nicolas Thiery |
| Report Upstream: | Reviewer(s): | Rob Beezer | |
| Merged in: | 4.0.1.alpha0 | Work issues: |
Description (last modified by nthiery) (diff)
This patches extend the sage.combinat.backtrack library with other generic tools for constructing large sets whose elements can be enumerated by exploring a search space with a (lazy) tree or graph structure.
- SearchForest?: Depth first search through a tree descrived by a child function
- GenericBacktracker?: (was readilly there) Depth first search through a tree descrived by a child function, with branch pruning, ...
- TransitiveIdeal?: Depth first search through a graph described by a neighbours relation
- TransitiveIdealGraded?: Breath first search through a graph described by a neighbours relation
Todo: the names are crappy and inconsistent, because they come from different point of views. We need to find a good naming scheme!!!
Do we want to emphasize the underlying graph/tree structure? The branch&bound aspect? The transitive closure of a relation point of view?
Todo: which interface do we want:
- TransitiveIdeal?(relation, generators)
- TransitiveIdeal?(generators, relation)
The code needs to be standardized once the choice is done.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

