edited by
779 views
1 votes
1 votes

Let $\Sigma = \{0,1\}$ and let $B$ be the collection of strings that contain at least one  $1$ in their second half. In other words, $B = \{uv \mid u \in \Sigma^{\ast}, v \in \Sigma^{\ast}1\Sigma^{\ast}\: \text{and} \mid u \mid \geq \mid v \mid \}$.

  1. Give a PDA that recognizes $B$.
  2. Give a CFG that generates $B$.
edited by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
0 answers
1
0 votes
0 votes
0 answers
4