(25 points) Consider the following recursive function designed for integers
m, n>=1 (don't worry about its meaning).
Function Best-Match(m,n)
if (m=1 or n=1) then
return(1)
else
if (n is odd) then
k <- (n+1)/2
else
k <- n/2
endif
return(max{Best-Match(m,k)+Best-Match(m-1,n), Best-Match(n,m-1))
endif
end
- Use Dynamic Programming to rewrite this function to
be much more efficient.
- What is the Time and Storage Space