Sie sind auf Seite 1von 4

1.

2.
3.

Procedimiento 8.3 Busca(INFO, ENL, PRINCIPIO, ITEM, POS) [Algoritmo 5.2]

Busca la posición POS del primer nodo que contiene a ITEM, o hace

POS : = NULO.

1.-Hacer PTR : =PRINCIPIO.

2.-Repetir mientras PTR sea diferente de NULO:

Si ITEM = INFO[PTR], entonces; Hacer POS := PTR y

Volver.

Si no hacer PTR : = ENL [PTR].

[Fin del Bucle].

3.-Hacer POS : = NULO y volver.


*8.-volver

Das könnte Ihnen auch gefallen