# three variables with two levels (values) each
noflevels <- c(2, 2, 2)
# row 14 of the implicant matrix corresponding to the configuration
# containing the first value of all variables
getRow(noflevels = noflevels + 1, row.no = 14) - 1
# row numbers of the implicant matrix which correspond to supersets
# of this configuration
(rows <- findSupersets(noflevels + 1, input.combs = 14))
# corresponding matrix representation of these rows
getRow(noflevels = noflevels + 1, row.no = rows) - 1
# now for rows 14 and 17
getRow(noflevels = noflevels + 1, row.no = c(14, 17)) - 1
(rows <- findSupersets(noflevels + 1, input.combs = c(14, 17)))
getRow(noflevels = noflevels + 1, row.no = rows) - 1
# in matrix representation
(input.combs <- getRow(noflevels + 1, row.no = c(14, 17)))
findSupersets(noflevels + 1, input.combs = input.combs)
Run the code above in your browser using DataLab