boolean-logic
I'm having issues with applying De Morgan's Law ... Feedback?
Every time one of these questions c开发者_开发百科omes up in my assignments I get it wrong...can anyone help me understand?Or is the teacher\'s key off?(There is no way for me to know as I\'m not give[详细]
2023-02-19 06:15 分类:问答Simplify boolean expression algorithm
Anybody knows of an algorithm to simplify boolean expressions? I remember the boolean algebra and Karnaught maps, but 开发者_StackOverflow中文版this is meant for digital hardware where EVERITHING is[详细]
2023-02-17 09:49 分类:问答Boolean Logic Design - Reduction
I have the following function to be reduced/simplified. F(A,B,C,D) = BC + (A + C\'D\') where \' denotes the complement[详细]
2023-02-14 04:10 分类:问答Applying Order Of Boolean Precedence
I\'m just wishing to clarify my understanding of how the order of boolean precedence is applied in expressions. I\'ll give an example using the following order of precedence:[详细]
2023-02-13 18:22 分类:问答Proving the Associativity of OR
I need help proving the following: (a ∨ b) ∨ c = a ∨ (b ∨ c) I don\'t want the开发者_JAVA百科 answer... just a hint that will help me understand the process of proving this.[详细]
2023-02-11 21:04 分类:问答Is it efficient to perform individual, nested if statements?
I\'m working on the following problem: You are driving a little too fast, and a police officer stops you. Write code to compute the 开发者_JS百科result, encoded as an int value: 0=no ticket, 1=small[详细]
2023-02-10 08:03 分类:问答Prolog SAT Solver
I\'m trying to build a simple Prolog SAT solver. My idea is that the user should enter the boolean formula to be solved in CNF (Conjuctive Normal Form) using Prolog lists, for example (A or B) and (B[详细]
2023-02-09 08:51 分类:问答Implementing logical negation with only bitwise operators (except !)
~ & ^ | + << >> are the only operations I can use Before I continue, this is a homework question, I\'ve been stu开发者_开发技巧ck on this for a really long time.[详细]
2023-02-05 21:07 分类:问答Or statements problem in python
Or statements in python do not seem to work as in other languages since: -1 < 0 | 0<0 returns False (should retu开发者_高级运维rn true since -1<0 is True)[详细]
2023-02-01 19:35 分类:问答Array AND() ? Logical ANDing of all elements
I have an array and I want to find out if there is at least one false value in it. 开发者_StackOverflow社区I was thinking of creating an array_and() function, that just performs a logical AND on all t[详细]
2023-01-27 21:35 分类:问答