Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

A two-dimensional finite automaton (2DIM-DFA) is defined as follows. The input is an m×nrectangle, for any m,n2. The squares along the boundary of the rectangle contain the symbol # and the internal squares contain symbols over the input alphabet . The transition function δ:Q×#Q×L,R,U,Dindicates the next state and the new head position (Left, Right, Up, Down). The machine accepts when it enters one of the designated accept states. It rejects if it tries to move off the input rectangle or if it never halts. Two such machines are equivalent if they accept the same rectangles. Consider the problem of determining whether two of these machines are equivalent. Formulate this problem as a language and show that it is undecidable.

Short Answer

Expert verified

The language in given question is undecidable

Step by step solution

01

Undecidable

A problem is undecidable if no Turing Machine exist which will halt in finite amount of time.

02

Formulating language and proving it undecidable

In order to check undecidability of two-dimensional finite automatonE2DIM-DFA, we have to reduceATMby m intoE2DIM-DFAusing map reductionM,wto B.

This means, if w is accepted by Turing Machine M, then language L(B) must be non-empty otherwise L (B) must be empty.

We can get this by making L (B) as set of accepting all the histories of TM M on w.B can be consider as matrix that represent computational historyc1,c2,.....cksuch as: c1is in 1strow, c2in 2ndrow and so on.

So for given rectangular matrix, B will check initial configuration of TM M on w is in 1strow or not and last row is accepting or final configuration. B also works as checking of each row that must follow the previous row as according to TM M .

Now, if M accepts w, that means there exist an accepting configuration history of TM M on w and L (B) is non-empty.

But if L (B) is empty, there is no accepting configuration history of TM M on w.

Thus,m -reduction mapping fromATM toE2DIM-DFA is undecidable.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Examine the following formal descriptions of sets so that you understand which members they contain. Write a short informal English description of each set.

  1. {1,3,5,7,...}
  2. {...,-4,-2,0,2,4,...}
  3. {n|n=2mfor someminN}
  4. {n|n=2mfor someminN, andn=3kfor somekinN}
  5. {w|wis a string of0sand1sandwequals the reverse ofw}
  6. {n|nis an integer andn=n+1}

In the following solitaire game, you are given anm×m board. On each of itsm2 positions lies either a blue stone, a red stone, or nothing at all. You play by removing stones from the board until each column contains only stones of a single color and each row contains at least one stone. You win if you achieve this objective. Winning may or may not be possible, depending upon the initial configuration. LetSOLITAIRE={<G>|G is a winnable game configuration}. Prove that SOLITAIREis NP-complete.

Consider the language B=L(G), where Gis the grammar given in

Exercise 2.13. The pumping lemma for context-free languages, Theorem 2.34,

states the existence of a pumping length p for B . What is the minimum value

of p that works in the pumping lemma? Justify your answer.

Let =0,1. Let B be the collection of strings that contain at least one 1 in their second half. In other words,

a. Give a PDA that recognizes B

b. Give a CFG that generates B .

Let

3=000,001,010,----,111

3contains all size 3 columns of 0s and 1 s. A string of symbols in3gives three rows of 0s and 1s. Consider each row to be a binary number and let B=W*3the bottom row of W is the sum of the top two rows}.

For example,

001,100,010,110Bbut001,101B

Show that Bis regular.

(Hint: Working with BRis easier. You may assume the result claimed in Problem 1.31.)

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free