Question

Show that if languages L1 and L2 are decidable, then concatenation of L1 and L2 is...

Show that if languages L1 and L2 are decidable, then concatenation of L1 and L2 is also decidable.

Homework Answers

Answer #1

Let L1 an L2 be two decidable languages.

Suppose we have an input w.

We non-deterministically w into two parts w1 and w2.

w1 ranges from empty to w and w2 ranges for the remaining.

Lets say we have two turing machine M1 and M2 which decides L1 and L2 respectively.

We run M1 on w1, if it accepts then we run M2 on w2, else reject. As the M1 decides the L1, so it is neccesary for M1 to accept in order to move forward.

If M2 runs on L2 then we accept. Other wise we reject.

So, if both turing machine of L1 and L2 accepts then accept, else reject.

Thus, if languages L1 and L2 are decidable, then concatenation of L1 and L2 is also decidable.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Show that if languages L1 and L2 are decidable, then the intersection of L1 and L2...
Show that if languages L1 and L2 are decidable, then the intersection of L1 and L2 is also decidable.
(Formal languages) Determine if the following statements are true or not: If L1 and L2 are...
(Formal languages) Determine if the following statements are true or not: If L1 and L2 are non-regular languages then is L1 intersection L2 non regular? (T/F) If L1 is a non regular language and L2 is a finite language is it true that L1 union L2 is regular? Is it true that the union of two regular languages must be regular?
Which claim is always true: L1 and L2 are regular languages, L = L1 - L2,...
Which claim is always true: L1 and L2 are regular languages, L = L1 - L2, then L is finite is regular is complicated is infinite
Consider two languages L1 and L2 accepted by the pushdown automata M1 = (K1, Σ, Γ1,...
Consider two languages L1 and L2 accepted by the pushdown automata M1 = (K1, Σ, Γ1, ∆1, s1, F1) and M2 = (K2, Σ, Γ2, ∆2, s2, F2), respectively. Show how to construct the pushdown automaton M = (K, Σ, Γ, ∆, s, F ) that accepts L1L2.
Given two sorted lists, L1 and L2, write a procedure to compute L1 ∪ L2 using...
Given two sorted lists, L1 and L2, write a procedure to compute L1 ∪ L2 using only the basic list operations.
Given two sorted lists, L1 and L2, write a procedure to compute L1 ∩ L2 using...
Given two sorted lists, L1 and L2, write a procedure to compute L1 ∩ L2 using only the basic list operations.
Show that the class of context-free languages is closed under concatenation.
Show that the class of context-free languages is closed under concatenation.
Are lines L1 and L2 perpendicular: L1 (-7,1) and (5,-2) L2 (3,7) and (0,-5) a.) No,...
Are lines L1 and L2 perpendicular: L1 (-7,1) and (5,-2) L2 (3,7) and (0,-5) a.) No, the lines are not perpendicular because the product of their slope equals -1. B.) Yes , the lines are perpendicular because the product of their slopes does not equal -1. C.) No, the lines are not perpendicular because the product of their slopes does not equal -1. D.) Yes, the lines are perpendicular because the product of their slope equals -1.
Let L1 be the language of the Regular Expression 1(1 + 0)*. Let L2 be the...
Let L1 be the language of the Regular Expression 1(1 + 0)*. Let L2 be the language of the Regular Expression 11* 0. Let L3 be the language of the Regular Expression 1* 0. Which of the following statements are true? L2 L1 L2 L3 L1 L2 L3 L2
ABC ltd is a circuit board producer and produces two products, L1 & L2. The company...
ABC ltd is a circuit board producer and produces two products, L1 & L2. The company currently uses traditional costing system for making business decisions. However, recently the company is considering a move towards the Activity-Based Costing (ABC) system. As one of the company’s accountant’s you have been asked to prepare a statement comparing both the costing methods for the next company board meeting. Your supervisor has given you the following quarterly data: - Total Indirect Costs for the quarter:...