subject

You are an interior decorator, confronted with a dark living room. To lighten the room up, you have n candles and want to build k trees of candles. First, the candles {1, . . . , k} are already put on the floor, to serve as roots of the k trees. You would like to put the remaining n − k candles {k + 1, . . . , n} on top of them to form k trees {T1, · · · , Tk} of candles, where each Ti is rooted at candle i. You can put an arbitrary number of candles on top of the same candle. The cost to putting candle i on top of candle j is C(i, j). We assume that C(i, j) ≥ 0 and C(i, j) = C(j, i)) for i 6= j. No candle can be reused or put on top of itself. You cannot use the candles {1, . . . , k} anymore, as they have already been fixed to the floor.(a) Describe an algorithm to find a solution of minimum cost. (b) Prove the correctness of your algorithm. (c) Give a runtime analysis of your algorithm in the previous part.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
Drums installed, you would apply clicks of the parking brake to obtain a slight drag on both rear wheels
Answers: 1
question
Computers and Technology, 25.06.2019 06:00
Sam needs to create a spreadsheet for his coworkers. they will need to follow a crossed a long road of data. sam would like to make his spreadsheet easy to read. sam should
Answers: 1
You know the right answer?
You are an interior decorator, confronted with a dark living room. To lighten the room up, you have...
Questions
question
Geography, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Social Studies, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
Questions on the website: 13722362