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.

8. <strong>Algoritmos</strong> <strong>de</strong> aproximação<br />

• O que faz PrC? ϕPrC(x) = 2n: containeres com<br />

•<br />

Ótimo: n containeres com dois elementos <strong>de</strong> 1/2 + um com 2n elementos<br />

<strong>de</strong> 1/(2n). OPT(x) = n = 1.<br />

• Portanto: Assintoticamente a taxa <strong>de</strong> aproximação 2 é estrito.<br />

Melhores estratégias<br />

190<br />

• Primeiro que cabe (PiC), on-line, com “estoque” na memória<br />

• Primeiro que cabe em or<strong>de</strong>m <strong>de</strong>crescente: PiCD, off-line.

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

Saved successfully!

Ooh no, something went wrong!