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 IterativosSequências Definidas por RecursividadeUma sequência S é uma lista de objetos numerados emdeterminada ordem. S(n) denota o n-ésimo elemento da sequência.Exemplo 5A sequencia s é definida por1. s(1) = 2 (caso base)2. s(n) = 2s(n − 1) para n ≥ 2 (passo recursivo)A sequencia A é dada por2, 4, 8, 16, 32, . . .Prof. Dr. Leandro Balby Marinho 15 / 44 <strong>UFCG</strong> CEEI

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

Saved successfully!

Ooh no, something went wrong!