13.07.2015 Views

Corretude - UFCG

Corretude - UFCG

Corretude - UFCG

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introdução Indução Algoritmos Recursivos Algoritmos IterativosExemplo 13 Cont.Terminação: Mostrar que o algoritmo termina com b = f (n)◮ Depois de t iterações i = n + 1 e o algoritmo sai do laço.◮ Como i t = t + 2, temos que t = n − 1◮ Pelo IL, b t := f (t + 1) := f (n).Prof. Dr. Leandro Balby Marinho 42 / 44 <strong>UFCG</strong> CEEI

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!