Let a x y and let a be the set of all strings of finite


Question: Let A = {x, y} and let A* be the set of all strings of finite length made up of symbols from A. A function f: A* → Z is defined as follows: For s in A*, f(s) = the number of x's minus the number of y's. Is f oneto-one? Prove or disprove. Is f onto? Prove or disprove.

2. Let A = [x, y} and let A* be the set of all strings of finite length made up of symbols from A. A function f: A* → A* is defined as follows: For s in A*, f(s) is the string obtained by writing the characters of s in reverse order. Is f one-to-one? Prove or disprove. Is f onto? Prove or disprove.

3. Let A = {x, y} and let A* be the set of all strings of finite length made up of symbols from A. A function f: A* S A* is defined as follows: For s in A*, f(s) = xs (the single-character string x followed by s). Is f one-to-one? Prove or disprove. Is f onto? Prove or disprove.

Solution Preview :

Prepared by a verified Expert
Mathematics: Let a x y and let a be the set of all strings of finite
Reference No:- TGS02432122

Now Priced at $15 (50% Discount)

Recommended (90%)

Rated (4.3/5)