Exercise · ZW-INCLUSION-EXCLUSION-PRINCIPLE-001 · ★☆☆ Basic

If \(|A|=12\), \(|B|=9\) and \(|A\cap B|=4\), what is \(|A\cup B|\)?

Choose one option.

Show answer
  • B. \(17\)

Explanation

\(|A\cup B|=12+9-4=17\). Adding without subtracting gives 21 and counts the 4 shared elements twice.

Study Discrete mathematics in ZWMath →

Review the concept: Inclusion-exclusion principle

It counts the elements of the union of finite sets \(A\), \(B\), \(C\), … by adding their sizes and correcting what was counted too often in the intersections.

\[\begin{aligned}|A\cup B|&=|A|+|B|-|A\cap B|\\|A\cup B\cup C|&=|A|+|B|+|C|\\&\quad-|A\cap B|-|A\cap C|-|B\cap C|\\&\quad+|A\cap B\cap C|\end{aligned}\]

More practice problems: inclusion-exclusion principle

ZW-INCLUSION-EXCLUSION-PRINCIPLE-002 →