Let us now consider an algorithm for determining whether a specific TG that has no -edges

Question:

Let us now consider an algorithm for determining whether a specific TG that has no Λ-edges accepts a given word:
Step 1 Number each edge in the TG in any order with the integers 1, 2, 3, . . . , x, where x is the number of edges in the TG.
Step 2 Observe that if the word has y letters and is accepted at all by this machine, it can be accepted by tracing a path of not more than y edges.
Step 3 List all strings of y or fewer integers, each of which ≤ x. This is a finite list.
Step 4 Check each string on the list in step 3 by concatenating the labels of the edges involved to see whether they make a path from a - to a + corresponding to the given word.
Step 5 If there is a string in step 4 that works, the word is accepted. If none work, the word is not in the language of the machine.
(i) Prove that this algorithm does the job.
(ii) Why is it necessary to assume that the TG has no Λ-edges.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Introduction To Computer Theory

ISBN: 9780471137726

2nd Edition

Authors: Daniel I. A. Cohen

Question Posted: