
Last chance! 50% off unlimited learning
Sale ends in
This function calculates the number of all possible combinations of conditions (including all levels for each condition), at a given complexity layer.
complexity(n, layers, noflevels)
Numeric scalar, the number of input conditions.
Numeric vector, the complexity layer(s) with values from 1 to n.
Numeric vector containing the number of levels for each of the n conditions.
A numeric vector.
These are the number of combinations which the CCubes algorithm (Dusa, 2018) checks to determine the prime implicants from a minimization process.
In the bottom-up approach, CCubes first checks for single conditions (combinations of both presence and absence, or more levels if multi-value), then all possible combinations of levels for two conditions etc.
The precise equation that partitions the search space into complexity layers is:
where
Dusa, A. (2018) “Consistency Cubes: A Fast, Efficient Method for Boolean Minimization”, R Journal, 10.32614/RJ-2018-080
# NOT RUN {
complexity(3) # all layers from 1 to 3
complexity(5, layers = 2)
# }
Run the code above in your browser using DataLab