org.matheclipse.combinatoric
Class NumberPartitionsIterator
- java.lang.Object
-
- org.matheclipse.combinatoric.NumberPartitionsIterator
-
public class NumberPartitionsIterator extends java.lang.ObjectPartition a set and visit all steps of the algorithm with aIStepVisitor- See Also:
IStepVisitor
-
-
Constructor Summary
Constructors Constructor and Description NumberPartitionsIterator(IStepVisitor visitor, int n, int k)Partition an ordered multi-set and visit all steps of the algorithm with anIStepVisitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanexecute()voidreset()
-
-
-
Constructor Detail
-
NumberPartitionsIterator
public NumberPartitionsIterator(IStepVisitor visitor, int n, int k)
Partition an ordered multi-set and visit all steps of the algorithm with anIStepVisitor.- Parameters:
visitor- the visitor which controls the steps of the algorithmk- the number of partitioning the n elements into k parts
-
-
DMelt 3.0 © DataMelt by jWork.ORG