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, 23.06.2019 18:30
This program should be a short piece of code that prints all of the positive integers from 1 to 100 as described more fully below. the program may contain multiple methods, and if using an oo language, should be contained within a single class or object. the program should be designed so that it begins execution when invoked through whichever mechanism is most common for the implementation language. â–ş print out all positive integers from 1 to 100, inclusive and in order. â–ş print messages to standard output, matching the sample output below. â–ş in the output, state whether the each integer is 'odd' or 'even' in the output. â–ş if the number is divisible by three, instead of stating that the number is odd or even, state that the number is 'divisible by three'. â–ş if the number is divisible by both two and three, instead of saying that the number is odd, even or divisible by three; state that the number is 'divisible by two and three'. â–ş design the logic of the loop to be as efficient as possible, using the minimal number of operations to perform the required logic. sample output the number '1' is odd. the number '2' is even. the number '3' is divisible by three. the number '6' is divisible by two and three.
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
question
Computers and Technology, 25.06.2019 10:30
Which of the following is an example of a boolean condition that python could recognize? a: grade + 70 b: grade > = 70 c: "you should aim for at least a 70." d: "you have a 70."
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, 20.10.2021 14:00
question
Mathematics, 20.10.2021 14:00
question
Social Studies, 20.10.2021 14:00
question
Mathematics, 20.10.2021 14:00
question
Chemistry, 20.10.2021 14:00
question
Mathematics, 20.10.2021 14:00
Questions on the website: 13722360