Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

q1)Let h be the homomorphism defined by h(a) = 01 and h(b) = 1. Let L1 = h({aba, bab}), that is, h applied to the

q1)Let h be the homomorphism defined by h(a) = 01 and h(b) = 1. Let L1 = h({aba, bab}), that is, h applied to the language consisting of two strings, aba and bab.

(a) How many strings are there in L1?

Let L2 = h-1({010, 101}).

(b) How many strings are there in L2?

Q 2) The Turing machine M has states q, p, and f. State q is the start state, and f is the accepting state. The input alphabet is {0,1} and the tape alphabet is {0,1,B}; B is the blank. The transitions of M are:

(q,0) = (p,0,R)

(q,1) = (p,0,R)

(p,0) = (p,0,R)

(p,1) = (q,1,L)

(p,B) = (f,0,R)

(a) On input 100, M:

Accepts

Halts without accepting

Does not halt

(b) On input 001, M:

Accepts

Halts without accepting

Does not halt

(c) On input , M:

Accepts

Halts without accepting

Does not halt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

Students also viewed these Databases questions

Question

How can data visualisation aid in networking analysis?

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago