Section: IT & Technology · Software DevelopmentDifficulty: Medium

Linked List

USUK

A data structure where elements are stored in nodes, each pointing to the next.

Also: singly linked list · doubly linked list

Definition

A linked list is a linear data structure consisting of nodes where each node contains data and a pointer (reference) to the next node. Unlike arrays, linked lists do not require contiguous memory allocation, enabling efficient insertions and deletions at any position (O(1) if position is known) without shifting elements. However, random access is O(n) since traversal starts from the head. Variants include doubly linked lists (with next and previous pointers) and circular linked lists.

Example

A music player's playlist is implemented as a doubly linked list, allowing efficient insertion of songs at any position and bidirectional traversal for previous and next functionality.

Synonyms

  • node chain
  • pointer list
  • sequential linked structure

Antonyms / Opposites

  • array
  • random-access structure

Images

CC-licensed · free to use
More on Wikimedia
Loading images…

Video

  • data-structure
  • algorithm
  • big-o-notation
  • queue-data

Dictionary Entry

Back to IT & Technology