سوال ۵۲ کنکور ارشد مهندسی کامپیوتر ۱۴۰۱
زبان پذیرفته شده توسط پذیرنده پشتهای PDA روبهرو، کدام گزینه است؟ ( تعداد حرف در رشته را مشخص میکند.)
پاسخ صحیح: گزینهٔ A —
We read the PDA as a counter machine accepting by empty stack.
State (start) as a counter. Track the signed quantity ; the stack stays homogeneous, so its height is .
- Reading : either push () or pop a (). Both give .
- Reading : either push () or pop an (). Both give .
So after a prefix processed in , and the stack holds copies of the surplus symbol.
Move to . Both -transitions ( and ) raise by , biasing the surplus toward .
State consumes only 's. Its loops (push ) and (pop ) read no , so the tail is a block . Because every accepted run ends by emptying the stack while the second phase only adds -surplus, accepted strings must have an excess of over : The two -moves plus the pushes/pops let the -surplus grow by at most a fixed multiple of the -count before the empty-stack condition can no longer be met, giving the upper bound Together this matches option 1: .
Options 2 and 4 require , contradicting the -biased second phase; option 3 caps the surplus too tightly ( instead of ). Hence option 1 is the best-justified choice.
Note: This question was officially removed from scoring (حذف) in the answer key.