- All Implemented Interfaces:
Iterator<int[]>
Iterates over all subsets of the set {0,1,...,n-1}.
- Author:
- Cristian Frăsinaru
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SubsetIterator
public SubsetIterator(int n)
-
Method Details
-
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<int[]>
-
next
public int[] next()
- Specified by:
next in interface Iterator<int[]>