hws/hw01.tex
changeset 294 c29853b672fb
parent 293 ca349cfe3474
child 331 a2c18456c6b7
equal deleted inserted replaced
293:ca349cfe3474 294:c29853b672fb
    40   of the strings is the empty string. How many strings are in $A \,@\, B$?
    40   of the strings is the empty string. How many strings are in $A \,@\, B$?
    41 
    41 
    42 \item How is the power of a language defined? (Hint: There are two
    42 \item How is the power of a language defined? (Hint: There are two
    43   rules, one for $\_^0$ and one for $\_^{n+1}$.)
    43   rules, one for $\_^0$ and one for $\_^{n+1}$.)
    44 
    44 
    45 \item Let $A = \{[], [a], [b], [c]\}$. How many strings are in $A^4$?
    45 \item Let $A = \{[a], [b], [c], [d]\}$. How many strings are in $A^4$?
       
    46   Consider the case of $A^4$ where one of the strings in $A$ is the 
       
    47   empty string.
    46 
    48 
    47 \item How many regular expressions are there to match the string
    49 \item How many regular expressions are there to match the string
    48   $abc$? How many if they cannot include $\epsilon$ and $\varnothing$?
    50   $abc$? How many if they cannot include $\epsilon$ and $\varnothing$?
    49   How many if they are also not allowed to contain stars? How many if
    51   How many if they are also not allowed to contain stars? How many if
    50   they are also not allowed to contain $\_ + \_$?
    52   they are also not allowed to contain $\_ + \_$?