Question

Show that L = {anbmanbm | n,m belongs to N} is Turing-recognisable, by precisely describing a...

Show that L = {anbmanbm | n,m belongs to N} is Turing-recognisable, by precisely describing a Turing machine M with L(M) = L.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Let's go though it using an example aabbbaabbb

STAGE 1

  1. Mark one a as blank symbol: >abbbaabbb
  2. Any of the two
    1. Move right over all a's: a>bbbaabbb
    2. If b comes instead of a, go to STAGE 2 (by this time the string is >bbbxabbb)
  3. Move right over all b's and x's: abbb>aabbb
  4. Mark one a as x: abbbx>abbb
  5. Go to the left most and go to step 1

STAGE 2

  1. Move right on b's and x's, then mark one a as x and go to the left most: bbbxxbbb
  2. Mark one b as blank and go to the right most and mark one b as blank (bbxxbb, bxxb, xx)
  3. Do above as long as there are b's
  4. Once all b's are over, if string has only x's, accept
Add a comment
Know the answer?
Add Answer to:
Show that L = {anbmanbm | n,m belongs to N} is Turing-recognisable, by precisely describing a...
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