/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} 1E Show that EQCFG is undecidable.... [FREE SOLUTION] | 91影视

91影视

Show that EQCFG is undecidable.

Short Answer

Expert verified

We will show that EQCFG is undecidable.

Step by step solution

01

Defining Undecidablity

Any problem whose corresponding Turing Machine never halt to answer 鈥榊ES鈥 or 鈥楴O鈥 is known as Undecidable. So for such problem, we cannot create an algorithm which gives the result in infinite time.

02

Proving EQCFG is undecidable

In order to prove that EQCFGis undecidable, we will reduce our desired result from ALLCFG.

ALLCFGis defined as:

ALLCFG={G|GisaCFGandL(G)=*}

By contraction method, ALLCFGis undecidable.

Let assume:

EQCFG={(G1,G2)|G1andG2

are CFGssuch that LG1=LG2}

Here,

CFG=ContestFreeGrammar

G1andG2=Grammar1andGrammar2respectively

L(G1)=LanguageforG1

L(G2)=LanguageforG2

Let, R=DeciderforEQCFG

So by the use of R, construct Decider S for ALLCFGby following steps:

S: By input where G is the Context Free Grammar on the set of terminals :

  • Let G1is Context Free Grammar that have S as starting non-terminal for which every follow the rule SaSand Sterminaland LG1=*i.e., language L of Grammar G1contain all the strings in .
  • Execute R on
  • If R got accepted then S will also be 鈥渁ccepted鈥

Else

If R got rejected then S will also be 鈥渞ejected鈥.

This clearly shows that S is a decider for ALLCFG. But S doesn鈥檛 exist as ALLCFGis undecidable, so our assumption is contradicted.

Hence conclude that EQCFGis undecidable by using the result that ALLCFG is undecidable.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91影视!

One App. One Place for Learning.

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

Get started for free

Study anywhere. Anytime. Across all devices.