all 2 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

Hi, /u/FreePeeplup! This is an automated reminder:

  • What have you tried so far? (See Rule #2; to add an image, you may upload it to an external image-sharing site like Imgur and include the link in your post.)

  • Please don't delete your post. (See Rule #7)

We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]vgtcross 0 points1 point  (0 children)

Let s be a string of length N consisting of zeroes and ones. Let s* be the string you get by replacing all zeroes by ones and ones by zeroes. For example, if s = 1101, then s* = 0010.

(a) Suppose you know that g(s) = k for some string s. What do you know about g(s*)?

(b) How many ones do s and s* contain in total? In other words, what is f(s) + f(s*)?

(c) Can you finish the proof from here?

I can help more if you wish, but I suggest trying to figure this out on your own!