1. Set PTR: = START
2. Repeat Step 3 while PTR != NULL:
3. If ITEM - INFO[PTR], then:
Set LOC : = PTR, and Exit.
Else:
Set PTR : = LINK[PTR]. [PTR now points to the next node.]
[End of If Structure]
[End of Step 2 loop]
4. [Search i unsuccessful] Set LOC : = NULL.
0 comments:
Post a Comment