Computer Science, asked by panigrahiamrit111, 1 month ago

Question 1 Max. score: 6.00 @ There is a goldfield of (a x b) dimensions and n points. Each point has a positive number that denotes the amount of gold available. Bob is assigned to collect gold from this field. He is in the first column of the goldfield. He can be in any row. He can follow these directions to collect the gold from the field: 1. He can move ortly to his right or to his right up or to his right down direction from his current cell. 2. He can move diagonally up towards his right or diagonally down towards his right If he is required to collect the maximum amount of gold in his path, then determine the best time complexity to perform this action in this scenario Oſa-b) On 0 Ola b"n) 10 Ola'b) DRESE ANSWER​

Answers

Answered by ksuryawanshi02
31

Answer:

o(a*b^n)

complexity to perform this action in this scenario Oſa-b) On 0 Ola b"n) 10 Ola'b) DRESE ANSWER​

Answered by vinod04jangid
1

Answer:

Gold Mine Problem

Explanation:

Given a gold mine of n*m dimensions. Each discipline on this mine consists of a high-quality integer that is the quantity of gold in tons. Initially the miner is at the beginning column however may be at any row. He can flow only (proper->,proper up /,proper down) this is from a given mobileular, the miner can flow to the mobileular diagonally up toward the proper or proper or diagonally down toward the proper. Find out most quantity of gold he can collect.

Input : mat[][] = {{1, 3, 3},

                  {2, 1, 4},

                 {0, 6, 4}};

Output : 12

{(1,0)->(2,1)->(1,2)}

Input: mat[][] = { {1, 3, 1, 5},

                  {2, 2, 4, 1},

                  {5, 0, 2, 3},

                  {0, 6, 1, 2}};

Output : 16

(2,0) -> (1,1) -> (1,2) -> (0,3) OR

(2,0) -> (3,1) -> (2,2) -> (2,3)

Input : mat[][] = {{10, 33, 13, 15},

                 {22, 21, 04, 1},

                 {5, 0, 2, 3},

                 {0, 6, 14, 2}};

Output : 83

Write a C++ statement to display the following message Covid 19, Break the Chain​

https://brainly.in/question/44243536?msp_srt_exp=6

Write a C++ program (using while loop) to display all the multiples of 5 from 100 to 50.​

https://brainly.in/question/49783654?msp_srt_exp=6

#spj3

Similar questions