Follow

Translate

Monday, March 21, 2016

SRCHHL(INFO, LINK, START, ITEM, LOC)



1.   Set PTR : = LINK[START]

2.  Repeat while INFO[PTR] != ITEM and PTR != START:
   Set PTR : = LINK[PTR].    [PTR now points to the next node]
[End of loop]

3.  If INFO[PTR] = ITEM, then:
Set LOC : = PTR.

Else :
Set LOC : = NULL.
[End of structure.]
4.Exit

If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE

0 comments:

Post a Comment