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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Agora, consi<strong>de</strong>ramos os seguintes classes<br />

EXP = DTIME[2 nO(1)<br />

] = <br />

14.2. De PSPACE até ELEMENTAR<br />

k≥0<br />

NEXP = NTIME[2 nO(1)<br />

] = <br />

k≥0<br />

EXPSPACE = DSPACE[2 nO(1)<br />

] = <br />

DTIME[2 nk<br />

]<br />

NTIME[2 nk<br />

]<br />

k≥0<br />

DSPACE[2 nk<br />

]<br />

• Estas classes são as primeiras <strong>de</strong>monstravelmente separadas <strong>de</strong> P.<br />

• Consequência: Uma linguagem completa em EXP não é tratável.<br />

• Exemplo <strong>de</strong> um problema EXP-completo:<br />

Xadrez generalizada (ingl. Generalized chess)<br />

Instância Uma configuração <strong>de</strong> xadrez com tabuleiro <strong>de</strong> tamanho n × n.<br />

Decisão Branco po<strong>de</strong> forçar o ganho?<br />

Problemas ainda mais intratáveis<br />

• As classes k − EXP, k − NEXP e k − EXPSPACE tem k níveis <strong>de</strong> exponenciação!<br />

• Por exemplo, consi<strong>de</strong>re a torre <strong>de</strong> dois <strong>de</strong> altura três: 2 22k<br />

0 1 2 3 4<br />

4 16 65536 ≈ 1.16 × 10 77 ≈ 2 × 10 19728<br />

• Problemas <strong>de</strong>sse tipo são bem intratáveis<br />

ELEMENTAR = <br />

k − EXP<br />

k≥0<br />

• Mas tem ainda problemas <strong>de</strong>cidíveis fora <strong>de</strong>sta classe!<br />

281

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

Saved successfully!

Ooh no, something went wrong!