سوال ۹۸ کنکور ارشد علوم کامپیوتر ۱۳۹۷
اهمیت
۰/۵
فرمول گزارهای زیر، چه تعداد زیرفرمول گزارهای دارد؟
پاسخ صحیح: گزینهٔ C — ۱۱
پاسخ تشریحی
A subformula is any formula that appears as a node in the formation (parse) tree of the given formula. We count the distinct subformulas (each atomic letter is counted once).
The formula is
Atomic subformulas (4):
Compound subformulas, built bottom-up (7):
- (the whole formula)
Total: subformulas, so the answer is option 3.
Exam trick: Count distinct subformulas, not parse-tree nodes. Here and each occur twice, but each distinct atomic letter is counted only once. A quick check: the number of compound subformulas equals the number of logical connectives ( = 7), and adding the distinct atoms ( = 4) gives .
#propositional-logic#subformula#parse-tree#formula-structure#connectives