Linked List - Linked List Operations

Linked List Operations

When manipulating linked lists in-place, care must be taken to not use values that you have invalidated in previous assignments. This makes algorithms for inserting or deleting linked list nodes somewhat subtle. This section gives pseudocode for adding or removing nodes from singly, doubly, and circularly linked lists in-place. Throughout we will use null to refer to an end-of-list marker or sentinel, which may be implemented in a number of ways.

Read more about this topic:  Linked List

Famous quotes containing the words linked, list and/or operations:

    Thus for each blunt-faced ignorant one
    The great grey rigid uniform combined
    Safety with virtue of the sun.
    Thus concepts linked like chainmail in the mind.
    Thom Gunn (b. 1929)

    Religious literature has eminent examples, and if we run over our private list of poets, critics, philanthropists and philosophers, we shall find them infected with this dropsy and elephantiasis, which we ought to have tapped.
    Ralph Waldo Emerson (1803–1882)

    It may seem strange that any road through such a wilderness should be passable, even in winter, when the snow is three or four feet deep, but at that season, wherever lumbering operations are actively carried on, teams are continually passing on the single track, and it becomes as smooth almost as a railway.
    Henry David Thoreau (1817–1862)