سوال ۹۷ کنکور ارشد علوم کامپیوتر ۱۳۹۹
جدول ارزشها را برای تشکیل دادهایم. چه تعداد ۱ در ستون آخر آن دیده میشود؟
پاسخ صحیح: گزینهٔ D — ۱۹
There are 5 propositional variables , so the table has rows. Write the formula as , where depends only on .
Step 1 — count the 1's of the inner part (over its 16 rows). An implication is false only when is true and is false. So is false exactly when is true and is false.
- is true in of the -combinations.
- is false in exactly of the -combinations (namely ).
Hence is false in rows, so it is true in rows and false in rows.
Step 2 — bring in via (over all 32 rows). Split on the value of :
| case | rows | value of | number of 1's |
|---|---|---|---|
| 16 | always | ||
| 16 | (the rows where ) |
When the formula equals , which is true on exactly the rows where is false.
Total 1's .
Pitfall: Read the bracketing carefully — here is the consequent (), not the antecedent. The mirror formula would have ones, which is not an option. Putting on the wrong side is the trap.