Modifications: Assume there are no duplicates in the initial entries of A. Also assume that the symbol INFINITY is not in A. Each time an entry in A has been copied, replace that entry in A with INFINITY.
{ 2 if n = 2 T(n) = { { 2T(n/2) + n if n= 2k, k > 1is T(n) = n lg(n) when n is a positive power of 2.
{ 0 if n = 0 or 1 T(n) = { { 2T( FLOOR(n/2) ) + n if n > 1is T(n) =< n lg(n) for n >= 0, where 0 lg(0) is defined to be 0.