LinkedList in data structure in engineering.pptx

prasadrudra279 12 views 13 slides Feb 28, 2025
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

LinkedList


Slide Content

LINKED LIST & IT’S TYPES NAME-: Rudra Prasad REG.NO.-:220301120187

AGENDA What is linked list? Types of linked list? Advantages and disadvantages. Real world applications Conclusion.

What is linked list ? A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers.

Types of linked list? Singly Linked List. Doubly linked lists. Circular linked lists. Circular doubly linked lists.

Singly Linked List. A  singly linked list  is a linear data structure in which the elements are not stored in contiguous memory locations and each element is connected only to its next element using a pointer.

Doubly linked lists .   A doubly linked list or a two-way linked list is a more complex type of linked list that contains a pointer to the next as well as the previous node in sequence, Therefore, it contains three parts of data, a pointer to the next node, and a pointer to the previous node. This would enable us to traverse the list in the backward direction as well.

Circular linked lists . The  circular linked list  is a linked list where all nodes are connected to form a circle. In a circular linked list, the first node and the last node are connected to each other which forms a circle. There is no NULL at the end.

Circular doubly linked lists . A  circular doubly linked list  is defined as a  circular linked list   in which each node has two links connecting it to the previous node and the next node.

Advantages and disadvantages Dynamic size accommodation Efficient insertions and deletions Flexible memory allocation Versatility for various implementations Advantages Disadvantages Inefficient memory usage due to pointer overhead Lack of direct access Increased memory overhead Less efficient reverse traversing

Real world applications Linked lists find application in various real-world scenarios, such as browser history, music playlists, and to-do lists in productivity applications. They are used in file systems to manage files, in networking for managing connected devices, and in image processing applications for handling pixel data efficiently. Additionally, they are fundamental in implementing queue and stack data structures .

Conclusion Linked lists are dynamic data structures with nodes linked by pointers. Types include singly, doubly, and circular lists. They facilitate efficient insertions and deletions, but may require more memory.

THANK YOU!
Tags