Follow

Translate

Thursday, March 17, 2016

Procedure: COUNT(INFO, LINK, START, NUM)


1.  Set NUM : = 0 .    [Initializes Counter]   

2. Set PTR : = START.  [Initializes Pointer] 

3.  Repeat Steps 4 and 5 while PTR != NULL.

4. Set NUM : = NUM + 1.  [Increase NUM by 1]

5.  Set PTR : = LINK[PTR].  [Update pointer..]

   [End of Step 3 Loop]

6. Return.

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