Why is it necessary to assume that the tg has no a-edges

Assignment Help Basic Computer Science
Reference no: EM131220826

Let us now consider an algorithm for determining whether a specific TG that has no A-edges accepts a given word.

Step I 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 if 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 this algorithm does the job.

(ii) Why is it necessary to assume that the TG has no A-edges?

Reference no: EM131220826

Questions Cloud

Create a job cost sheet for a hypothetical average customer : Create a job cost sheet for a hypothetical "average" customer that includes estimates of the major costs or serving that customer. How much do you think you would need to charge to cover all of the cost plus provide a reasonable profit?
Trying to break her smoking habit : Trying to break her smoking habit, Jane calculates that she smokes only three full cigarettes a day, one after each meal. The rest of the time she smokes on the run and smokes only half of the cigarette.
Where coffee beans and sugar cane are readily available : Where coffee beans and sugar cane are readily available, prices on these items would remain low. However, coffee and sugar could become luxury items in countries such as Canada.
How any two agent of socialization have influenced your life : Explain one instance where you experienced anticipatory socialization. Provide examples. When you were experiencing socialization, what status were you occupying and what were you learning to occupy?
Why is it necessary to assume that the tg has no a-edges : Check each string on the list in Step 3 by concatenating the labels of the edges involved to see if they make a path from a - to a + corresponding to the given word.
Condition is the solution unique : a) If m, n, p, q, r, and s are known constants, can we find a solution? b) Under what condition is the solution unique? Explain clearly by utilizing an equation.
What should ibms offensive and defensive plan look like : How should IBM position itself to take advantage of current technology trends? Should IBM focus on a particular segment or try to maintain vertical integration? What should IBM's offensive and defensive plan look like?
Define political positions in relation to sexuality : Define political positions in relation to sexuality. Specifically discuss the issues of "traditional morality" and "individual choice." Discuss possible solutions to different social problems of sexuality from different political positions.
Prepare a presentation on diagnosis genital herpes : Prepare a Presentation on Diagnosis: Genital Herpes. Identify the topic you are presenting: Presentation on Diagnosis: Genital Herpes in a lecture style.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What happens when the interrupt has been serviced

Explain what the CPU should do when an interrupt occurs. Include in your answer the method the CPU uses to detect an interrupt, how it is handled, and what happens when the interrupt has been serviced.

  Separation-deprivation or privation in childhood

What are the possible long term implications for children who have experienced separation, deprivation or privation in childhood? Refer to research in your answer.

  Identify organizations that may be susceptible

Acts considered cyberterrorism and / or information warfare can be divided into four separate categories; infrastructure attacks, information attacks, technological facilitation, and promotion.

  Calculate the storage requirement for uncompressed

Calculate the storage requirement for the uncompressed video clip. Show all working and express your answer in appropriate units.

  Working of a capacitor-start and capacitor-start

Explain the working of a capacitor-start and capacitor-start and-run single-phase induction motors with suitable diagrams.

  Write a program to be run on your demo board

The program outputs the following messages on the terminal screen and exits:

  Write a c program to draw an analog clock

Write a c program to draw an analog clock. Simulate the movement of needles.

  Catering web design

Using the graphics provided to develop the first five pages of a prototype Web site for a catering company. The site should include the following elements:

  Vital signs of hospital patients are monitored

Vital signs of hospital patients are monitored and reported automatically.  While each monitor has alarms which go off when a reading is out of range, combinations of readings are also important.  Common vital signs and normal range is given below.

  Advantages and disadvantages of grassroots computing

Discuss how grassroots computing changes the way software is designed, developed, tested, and maintained in a typical organization. What are the advantages and disadvantages of grassroots computing?

  Difference between cyber crimes and cyber-related crimes.

Summarize the difference between cyber crimes and cyber-related crimes. On cyber crimes, define cyber trespass, cyber privacy and cyber vandalism. On cyber-related crimes explain the difference between cyber-assisted and cyber-enhanced crimes.

  Find integers q and r

Q1. For each of the following values of n and d find integers q and r such that n =dq+r and 0≤r

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