3 ms·
I'm not seeing De Morgan. I am seeing inclusion exclusion, which is just a neat trick all round. Highly recommend remembering it. I imagine negative filters to
by contravariant 1y ago
I'm not seeing De Morgan. I am seeing inclusion exclusion, which is just a neat trick all round. Highly recommend remembering it.
I imagine negative filters to be a bit inefficient as well, though maybe not for a simple count.
- alterom 1y agoInclusion-exclusion is just the generalization of De Morgan's law for more than 2 sets. And the example shows exactly two sets. So it's exactly De Morgan's law.