Computers and Technology

A complex linear structure is to be assembled out of n smaller pieces. We will think of each piece as an interval [a; b]. The joining operation takes [a; b] and [b; c] and produces [a; c]. After joining, each subpart must be tested. Assume that the cost to test [u; v] is given by f(u; v) > 0 Different assembly orders potentially have different total testing cost. For example, suppose that we have three pieces corresponding to intervals [1, 2]; [2; 3); and [3; 4], and the cost of testing is given by: f(1; 3) = 3, f(2; 4) = 1, and f(1; 4) = 5. Then assembling the first and second pieces first and then joining them with the third has a total testing cost of f(1; 3) + f(1; 4) = 8, whereas assembling the second and third pieces first and then joining them with the first has a total testing cost of f(2; 4) + f(1; 4) = 6. Therefore, the second assembly order is preferable.

Design an O(n^3) algorithm using dynamic programming methodology to find an optimal (least total testing cost) assembly order. Note that you should

a. Use iterative implementation for the algorithm to find the optimal cost.
b. Show the algorithm for finding the optimal order.
c. Give a brief argument of correctness and analyze the running time.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 25.06.2019 08:20, chloesmolinski0909
In the following table, column a is column b is and column c is
Answers: 1
image
Computers and Technology, 26.06.2019 01:50, andybiersack154
Which of the following is not one of the steps a company would take in an attempt to prevent a malfunction or failure of their product? a. overdesign b. redundancy c. protesting of parts and procedures d. outsourcing of final product assembly
Answers: 1
image
Computers and Technology, 26.06.2019 10:30, esanchez2002fcb
Form a group’s nonmaterial culture. a. language development c. abstract human creations b. physical objects created by people d. moral and ethical codes
Answers: 1
image
Computers and Technology, 26.06.2019 18:30, boomerjm
Surgery robot remotely hack my computer science experts what is this article about
Answers: 1
Do you know the correct answer?
A complex linear structure is to be assembled out of n smaller pieces. We will think of each piece a...

Questions in other subjects:

Konu
Mathematics, 02.03.2021 17:00
Konu
Spanish, 02.03.2021 17:00
Konu
Chemistry, 02.03.2021 17:00