Examlex

Solved

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

question 17

Essay

Let SS be the set of all strings in 0's and 1's, and define a function gg : SZS \longrightarrow \mathbf { Z } as follows: for each string ss in SS ,
g(s)=g ( s ) = the number of 1's in ss minus the number of 0 's in s.s .
(a) What is g(101011)?g(00100)g ( 101011 ) ? g ( 00100 ) ?
(b) Is gg one-to-one? Prove or give a counterexample.
(c) Is gg onto? Prove or give a counterexample.


Definitions:

Competition

The activity or condition of striving to gain or win something by defeating or establishing superiority over others.

Confrontation

A direct engagement or encounter between individuals or groups over a disagreement or conflict.

Menarche

The first occurrence of menstruation in a female, marking the beginning of reproductive capability.

Euphemisms

Mild or indirect words or expressions used in place of ones considered harsh or blunt when referring to something unpleasant or embarrassing.

Related Questions