boolean_algebra.quine_mc_cluskey

Functions

check(→ list[str])

compare_string(→ str | Literal[False])

decimal_to_binary(→ list[str])

is_for_table(→ bool)

main(→ None)

prime_implicant_chart(→ list[list[int]])

selection(→ list[str])

Module Contents

boolean_algebra.quine_mc_cluskey.check(binary: list[str]) list[str]
>>> check(['0.00.01.5'])
['0.00.01.5']
boolean_algebra.quine_mc_cluskey.compare_string(string1: str, string2: str) str | Literal[False]
>>> compare_string('0010','0110')
'0_10'
>>> compare_string('0110','1101')
False
boolean_algebra.quine_mc_cluskey.decimal_to_binary(no_of_variable: int, minterms: collections.abc.Sequence[float]) list[str]
>>> decimal_to_binary(3,[1.5])
['0.00.01.5']
boolean_algebra.quine_mc_cluskey.is_for_table(string1: str, string2: str, count: int) bool
>>> is_for_table('__1','011',2)
True
>>> is_for_table('01_','001',1)
False
boolean_algebra.quine_mc_cluskey.main() None
boolean_algebra.quine_mc_cluskey.prime_implicant_chart(prime_implicants: list[str], binary: list[str]) list[list[int]]
>>> prime_implicant_chart(['0.00.01.5'],['0.00.01.5'])
[[1]]
boolean_algebra.quine_mc_cluskey.selection(chart: list[list[int]], prime_implicants: list[str]) list[str]
>>> selection([[1]],['0.00.01.5'])
['0.00.01.5']
>>> selection([[1]],['0.00.01.5'])
['0.00.01.5']