10.07.2015 Views

ESTRUTURAS DE DADOS (LEI, LM, LEE) PROGRAMAÇÃO III (LTSI)

ESTRUTURAS DE DADOS (LEI, LM, LEE) PROGRAMAÇÃO III (LTSI)

ESTRUTURAS DE DADOS (LEI, LM, LEE) PROGRAMAÇÃO III (LTSI)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Listas de Salto: Pesquisa Procure-se por um elemento com chave “x” na lista Começa-se pelo nível máximo (n) do elemento actual(el=1º elemento da lista) Para SEMPRE Compara-se a chave “x” com a do elemento seguinte àposição actual (y) Se x = y RETORNA SUCESSO x > y: avança para próximo nó com nível (n) x < y: baixa de nível (n=n-1)Caso se tente baixar do último nívelRETORNA INSUCESSO

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

Saved successfully!

Ooh no, something went wrong!