Question: c program for this 10. Write a program employing dynamic programming strategy to implement each of the following problems. Assembly line scheduling problem. A car

 c program for this 10. Write a program employing dynamic programming

strategy to implement each of the following problems. Assembly line scheduling problem.

c program for this

10. Write a program employing dynamic programming strategy to implement each of the following problems. Assembly line scheduling problem. A car factory has two assembly lines, each with n stations. A station is denoted by S., where i is either 1 or 2 and indicates the assembly line the station is on, and j indicates the number of the station. The time taken per station is denoted by aj. Each station is dedicated to some sort of work like engine fitting, body fitting, painting, and so on. So, a car chassismust pass through each of the n stations in order before exiting the factory. The parallel stations of the two assembly lines perform the sametask. After it passes through station S.,, it will continue to station Sig- unless it decides to transfer to the other line. Continuing on the same line incurs no extra cost, but transferring from line i at station j - 1 to station j on the other line takes time t). Each assembly line takes an entry time e, and exit time x, which may be different for the two lines. Give an algorithm for computing the minimumtime it will take to build a car chassis. The below figure presents the problem in a clear picture: X1 el Engine fitting Assembly Line1 Body fitting Painting t1,2 $1,1 S1,2 $1,3 t2,2 X2 e2 Assembly Line2 Eingine fitting S21 Body fitting S2,2 Painting $2,5 Get the values of al,n; a2,n; el, e2, x1, x2, t1,n-1; t2, n-1 from the user andthe display the minimum time. Example Input: a[2][4] = {{4, 5, 3, 2}, {2, 10, 1,4}}; t[2][3] = {{7,4,5), {9, 2, 8}}; e[2] = {10, 12); x[2] = {18, 7); 10 > 18 12 10 Output: Minimum time 35. Print the line also

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!