Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

please help me in defining the language of strings of length 3over "sigma"={#,%,@} b) reverse of it c)if any palindrome identify

OpenStudy (anonymous):

a) \(L=\{x \in \{\#, \%, @\}^* : |x| > 3\}\) b) \(\overline{L}=\{x \in \Sigma^* : x \not\in L\}\) Let \(PAL\) be the language accepted by the following CFG: S \(\to\) #S# S \(\to\) %S% S \(\to\) @S@ S \(\to\varepsilon\)

OpenStudy (anonymous):

good answer, but two things... to make this problem tractable the string length is 3 |x|=3 and %@% @#@ ### #%# are palindromes going to need one more state, but it's almost there

OpenStudy (anonymous):

how to get palindrome?

OpenStudy (anonymous):

the language consisting of null string and rev(s)=s are the two specific conditions for palindrome so how can we get palindrome in this language as its strings dose not consists of null string sigma -{#%@}

OpenStudy (anonymous):

for all palindromes length 3, how about S → #A# S → %A% S → @A@ A → # A → % A → @

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!