Corretude - UFCG
Corretude - UFCG
Corretude - UFCG
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Introdução Indução Algoritmos Recursivos Algoritmos IterativosExercício 7Mostre que o algoritmo abaixo é correto usando invariância do laçoMaximo(A, n)1 m = A[1]2 i = 23 while i ≤ n4 if A[i] > m5 m = A[i]6 i = i + 17 return mProf. Dr. Leandro Balby Marinho 44 / 44 <strong>UFCG</strong> CEEI