Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Let S be the set of all strings in a ' s and b ' s , and define C: S - > S by
Let S be the set of all strings in as and bs and define C: S S by Cs as for each s in S C is called concatenation by a on the left. a Is C onetoone? To answer this question, suppose s and s are strings in S such that Cs Cs Use the definition of C to write this equation in terms of a s and s as follows. as Correct: Your answer is correct. Now strings are finite sequences of characters, and since the strings on both sides of the above equation are equal, for each integer n the nth character from the left in the lefthand string equals Changed: Your submitted answer was incorrect. Your current answer has not been submitted. the nth character from the left Correct: Your answer is correct. in the righthand string. It follows that for each integer n the nth character from the left in s equals Changed: Your submitted answer was incorrect. Your current answer has not been submitted. the nth character from the left Correct: Your answer is correct. in s Hence, s Correct: Your answer is correct. s and so C is Correct: Your answer is correct. onetoone. b Show that C is not onto. Counterexample: The string Incorrect: Your answer is incorrect. is in S but is not equal to Cs for any Correct: Your answer is correct. string s because every string in the range of C starts Correct: Your answer is correct. with Incorrect: Your answer is incorrect.
Let S be the set of all strings in as and bs and define
C: S S
by
Cs as
for each
s in S
C is called concatenation by a on the left.
a
Is C onetoone?
To answer this question, suppose
s
and
s
are strings in S such that
Cs Cs
Use the definition of C to write this equation in terms of a
s
and
s
as follows.
as
Correct: Your answer is correct.
Now strings are finite sequences of characters, and since the strings on both sides of the above equation are equal, for each integer
n
the nth character from the left in the lefthand string
equals
Changed: Your submitted answer was incorrect. Your current answer has not been submitted.
the nth character from the
left
Correct: Your answer is correct.
in the righthand string. It follows that for each integer
n
the nth character from the left in
s
equals
Changed: Your submitted answer was incorrect. Your current answer has not been submitted.
the nth character from the
left
Correct: Your answer is correct.
in
s
Hence,
s
Correct: Your answer is correct.
s
and so C
is
Correct: Your answer is correct.
onetoone.
b
Show that C is not onto.
Counterexample: The string
Incorrect: Your answer is incorrect.
is in S but is not equal to
Cs
for
any
Correct: Your answer is correct.
string s because
every string in the range of C starts
Correct: Your answer is correct.
with
Incorrect: Your answer is incorrect.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started