Question 70Asked in Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)

The minimum number of productions required to produce a language consisting of palindrome strings over ∑={a,b} isPalindrome स्ट्रिंग्स से युक्त भाषा का उत्पादन करने के लिए आवश्यक प्रस्तुतियों की न्यूनतम संख्या, = {a, b} पर है

Palindrome स्ट्रिंग्स से युक्त भाषा का उत्पादन करने के लिए आवश्यक प्रस्तुतियों की न्यूनतम संख्या, = {a, b} पर है
  1. A33
  2. B77
  3. C55
  4. D66
Show answerHide answer

Correct answer: (C) 55

Explanation

S → aSa | bSb | a | b | ε generates all palindromes over {a, b}: two productions for the outer pairs, two for odd-length centres and ε for even length, 5 in total.S → aSa | bSb | a | b | ε, {a, b} पर सभी palindrome बनाता है: बाहरी जोड़ों के लिए दो productions, विषम लंबाई के केंद्र के लिए दो और सम लंबाई के लिए ε, कुल 5।

From Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 1 (10:00 AM)

This is question 70 of Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 1 (10:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.