subject
Mathematics, 24.06.2019 18:00 jakails7532

Your goal for this challenge will be to determine the optimal way to traverse a matrix, starting at one corner and ending at the center. for each n x n matrix of integers, where n is an odd integer and n > 1, you will be required to determine the optimal path beginning at any of its corners ( (0, 0), (0, n-1), (n-1, 0), (n-1, n-1) ) and ending at its center ( (n-1)/2, (n-1)/2) ), by moving vertically and horizontally. the value in each cell of the matrix represents the number of points you get from visiting the cell. a path is considered optimal if it accumulates the most points, given the following constraints: each path crosses as few cells in the matrix as possible each path prioritizes moving horizontally before moving vertically in cases where it would otherwise be indifferent in the case where there is a tie for the optimal path, return the path based on its starting corner, according to the following priority list (top of the list is preferable to bottom of the list): top-left corner top-right corner bottom-right corner bottom-left corner hint: because each path must reach the center having crossed as few cells as possible, there will only be two "valid directions" that a path can move in. these directions will be based on the path's starting corner. e. g., an optimal path that starts at the top-left corner will only move down and to the right.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 15:40
What term best describes a line ans a point that lie in the same plane
Answers: 3
question
Mathematics, 21.06.2019 16:40
The sum of two numbers is 86, and their difference is 20. find the two numbers
Answers: 2
question
Mathematics, 21.06.2019 18:00
How much dextrose 70% must be mixed with dextrose 5% to prepare 1,000 ml of dextrose 20%?
Answers: 1
question
Mathematics, 21.06.2019 21:30
Joanie wrote a letter that was 1 1/4 pages long. katie wrote a letter that was 3/4 page shorter then joagies letter. how long was katies letter
Answers: 1
You know the right answer?
Your goal for this challenge will be to determine the optimal way to traverse a matrix, starting at...
Questions
question
Social Studies, 10.10.2020 14:01
question
Mathematics, 10.10.2020 14:01
question
Health, 10.10.2020 14:01
question
Mathematics, 10.10.2020 14:01
question
Mathematics, 10.10.2020 14:01
question
Mathematics, 10.10.2020 14:01
question
Mathematics, 10.10.2020 14:01
Questions on the website: 13722367