Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 206 Bytes

File metadata and controls

10 lines (8 loc) · 206 Bytes

Ejercicio 3

Codigo en C++

$$ maxSum(i,k,sum,I) = \begin{cases} esOptimo(sum,I) &si\quad k = 0 \\ maxSum(i+1,k-1,sum + \sum_j^nM_{ij},I\cup i) &si\quad i < n \\ \end{cases} $$