Question

Suppose that the following subset T of binary strings is defined recursively: • Basis: 1 is in T • Recursively, if the binary
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. okay let's prove it by the straight forward approach.
Start with the initial bit and use the rule to generate the desired number

=> Base is 1
=> then if 1 is in T then 10 will be in T because if s is in T then s0 will be in T
=> then if 10 is in T then 100 will be in T with the same logic
=> then if 100 is in T then 11001 will be in T because if s is in T then so is 1s1
=> then if 11001 is in T then 011001 will be in T, because if s is in T then so is 0s

so here we showed that if 1 is in T which is given, and given the recursive rules we can create the desired bit sequence which proves that 011001 is in T

2. if any string in T of length n has odd numbers of 1s then,
   possible sequences of length n+1 will be:
       0s, s0, 1s1, 11s, s11
   there is this observation that every new sequence has odd numbers of 1s because we are adding two 1s always otherwise single 0
   that concludes that every bit sequence of length n+1 will contain an odd number of 1s

In short, we know that if the sequence of length n contains an odd number of 1s then bit sequence of length n+1 in T will also contain an odd number of 1s
Now transiting this logic one step ahead, if the sequence of length n+1 in T contains an odd number of 1s then any sequence of length n+2 in T will also contain an odd number of 1s

hence proved that if the bit sequence in T of length n contains an odd number of 1s then bit sequence of length n+2 in T will also contain an odd number of 1s

Add a comment
Know the answer?
Add Answer to:
Suppose that the following subset T of binary strings is defined recursively: • Basis: 1 is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT