Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+ a. How does this change affect the incentives for working?

Answered: 1 week ago