Can a DFA recognize a palindrome number?क्या एक DFA एक पैलिंड्रोम नंबर को पहचान सकता है?
क्या एक DFA एक पैलिंड्रोम नंबर को पहचान सकता है?
Show answerHide answer
Correct answer: (B) Noनहीं
Explanation
Recognising palindromes requires remembering an unbounded first half to compare with the second half. A DFA has finite memory, so palindromes are not regular; a PDA is needed.Palindrome पहचानने के लिए पहली अनबाउंडेड आधी स्ट्रिंग याद रखनी पड़ती है ताकि दूसरी आधी से तुलना हो। DFA की मेमोरी सीमित है, इसलिए palindrome regular नहीं हैं; PDA चाहिए।