volume_mute

What is the number of rows in a truth table for a well-formed formula that has n different statement letters?

publish date2022/06/15 09:07:00 GMT+10

volume_mute
  1. 2 * n
  2. 2 + n
  3. n2
  4. 2n
a
b
c
d

Correct Answer

d

Explanation

For a single statement letter, you have two possibilities T or F

For a two statement letters formula, you have two possibilities for each one, and the permutation = 2 * 2 = 4, or 22

For 3 letters, permutation = 2 * 2 * 2 = 23

So for letters formula, it will be 2n

Have a look into the below binary tree

truth-table-tree.png

Reference

Mathematical Structures for Computer Science, Discrete Mathematics and its Applications, seventh edition, go-math-science.com


Quizzes you can take where this question appears