You are on page 1of 1

FSM MR-SRA1

Comuting Theory Homework # 1

Question 1
Design a DFA over Σ = {0, 1} that accepts all strings which are divisible by 3 when converted to decimal.

Question 2
Design a DFA over Σ = {0, 1} that accepts all strings which are divisible by 4 when converted to decimal.

Question 4
Design a DFA over Σ = {a, b} that accepts all strings which contain aba as a substring and does not end
with ba.

Question 5
Design an NFA over Σ = {0, 1} that accepts all strings which are divisible by 3 when converted to decimal
or the number of 1s is divisible by 4.

Question 6
Design an NFA (not a DFA) that accepts all string over the alphabet {0, 1} in which the sum of the last
three digits is odd.

Question 7
Design an NFA for the following language:
L = {0k | k is a multiple of 2 or 3 }

Question 8
Transform the following regular expression into an equivalent NFA: (0 ∪ 0∗ 1)

Question 9
Show that the following language is not regular: {02k 1i 0j | i + j < 2k}

Question 10
Show that the following language is not regular: {0k 1i 0j | i + j < k}

Question 11
Show that the following language is not regular: {w | w ∈ {0, 1}∗ } such that the number of 0s is twice the
number of 1’s

You might also like