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:

    “The exercise of letters is sometimes linked to the ambition to contruct an absolute book, a book of books that includes the others like a Platonic archetype, an object whose virtues are not diminished by the passage of time.”
    —Jorge Luis Borges (1899–1986)

    “Shea—they call him Scholar Jack—
    Went down the list of the dead.
    Officers, seamen, gunners, marines,
    The crews of the gig and yawl,
    The bearded man and the lad in his teens,
    Carpenters, coal-passers—all.”
    —Joseph I. C. Clarke (1846–1925)

    “There is a patent office at the seat of government of the universe, whose managers are as much interested in the dispersion of seeds as anybody at Washington can be, and their operations are infinitely more extensive and regular.”
    —Henry David Thoreau (1817–1862)