Question: NEED HELP WITH RECURSIVE ALGORITHM in Pseudocode/Java (NON Dynamic Programming) And also be able to keep track of the pathing 2 PROBLEM STATEMENT There aren

NEED HELP WITH RECURSIVE ALGORITHM in Pseudocode/Java (NON Dynamic Programming)
And also be able to keep track of the pathing
2 PROBLEM STATEMENT There aren trading posts numbered 1 to n, as you travel downstream. At any trading post i, you can rent a canoe to be returned at any of the downstream trading posts j > i. You are given a cost array R(i, j) giving the cost of these rentals forls is js n. We will have to assume that R(i, i) -0 and R(i, j) - oo if i > j. For example, with n- 4, the cost array may look as follows: The rows are the sources (i-s) and the columns are the destinations ('s) 2 3 4 0 The problem is to find a solution that computes the cheapest sequence of rentals taking you from post 1 all the way down to post n. In this example, the cheapest sequence is to rent from post 1 to post 3 (cost 3), then from post 3 to post 4 (cost 2), with a total cost of 5 (less than the direct rental from post 1 to post 7, which would cost 7) 3.2 DIVIDE AND CONQUER (7 points): Express the problem with a purely divide-and-conquer approach. Implement a recursive algorithm for the problem. Be sure to consider all sub-instances needed to compute a solution to the full input instance in the self-reduction, especially if it contains overlaps. As before, you need to print the solution, as well as the sequence. What is the asymptotic complexity of this algorithm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
