SimonJ said:
Terms such as head and tail can be confusing. It depends which direction you consider the links to point (towards the tail or towards the head). The terms Start and End are better because they imply directionality more clearly.
There's little point keeping pointers to both the start and end of a singularly linked list except to get to the last item quickly (for instance to add an item to the end of the chain).
A pointer to the Start item will give you access to that item and along the chain to all the others. A pointer to the End item end will only give you access to that one item. It has no pointer back up the chain, because this a singularly linked list, so
you can't go to that end of the chain and count back five items.
Simon Jones
Contributing Editor
PC Pro Magazine
Perhaps they are trying to differentiate between use of a linear and circular linked list ?
With a linear list, you point to the start, which points to the next, etc etc, and the end points to null.
With a circular list, the end points to the start, which points to the next, etc etc... hence by pointing to the end, you often have a faster solution.
Pointing to the end of a circular linked list can be more efficient if adding to a large list.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.