class BinomialCombinator[T] extends Tracing
Produces all combinations of k unordered items which can be chosen from among n items (k <= n). If k == n every item is to be selected. On the other hand if k == 0 none item will be selected. In the both cases there is exactly one solution: all items or the the empty set. If k > 0 and k < n we have two choices: Either a particular item will be selected or discarded. In the former case k decreases and in the latter case k remains unchanged. Now we have a new problem instance which can be solved recursively.
- T
the type of the provided items
- Alphabetic
- By Inheritance
- BinomialCombinator
- Tracing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BinomialCombinator(items: IndexedSeq[T], k: Int)
Creates a particular problem instance.
Creates a particular problem instance.
- items
the basic set of items
- k
the number of to be selected items
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val combination: Combination[T]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getCurrentTracer(): AbstractTracer
Returns the present tracer for this object.
Returns the present tracer for this object.
- returns
the current tracer, by default the NullTracer
- Definition Classes
- Tracing
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val k: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def produce: ListBuffer[IndexedSeq[Element[T]]]
- lazy val solutions: List[IndexedSeq[T]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- BinomialCombinator → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withTracer[T](resultType: String, callee: AnyRef, method: String)(block: => T): T
Custom control structure for tracing of embraced code blocks.
Custom control structure for tracing of embraced code blocks.
- T
the actual type of the embraced code block
- resultType
denotes the return type
- callee
the call site
- method
denotes the method signature
- block
the embraced code block
- returns
returns whatever block returns
- Definition Classes
- Tracing
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated