Prove that compatibility defines an equivalence relation

Assignment Help Theory of Computation
Reference no: EM133309434

Problem 1: For any string w = w1w2......wn, the reverse of w, written wR, is the string w in reverse order, wn ......w2w1 For any language A, let AR = {wR|w∈A).

Show that if A is regular, so is AR.

Problem 2: For any language L over an alphabet Σ we say that string u ∈ Σ* is compatible with string v ∈ Σ* if for every x ∈ Σ*, ux ∈ L if and only if vx ∈ L.

a) Prove that compatibility defines an equivalence relation over Σ*. It follows that the relation partitions Σ* into disjoint subsets of strings; strings within any one partition are all pairwise compatible.

b) Show that if 1 is the regular language recognized by a DFA with n states, then the number of equivalence classes of L under the compatibility relation is no greater than n.

c) Give a high-level description of an algorithm which, given an n-state DFA for L computes the exact number of equivalence classes of L under the compatibility relation.

d) Show that L is regular if and only if the number of equivalence classes of 1 under the compatibility relation is finite. To get started, suppose there are n equivalence classes C1, ..., Cn and let si;∈Ci 1 ≤ i ≤ n. Construct a DFA with state qi, for equivalence class Ci. If, for a∈Σ sia and sj; are compatible then how would you use that to define δ?

e) Use the result of part (d) to prove that the language (0n1n: n ≥ 0} is not regular, without using the pumping lemma.

Problem 3:

a) Show that the language

L = {aibjck: i, j, k ≥ 0 and i = 1 => j = k)

satisfies the three conditions of the pumping lemma. Hint: set the pumping threshold to 2 and argue that every string in L can be divided into three parts to satisfy the conditions of the pumping lemma.

b) Prove that L is not regular. Note that L = b*c* U aaa"b*c* u (abici: i ≥ 0), and use the fact that regular languages are closed under complement and difference.

c) Explain why parts (c) and (d) do not contradict the pumping lemma.

Problem 4: Define the languages:

Ladd = {aibi+jcj:i,j≥0}

Lmult = {aibijcj:i,j≥0}

For each language, what is the smallest class it belongs to (regular, context-free, or TM- decidable)? Justify your answer - for example, if you claim context-free, then give a CFG/PDA for it and prove that it is not regular.

Reference no: EM133309434

Questions Cloud

Defined contributions plans : Describe how co-payments and using defined contributions plans can be used to control healthcare benefit costs
Compare physical manifestations of hyper and hyposecretion : Compare the physical manifestations of hyper- and hyposecretion disorders Photographs of individuals with endocrine disorders
What do you understand by skill : What do you understand by skill ? if yes then how as an HR manager you will frame skill inventory ?
Indicate why they failed identify one you think should fail : For each one, either identify an organization that has failed that test, and indicate why they failed, or identify one you think should fail, and say why.
Prove that compatibility defines an equivalence relation : Prove that compatibility defines an equivalence relation over S*. It follows that the relation partitions S* into disjoint subsets of strings; strings within
How does hospitals quality affect budgets : Japan is known as a producer of "quality" products. Based on the above, do hospitals really understand, "quality?" How does quality affect budgets.
Associate dean for faculty development at warrington : As the new Associate Dean for Faculty Development at Warrington, you are tasked with increasing faculty retention and reducing turnover.
Explain components of multidimensional nursing care : Explain components of multidimensional nursing care for clients with musculoskeletal disorders.Assist students to develop a care plan that includes safe
Current approach to employee development and advancement : What factors have led Darden to take its current approach to employee development and advancement?

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd