What is Linked List?

  • Linked List is the data structure ,which is used for storing the linear collection of data elements.
  • It is an sequential type data structure.
  • Each successive elements are connected by pointer,means every successive elements having the address of the next elements.
  • Linked list is collection of node,and every node consist the data and address.

Every node having the data element and address of the next node through pointer.

Data will contain the information stored by the node.and Address will contain the address of the next node.

Address representation

  • First node of Linked list is called Head node and their address contain by the Head Pointer.
  • Last node can be null addressable or also can contain the address of another node, its depend the type of linked list implementation.
    Example :

Here Node-1 contain data element ‘A’ and address portion is pointing to the address of the Node-2 which is 2000.

Comparison of Array and Linked List

ParameterArrayLinked List
Data elementHomogeneous collection of dataHomogeneous as well as Heterogeneous Collection of data
Indexing IterationSupportedNot Supported
Pointer IterationSupportedSupported
Access SpeedFastNot fast
Size Fixed SizeVariable and Flexible
Access typeRandom typeLinear Access
Memory ConsumptionLess memory requiredMore memory required

Linked List Operations

Following are the general and auxiliary operations of Linked List :

  • Insertion : insert an element into linked list
  • Deletion of Specific elements.
  • Traverse : visit on the all the nodes of linked list.
  • Deletion of Complete List.
  • Count : counting the number of Nodes of Linked list.
  • Search : searching the availability of an data element stored in nodes..

Types of Linked List

There are following category of linked List :

  1. Singly Linked List
  2. Doubly Linked List
  3. Circular Linked List
  4. Circular Doubly Linked List

Advantage of Linked List

  • Linked List can be expanded in the constant time.
  • Simple Insertion/deletion operation
  • Efficient memory utilization.
  • Memory Allocation as per requirement.
  • Faster access.

Disadvantage of Linked List

  • Random access is not possible in Linked list because of the index unavailability.
  • Reverse traversing needs more memory.
  • Memory wastage for referencing.

Leave a Reply

Your email address will not be published. Required fields are marked *