![subject](/tpl/images/cats/mat.png)
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](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Mathematics
![image](/tpl/images/cats/mat.png)
![image](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 15:00, BeautyxQueen
Find three consecutive numbers such that the sum of one-fourth the first and one-fifth the second is five less than one-seventh the third
Answers: 1
![image](/tpl/images/cats/mat.png)
You know the right answer?
Your goal for this challenge will be to determine the optimal way to traverse a matrix, starting at...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.09.2019 00:40
![Konu](/tpl/images/cats/es.png)
Spanish, 25.09.2019 00:40
![Konu](/tpl/images/cats/geografiya.png)
Geography, 25.09.2019 00:40
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 25.09.2019 00:40
![Konu](/tpl/images/cats/biologiya.png)
Biology, 25.09.2019 00:40
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.09.2019 00:40
![Konu](/tpl/images/cats/istoriya.png)
History, 25.09.2019 00:40