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 17:00
Which point lies on a circle with a radius of 5 units and center at p(6, 1)?
Answers: 1
question
Mathematics, 21.06.2019 23:30
How do you find the distance of each number from the mean
Answers: 1
question
Mathematics, 22.06.2019 01:00
Leslie started last week with $1200 in her checking account. during the week, she wrote the checks below. trans typ./ check no. date description of transaction payment/ debit deposit/ credit (+) balance 1,200 00 324 10/6 miller's food market 45.87 45 87 groceries 1,154 13 325 10/7 cyber center computer outlet 218.59 218 59 monitor 935 54 326 10/9 sandy's beauty salon 30.00 30 00 haircut and styling 900 59 deposit 10/10 paycheck 621.33 621 33 1,621 92 evaluate leslie's check register. a. leslie did a good job. everything is correct. b. the final balance is wrong; she did not add everything correctly. c. leslie should have written debit instead of deposit for the transaction type. d. leslie switched the debit and credit columns.
Answers: 2
question
Mathematics, 22.06.2019 03:00
Plz asap what is the range of the cluster in the scatter plot a. between 4 and 8 years of experience b. between $40,000 and $60,000 c. between 6 and 12 years of experience d. between $10,000 and $60,000
Answers: 2
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, 11.11.2020 02:20
question
Mathematics, 11.11.2020 02:20
question
Mathematics, 11.11.2020 02:20