Searching in linked list.
Searching in linked list means to search an element in the linked list,by visiting the nodes one by one till the element is not found.
Algorithm of Searching in linked list.
Step 1:- If START=NULL
Write ”List is Empty” Exit
[End of if]
Step 2:- TEMP:=START
Step 3:-Read Item (which to be searched)
Step 4:- While TEMP !=NULL
If ITEM=TEMP->INFO
Write ”Value found “ and exit
[End of if]
Set TEMP:=TEMP->NEXT
[End of while]
Step 5: Write “Element not found”
Step 6: End