The next subset
Returns for a subset the next subset
ssetNext(set)
set |
the size of the full set, or the indexes of subset for which the next we will |
When it is a natural number, then the program take it as the size of the full set, and returns the indicator of the first subset, which is a zero vector of the given length. If it is zero-one vector, then it read it as a subset indicator, and returns the indicator of the lexicographic next subset.
The next subset in lexicographic oder.
ssetNext(4)# 0 0 0 0 ssetNext(c(1,0,1,0)) # 1 0 1 1 ssetNext(c(0,1,1,1)) # 1 0 0 0 ssetNext(c(1,1,1,1)) # 4
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.