subject
Engineering, 23.10.2019 19:50 chessacs6540

Implement and test the following algorithm in java which computes an optimal sequence for performing a set of tests that does not violate a given precedence constrains on the tests sequencing. the precedence constraints are represented by an array of disjoined linked lists of test, where the ith test in a linked list is the immediate successor of the (i-1)th test in the same linked list. for each test, , there are cost of testing i and probability of positive result . an optimal sequencing of tests is based on the minimizing the expected testing cost it has been proven that the following greedy algorithm provides an optimal sequencing of tests.

assume the array of linked lists is dented by l, where l[i][k] is the kth test in the linked list l[i] and the its immediate predecessors are l[i}{0}, l[i}[1],….l[i][k-1]. let c[i][k] and p[i][k] be the cost and probability associated with the test l[i][k]

the algorithm

1. let op denotes an optimal sequence and set it to the empty string;

2. while ( the linked lists are not completely empty), do the following four steps:

3. for each test l[i][j], compute the ratio r[i][j] as follows:

( σk_ocli][k]) r[i][i] = -。 0%=opli (k) jk_j k

4. choose the test with the smallest r ratio and has no predecessor test with the same r ratio;

5. add this test with its predecessors tests to the optimal sequence op;

6. remove this test and its predecessors from its linked list.

7.return op.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
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
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
You know the right answer?
Implement and test the following algorithm in java which computes an optimal sequence for performing...
Questions
question
Business, 26.02.2021 20:50
question
History, 26.02.2021 20:50
question
Chemistry, 26.02.2021 20:50
question
Mathematics, 26.02.2021 20:50
question
Computers and Technology, 26.02.2021 20:50
question
Mathematics, 26.02.2021 20:50
question
Mathematics, 26.02.2021 20:50
Questions on the website: 13722363