Solved

Let SS Be the Set of All Strings in 0's and 1's

Question 2

Essay

Let SS be the set of all strings in 0's and 1's, and define a function F:SZnonneg F : S \rightarrow \mathbf { Z } ^ { \text {nonneg } } as follows: for all strings ss in SS ,
F(s)= the number of 1 ’s in s.F ( s ) = \text { the number of } 1 \text { 's in } s .
(a) What is F(001000)?F(111001)F ( 001000 ) ? F ( 111001 ) ? F(10101)F ( 10101 ) ? F(0100)F ( 0100 ) ?
(b) Is FF one-to-one? Prove or give a counterexample.
(c) Is FF onto? Prove or give a counterexample.
(d) Is FF a one-to-one correspondence? If so, find F1F ^ { - 1 } .

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents