Question: (a) Write an algorithm in code or pseudocode for solving the longest common subsequence problem introduced in class (T 2/21: backtracking), but instead of returning

(a) Write an algorithm in code or pseudocode for solving the longest common subsequence problem introduced in class (T 2/21: backtracking), but instead of returning the length of the subsequence, return an actual subsequence of that length. (b) Write an algorithm in code or pseudocode for solving the maximumSubsetSum problem from Homework 4, but instead of returning the maximum sum, return an actual subset of the input numbers (as a list or other appropriate data structure) that achieves this maximum value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
