13.04.2013 Views

Algoritmos e complexidade Notas de aula - Arquivo Escolar

Algoritmos e complexidade Notas de aula - Arquivo Escolar

Algoritmos e complexidade Notas de aula - Arquivo Escolar

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.

Conteúdo<br />

I. Análise <strong>de</strong> algoritmos 7<br />

1. Introdução e conceitos básicos 9<br />

1.1. Notação assintótica . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />

1.2. <strong>Notas</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br />

1.3. Exercícios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br />

2. Análise <strong>de</strong> <strong>complexida<strong>de</strong></strong> 31<br />

2.1. Introdução . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />

2.2. Complexida<strong>de</strong> pessimista . . . . . . . . . . . . . . . . . . . . . 35<br />

2.2.1. Metodologia <strong>de</strong> análise <strong>de</strong> <strong>complexida<strong>de</strong></strong> . . . . . . . . . 35<br />

2.2.2. Exemplos . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

2.3. Complexida<strong>de</strong> média . . . . . . . . . . . . . . . . . . . . . . . . 47<br />

2.4. Outros típos <strong>de</strong> análise . . . . . . . . . . . . . . . . . . . . . . . 61<br />

2.4.1. Análise agregada . . . . . . . . . . . . . . . . . . . . . . 61<br />

2.4.2. Análise amortizada . . . . . . . . . . . . . . . . . . . . . 64<br />

2.5. <strong>Notas</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66<br />

2.6. Exercícios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66<br />

II. Projeto <strong>de</strong> algoritmos 71<br />

3. Introdução 73<br />

4. <strong>Algoritmos</strong> gulosos 75<br />

4.1. Introdução . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75<br />

4.2. <strong>Algoritmos</strong> em grafos . . . . . . . . . . . . . . . . . . . . . . . . 79<br />

4.2.1.<br />

Árvores espalhadas mínimas . . . . . . . . . . . . . . . . 79<br />

4.2.2. Caminhos mais curtos . . . . . . . . . . . . . . . . . . . 84<br />

4.3. <strong>Algoritmos</strong> <strong>de</strong> seqüenciamento . . . . . . . . . . . . . . . . . . 85<br />

4.4. Tópicos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89<br />

4.5. <strong>Notas</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94<br />

4.6. Exercícios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94<br />

1

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

Saved successfully!

Ooh no, something went wrong!