Logic homework help!?

X Y Z P
F F F T
F F T T
F T F F
F T T T
T F F F
T F T T
T T F T
T T T F

simple enough, one has to operate on X, Y and Z using the &&, ||, or ! operator to make it equal to P.

I’ve been doing this question for hours now with no solution that fits all the dataset. :mad:

any one?

filler text

Hi mpan3, using Karnaugh map reduction I got
f = (!X && !Y) || (!X && Z) || (!Y && Z) || (X && Y && !Z)
I dare say there’s probably a simpler answer but the Karnaugh maps know all… :wink: Hope it helps.