Letxandy be strings and let L be any language. We say that x and y are distinguishable by L if some string Z exists whereby exactly one of the stringsxzandyz is a member of L ; otherwise, for every string z , we have xzLwhenever yzLand we say that are indistinguishable by L. If xandyare indistinguishable by L, we write x ≡L y. Show thatLis an equivalence relation.

Short Answer

Expert verified

The relation L is reflexive, symmetric and transitive.

Step by step solution

01

Define Equivalence relation

An equivalence relation is a relationship on a set, generally denoted by “∼”, that is reflexive, symmetric, and transitive for everything in the set.

The relation “is equal to”, denoted= , is an equivalence relation on the set of real numbers since for any

1. (Reflexivity) x=x

2. (Symmetry) if x=ytheny=x

3. (Transitivity) if x=yandy=zthenx=z

02

Prove that the relation is reflexive

Consider an alphabetΣ.LetxΣ*;ForyΣ

xyLifanonlyifxyL

So, X is indistinguishable to X and X is arbitrary.

Therefore, Lis reflexive

03

Prove that the relation is symmetric

Suppose xLy . This implies that for all z*,

  1. xz,yzLorxz,yzLforallz*.
  2. yz,xzLoryz,xzLforallz*

The implication in 2meansyLx.

Thus, Lis symmetric.

04

Prove that the relation is transitive

Consider x,y,zΣ*,xLy,andyLz.

To prove transitivityshow that xLzoruΣ*,xuLif and onlyifzuL. Consider that uΣ*andxuL. Now, yuLandzuLbecausexLyandyLzyrespectively. Also, xuL.FromxLy,yLz,it is concluded that yuLandzuL.xuLif and only if zuL.ItistruethatxLz.

Because x,y,andzare arbitrary, Lis transitive.

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

Question:Consider the algorithm MINIMIZE, which takes a DFA as input and outputs DFA .

MINIMIZE = “On input , where M=(Q,Σ,δ,q0,A) is a DFA:

1.Remove all states of G that are unreachable from the start state.

2. Construct the following undirected graph G whose nodes are the states of .

3. Place an edge in G connecting every accept state with every non accept state. Add additional edges as follows.

4. Repeat until no new edges are added to G :

5. For every pair of distinct states q and r of and every aΣ :

6. Add the edge (q,r) to G if δq,a,δr,a is an edge of G .

7. For each state q,let[q] be the collection of statesq={rQ|noedge joins q and r in G }.

8.Form a new DFA M'=Q',Σ,δ',q'0,A'where

Q'={[q]|qQ}(ifq=r,onlyoneofthemisinQ'),δ'(q,a)=[δq,a]foreveryqQandaΣ,q00=[q0],andA0={[q]|qA}

9. Output ( M')”

a. Show that M and M' are equivalent.

b. Show that M0 is minimal—that is, no DFA with fewer states recognizes the same language. You may use the result of Problem 1.52 without proof.

c. Show that MINIMIZE operates in polynomial time.

Give a counter example to show that the following construction fails to prove that the class of context-free languages is closed under star. Let A be a CFL G=(V,,R,S)that is generated by the CFG . Add the new rule SSSand call the resulting grammar. This grammar is supposed to generate A* .

For each part, give a relation that satisfies the condition.

  1. Reflexive and symmetric but not transitive
  2. Reflexive and transitive but not symmetric
  3. Symmetric and transitive but not reflexive

Show that EQTM is recognizable by a Turing machine with an oracle for ATM.

Show that for any language A , a language B exists,whereATandB'TA. .

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