In: Computer Science
For the 0-1 Knapsack algorithm, is it necessary to maintain the entire 2-dimensional table in memory throughout the computation, in order to compute the value of the best packing of the knapsack?
For the 0-1 Knapsack algorithm, is it necessary to maintain the entire 2-dimensional table in memory throughout the computation, in order to identify the items that are included in an optimal packing of the knapsack?
For the Longest Common Subsequence algorithm, is it necessary to maintain the entire 2-dimensional table in memory throughout the computation, in order to compute the actual characters in a longest-common-subsequence?
Yes/No then why. Short answers please