subject

Dynamic Programming You are part of a team building a west-east highway that runs through an ecological preserve that cannot be avoided. You want to build the highway so it disturbs the least number of endangered species. Ecologists have mapped the territory and determined the number of endangered species for every cell in a grid that is n columns east-to-west and m rows north-to-south. Your job is to determine a path for the highway that disturbs the minimum number of species. The highway can begin in any of the m rows on the west side of the preserve and can end in any of the m rows on the east side of the preserve. The highway must always move east but at each step it can move to the cell immediately east, the cell to the north-east, or the cell to the south-east. On the next page is an example preserve with west on the left and east on the right. This example has 8 columns and 8 rows. The number in each cell is the number of endangered species that live in that cell. a) Let Mi, j) express the minimum number of species that will be disturbed by a highway that ends in cell (i, j). Show a self-reduction from this problem to its sub-problems.
b) State a dynamic programming algorithm in pseudocode that solves this problem using the self-reduction from above. You do not need to give code for recovering the solution.
c) What is the worst case runtime of your algorithm?
d) Use your algorithm to find the minimum cost highway of the example input. 7 0 4 7 3 2 14 5 4 14 5 3 6 6 4 6 12 2 2 5 7 4 6 5 25 25 9 21 8 8 8 6 23 3 12 2 12 5 3 5 4 3 1 4 2 15 7 12 3 4 2 9 3 4 3 7 5 2 4 7 12 18 1 10 Fill in this grid using your algorithm and then indicate the minimum cost highway.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
You know the right answer?
Dynamic Programming You are part of a team building a west-east highway that runs through an ecologi...
Questions
question
Mathematics, 22.02.2021 07:50
question
Mathematics, 22.02.2021 07:50
question
Mathematics, 22.02.2021 07:50
question
Mathematics, 22.02.2021 07:50
question
History, 22.02.2021 07:50