Call a regular expression star-freeif it does not contain any star operations.Then,let

EQSF-REX=(R,S)|RandSareequivalentstar-freeregularexpressions. Show thatEQSF-REX is in coNP. Why does your argument fail for general regular expressions?

Short Answer

Expert verified

It can be fail in general regular language because there is no such type of string accepted by the language.

Step by step solution

01

To Recognition of language 

To show that the language is in NP, there should be a Nondeterministic turning machine NTM that recognize the language in polynomial time.

02

To explain the regular languages

Let's say string x inis in the following form:

  • X is not a viable representation of two regular languages.
  • Although X is of the acceptable form (R,S), neither R nor S, nor both, are star-free.
  • R and S are both star-free, butL(R)L(S)then X is of the valid form (R,S).

So If x is in the first and second forms, a DTM can accept it in polynomial time. If x is in the third form, then y must be in one of the L(R) or L(L) forms (S). The length of y is polynomial in the size of |R|+|S| when R and S are star-free and L(R)=L(S)As a result, an NTM exists.

It can be fail in general regular language because there is no such type of string accepted by the language.

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 Vaia!

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

This problem investigates resolution, a method for proving the unsatisfiability of cnf-formulas. Let ϕ=C1C2Cmbe a formula in cnf, where the Ciare its clauses. Let C=CiCiisaclauseofϕ. In a resolution step, we take two clauses Caand Cbin C, which both have some variable occurring positively in one of the clauses and negatively in the other. Thus, Ca=xy1y2ykand Cb=x¯z1z2zl, where the and are literals. We form the new clause y1y2ykz1z2zland remove repeated literals. Add this new clause to C. Repeat the resolution steps until no additional clauses can be obtained. If the empty clause ( ) is in C, then declare ϕunsatisfiable. Say that resolution is sound if it never declares satisfiable formulas to be unsatisfiable. Say that resolution is complete if all unsatisfiable formulas are declared to be unsatisfiable.

a. Show that resolution is sound and complete.

b. Use part (a) to show that 2SATP.

Consider the following scheduling problem. You are given a list of final exams F1,...,Fk to be scheduled, and a list of students S1,...,Sl. Each student is taking some specified subset of these exams. You must schedule these exams into slots so that no student is required to take two exams in the same slot. The problem is to determine if such a schedule exists that uses only slots. Formulate this problem as a language and show that this language isNPcomplete.

Show that NPis closed under union and concatenation.

In the proof of the Cook–Levin theorem, a window is a 2×3rectangle of cells. Show why the proof would have failed if we had used role="math" localid="1664195743361" 2×2windows instead.

A triangle in an undirected graph is a 3-clique. Show thatTRIANGLEP , whereTRIANGLE=<G>|Gcontainsatriangle.

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