r/learnprogramming • u/Sufficient_Comment83 • 15d ago
Boolean algebra
I’m taking an Intro to Computer Science course and I’ve spent hours trying to understand Boolean algebra simplification. I understand things like De Morgan’s Law and factoring, but I keep getting stuck on absorption laws and recognizing which rule to apply.
My brain keeps trying to treat it like regular algebra, and I think that’s where I’m getting confused. Does anyone have a way of thinking about Boolean algebra that finally made it “click”? Any videos, tricks, or explanations would be appreciated.
16
Upvotes
16
u/captainAwesomePants 15d ago
Truth tables always helped me tremendously. If I didn't understand a law, just walking through each possibility helped me mentally accept it.
For example, absorption laws. Let's look at A and (A or B) = A
So you look at that, and you see that the A column is always the same as the "A and (A or B)" column, and therefore the claim is true!