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

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.

Step by Step Solution

3.44 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

i This algorithm does the job By construction the list in step 3 contains all possible strin... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related SQL Database Programming Questions!