subject
Engineering, 06.05.2020 05:37 MileenaKitana

P14.7.9 Here is an optimization problem that we can solve with the aid of an ordinary NFA and another technique from Chapter 9. We are given a finite set S of nonempty words over 2, and a string w of length n over E. We would like to find non-overlapping occurrences of words in S within w, to use as many as possible of the letters in w. We are allowed to use the same word in S multiple times if that is best. (a) Build an ordinary NFA N, with one final state that is also the start state, such that an accepting w-path corresponds to a set of non-overlapping occurrences of words from S within w. (b) In Chapter 9 we learned uniform-cost search, which finds the shortest path from one node to another in a labeled directed graph. Construct a labeled directed graph G from N, with one final state f, such that any path from the start state to f corresponds to a set of non-overlapping occurrences of words from S in w, and the cost of that path is 2n-m, where m is the number of letters of w used by the words from S. (Hint: Make G from n + 1 copies of N.) (c) Explain how, using uniform-cost search, we can find the optimal set of word occurrences. Note that UCS finds paths of minimum cost, while we want paths of maximum value.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
For the closed feedwater heater below, feedwater enters state 3 at a pressure of 2000 psia and temperature of 420 °f at a rate of ix10 ibhr. the feedwat extracted steam enters state 1 at a pressure of 1000 psia and enthalpy of 1500 btu/lbm. the extracted er leaves at an enthalpy of 528.7 btu/lbm steam leaves as a saturated liquid. (16) a) determine the mass flow rate of the extraction steam used to heat the feedwater (10) b) determine the terminal temperature difference of the closed feedwater heater
Answers: 3
question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
You know the right answer?
P14.7.9 Here is an optimization problem that we can solve with the aid of an ordinary NFA and anothe...
Questions
question
Mathematics, 21.09.2019 05:30
question
Biology, 21.09.2019 05:30
Questions on the website: 13722360