Question: ( 9 marks ) Based on our discussion of strings and languages in class, list all of the strings in each of the languages below.
marks Based on our discussion of strings and languages in class, list all of the strings in each
of the languages below. A first example is provided for you. See the bottom of the page for some
reminders of definitions, etc.
L
m
n
m n in Z
nonneg, m n
Answer: L
a Lw in a b
w and naw is even
b La
mb
nc
p
m n p in Z
nonneg, m n p m n n p
c Lw in a b c
w naw nbw nbw ncw
Reminders:
Z
nonneg is the set of nonnegative integers,
a b
is the set of all possible strings of as and bs which includes the empty string
is an even number.
naw is the number of as in the string w nbw is the number of bs in the string w etc.
The notation w represents the length of string w
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
