A computer contains 8,000 diodes. When one diode fails, it is replaced. The cost of replacing it individually is Kshs. 40 only. If all the diodes are replaced at the same time, the cost per diode would reduce to Kshs.28. The percentage of surviving diodes, s (t) at the end of the month t is
t
|
0
|
1
|
2
|
3
|
4
|
5
|
6
|
S (t)
|
100
|
90
|
84
|
75
|
40
|
18
|
0
|
a. What is the best replacement plan assuming that individual failures before fixed replacement period are done at the end of the period they fail?
b. Evaluate the following using the Lagrange multiplier approach
Max P=X2+Y2
S.t X+Y≥11
2X+Y≥17
X, Y≥0
A salesman located in city 1 decided to travel to a city 10. He knew the bus fare for alternative routes from 1 to 10. He then drew a highway network map as shown in the diagram below.
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
1
|
|
400
|
600
|
300
|
|
|
|
|
|
|
2
|
|
|
|
|
700
|
1000
|
500
|
|
|
|
3
|
|
|
|
|
300
|
800
|
400
|
|
|
|
4
|
|
|
|
|
600
|
800
|
500
|
|
|
|
5
|
|
|
|
|
|
|
|
400
|
800
|
|
6
|
|
|
|
|
|
|
|
300
|
700
|
|
7
|
|
|
|
|
|
|
|
800
|
400
|
|
8
|
|
|
|
|
|
|
|
|
|
700
|
9
|
|
|
|
|
|
|
|
|
|
900
|
The bus fare between cities 1-2 is the same as 2-1 etc and that the black spaces indicate that the routes are infeasible
Required
As an application to dynamic programming algorithm,
a. Draw a network diagram to represent the movement from origin (node 1) to destination or sink (node 10) clearly indicating the stages and nodes
b. Determine the path and hence the minimum bus fare for the problem