Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Igpay Atinlay.) Pig Latin is a simple word transformation that is popular among children, at least in the U.S. It involves rotating words, as in

(Igpay Atinlay.) Pig Latin is a simple word transformation that is popular among children, at least in the U.S. It involves rotating words, as in the example above. For this problem you are to investigate a simplified form of it. Well consider the alphabet {a, b}. First note that any string has a maximal prefix composed only of as. Call this the a-prefix. Note that every string x has a unique factorization as zw, where z is the a-prefix.

a) Let PL(zw) = wz, where z,w are as above. Show that a Mealy machine cannot compute PL. (Use the prefix property.)

b) Show how a one-tape Turing machine could compute PL. Suppose the input string has length n. Give a bound on the worst-case running time of your Turing machine, as a function of n. (A big-O result is acceptable.)

Does anyone know how to solve b)?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions