edited by
504 views
0 votes
0 votes

Show that all binary strings generated by the following grammar have

  1. values divisible by $3$. Hint. Use induction on the number of nodes in a parse tree. $$num\rightarrow 11 \mid 1001 \mid num \ 0 \mid num \ num$$
  2. Does the grammar generate all binary strings with values divisible by $3$?  
edited by

Please log in or register to answer this question.

Related questions