net.ericaro.neoitertools.generators.combinatorics
Class FactorialNumber

java.lang.Object
  extended by net.ericaro.neoitertools.generators.combinatorics.BigNumber
      extended by net.ericaro.neoitertools.generators.combinatorics.FactorialNumber
All Implemented Interfaces:
Generator<int[]>

public class FactorialNumber
extends BigNumber

A Factorial number is a big number where the ith digit must be in [0, i]. There are size! of them.

See Also:
FactorialNumber's wiki page, neoitertools site

Field Summary
 
Fields inherited from class net.ericaro.neoitertools.generators.combinatorics.BigNumber
base, size
 
Constructor Summary
FactorialNumber(int size)
           
 
Method Summary
protected  void inc()
          increment this big number by one
 
Methods inherited from class net.ericaro.neoitertools.generators.combinatorics.BigNumber
next, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactorialNumber

public FactorialNumber(int size)
Method Detail

inc

protected void inc()
Description copied from class: BigNumber
increment this big number by one

Specified by:
inc in class BigNumber


Copyright © 2011. All Rights Reserved.