2080 8

CSC262 · 2080 · 5 marks

Design a PDA over {x,y} which accepts strings defined by the language Show acceptance of xxyy. L = xn yn xy mid n geq 0

Design a PDA over {x,y} which accepts strings defined by the language Show acceptance of xxyy. $L = {x^n y^n xy \mid n \geq 0}$ [5]

Theory of ComputationChapter 5: Push Down AutomataConstruction of PDA by Final StateNumerical: PDA design and acceptance
  • Language: $L = {x^n y^n xy \mid n \geq 0}$ - Alphabet: $\Sigma = {x, y}$ - String to trace for acceptance: xxyy The problem asks to show acceptance of xxyy. Let us check whether "xxyy" is in $L$. A string in $L$ has the form $x^n y^n xy$, i.e. it always ends with the literal suffix "xy". - ...