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, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
question
Engineering, 06.07.2019 04:10
Ir at sea level and 30°c and 50% relative humidity flows at a rate of 1 kg/s through a cooling coil that has an apparatus dewpoint of 10°c. the air leaves the coil at 15°c. determine the following: 3.1)- relative humidity of the air leaving the coil; 3.2)- moisture content of the air leaving the coil; 3.3)- sensible heat factor; 3.4)- total heat transfer rate; 3.5)- sensible heat transfer rate 3.6)- latent heat transfer rate
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
Health, 01.06.2021 21:20
question
Mathematics, 01.06.2021 21:20
question
Chemistry, 01.06.2021 21:20
question
English, 01.06.2021 21:20
Questions on the website: 13722362