Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
2017/ICTS/08
Topic 1
Node
10 #1
Pointer
Data
Types of Linked Lists
• It is the basic type of inked list.
• Each node contains data and pointer to the next node.
• Lat node’s pointer is null.
• Limitations of singly linked list is we can traverse only in one direction
Head
20 #104
40 null
10 #102
30 #106
#100
#102
#104
#106
• Each node of doubly linked list contains data and two pointers to the previous node and
the next node.
• Main advantage of the doubly linked list is we can traverse in any direction.
• Draw backs of double linked list is it requires more memory compared to singly linked
list.
Head
null 10 #102
#100 20 #104
#102 20 null
#102
#104
#100
Head
40 #100
20 #104
10 #102
30 #106
#100
#102
#104
#106
50 null
#4
rear
head
50 null
#4
20 #3
10 #2
30 #4
#1
#2
#3
front
40 null
#5
40 null
rear
head
#5
20 #3
10 #2
30 #4
50 #5
#1
#2
#4
#3
front
40 null
rear
head
#5
20 #3
10 null
30 #4
50 #5
#1
#2
#4
#3
front
40 null
rear
head
#5
20 #3
10 null
30 #4
50 #5
#1
#2
#4
#3
front
items
head
20 #3
40 null
50 #5
30 #4
#4
#2
#3
#5
rear
front
head
20 null
30 #4
50 #5
40 null
#2
#3
#4
#5
front
rear
head
20 null
30 #4
50 #5
40 null
#2
#3
#4
#5
front
rear