com.cra.figaro.algorithm.factored
The cost of a set of factors is the sum of the costs of the individual factors.
The cost of a factor is the number of entries in it, which is the product of the ranges of its variables.