SlideShare a Scribd company logo
Double Linked List
Adam M.B.
DEFINITION

Linked list that its node consists of two
connection fields (prev and next).
Double Linked List
Info Field
(Info)
Right Connection Field
(Next)
Left Connection Field
(Prev)
Declaration
Kamus:
Type
nama_pointer = ↑Simpul
Simpul = Record
< medan_data : tipedata,
prev, next : nama_pointer >
EndRecord
nama_var_pointer : nama_pointer
Example of Declaration
Kamus:
Type
point = ↑Simpul
Simpul = Record
< info : char,
prev, next : point >
EndRecord
awal,akhir : point
Operation
• Creation
• Insertion
• Delete
• Traversal
• Searching
• Sorting
• Destroy
Same with
single linked list
CREATION

Process
Pointer awal and akhir is given nil
value.
awal akhir
INSERTION

• If list is empty (awal = nil).
Front Insertion
awal akhir
baru 1
akhir  baru
awal  baru
baru↑.info  1
baru↑.next  nil
baru↑.prev  nil
alloc(baru)
• If list isn’t empty (awal ≠ nil). For example,
there is list that has two nodes:
Front Insertion (cont’d)
awal
2 3
akhir
baru 1
alloc(baru)
baru↑.info  1
baru↑.prev  nil
Front Insertion (cont’d)
2 3
baru 1
baru↑.next  awal
awal↑.prev  baru
awal baru
awal akhir
The last result for front insertion if linked list
wasn’t empty:
Front Insertion (cont’d)
2 3
akhir
1
awalbaru
• If list is empty (awal = nil)  the
process is same as front
insertion if double linked
list is empty.
Back Insertion
• If list isn’t empty (awal ≠ nil). For example,
there is list that has two nodes:
Back Insertion (cont’d)
awal
2 3
akhir
baru 1
alloc(baru)
baru↑.info  1
baru↑.next  nil
New node will be inserted after the node that
was refered by akhir.
Back Insertion (cont’d)
baru
awal
2 3
akhir
1
baru↑.prev  akhir
akhir↑.next  baru
akhir baru
The last result for back insertion if linked list
wasn’t empty:
Back Insertion (cont’d)
baru
2 3
1
awal akhirawal
2 3
akhir
1
• If list is empty (awal = nil)  the
process is same as front
insertion if linked list is
empty.
Middle Insertion
• If list isn’t empty (awal ≠ nil).
Middle Insertion (cont’d)
Node 4 will be inserted before 9:
Awal
5 97
Akhir
10
Awal
5 97
Akhir
10
bantu
Middle Insertion (cont’d)
baru 4
alloc(baru)
baru↑.info  4
baru↑.next  bantubaru↑.prev  bantu↑.prev
Awal
5 97
Akhir
10
bantu
Middle Insertion (cont’d)
bantu↑.prev↑.next  baru
Awal
5 97
Akhir
10
bantu
baru 4
bantu↑.prev  baru
The last result for middle insertion if linked list
wasn’t empty:
Middle Insertion (cont’d)
Awal
5 97
Akhir
104
baru 4
Awal
5 97
Akhir
10
bantu
DELETION

• Delete one node in beggining of linked list if
linked list has only one node (awal = akhir).
Front Deletion
phapus  awal
Awal
Akhir
2
Awal
Akhir
2
Awal
Akhir
elemen  phapus↑.info
awal  nil
akhir  nil
dealloc(phapus)
menjadi
If deletion happens in linked list with one node
then linked list will be empty.
Front Deletion (cont’d)
2 4 5 9
Awal Akhir
phapus  awal
phapus
elemen  phapus↑.info
elemen
Front Deletion (cont’d)
2 4 5 9
Akhir
phapus
awal  awal↑.next atau awal  phapus↑.next
Awal
Front Deletion (cont’d)
awal↑.prev  nildealloc(phapus)
2 4 5 9
Awal Akhir
phapus
The last result for front deletion if linked list has
more than one node:
Front Deletion (cont’d)
4 5 9
Awal Akhir
4 5 9
Akhir
phapus 2
Awal
• Delete one node in back of linked list if
linked list has only one node (awal = akhir).
This process is same as front
deletion if linked list has
only one node.
Back Deletion
• If linked list has more than one node (awal ≠
akhir). For example, linked list has four
nodes.
Back Deletion (cont’d)
2 4 5 9
Awal Akhir
phapus  akhir
phapus
elemen  phapus↑.info elemen
Back Deletion (cont’d)
2 4 5 9
phapus
akhir  akhir↑.prev atau akhir  phapus↑.prev
Awal Akhir
Back Deletion (cont’d)
akhir↑.next  nildealloc(phapus)
2 4 5 9
Awal Akhir phapus
The last result for back deletion if linked list has
more than one node:
Back Deletion (cont’d)
2 4 5 9
Awal Akhir
phapus
• Middle deletion in double linked list is
similar as middle deletion
in single linked list.
Middle Deletion
Contact Person:
Adam Mukharil Bachtiar
Informatics Engineering UNIKOM
Jalan Dipati Ukur Nomor. 112-114 Bandung 40132
Email: adfbipotter@gmail.com
Blog: http://adfbipotter.wordpress.com
Copyright © Adam Mukharil Bachtiar 2012

More Related Content

What's hot

linked list using c
linked list using clinked list using c
linked list using c
Venkat Reddy
 
CSE240 Doubly Linked Lists
CSE240 Doubly Linked ListsCSE240 Doubly Linked Lists
CSE240 Doubly Linked Lists
Garrett Gutierrez
 
Doubly linked list (animated)
Doubly linked list (animated)Doubly linked list (animated)
Doubly linked list (animated)
DivyeshKumar Jagatiya
 
linked list
linked list linked list
linked list
Narendra Chauhan
 
Linked list
Linked listLinked list
Linked list
VONI
 
Doubly Linked List || Operations || Algorithms
Doubly Linked List || Operations || AlgorithmsDoubly Linked List || Operations || Algorithms
Doubly Linked List || Operations || Algorithms
Shubham Sharma
 
Linked list
Linked listLinked list
Linked list
eShikshak
 
Data Structures - Lecture 7 [Linked List]
Data Structures - Lecture 7 [Linked List]Data Structures - Lecture 7 [Linked List]
Data Structures - Lecture 7 [Linked List]
Muhammad Hammad Waseem
 
Doubly & Circular Linked Lists
Doubly & Circular Linked ListsDoubly & Circular Linked Lists
Doubly & Circular Linked Lists
Afaq Mansoor Khan
 
Linked List - Insertion & Deletion
Linked List - Insertion & DeletionLinked List - Insertion & Deletion
Linked List - Insertion & Deletion
Afaq Mansoor Khan
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
dchuynh
 
Array implementation and linked list as datat structure
Array implementation and linked list as datat structureArray implementation and linked list as datat structure
Array implementation and linked list as datat structure
Tushar Aneyrao
 
Linear data structure concepts
Linear data structure conceptsLinear data structure concepts
Linear data structure concepts
Akila Krishnamoorthy
 
linked list
linked listlinked list
linked list
Shaista Qadir
 
Linkedlist
LinkedlistLinkedlist
11 15 (doubly linked list)
11 15 (doubly linked list)11 15 (doubly linked list)
Circular linked list
Circular linked listCircular linked list
Circular linked list
maamir farooq
 
Linklist
LinklistLinklist
Team 10
Team 10Team 10
Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)
shah alom
 

What's hot (20)

linked list using c
linked list using clinked list using c
linked list using c
 
CSE240 Doubly Linked Lists
CSE240 Doubly Linked ListsCSE240 Doubly Linked Lists
CSE240 Doubly Linked Lists
 
Doubly linked list (animated)
Doubly linked list (animated)Doubly linked list (animated)
Doubly linked list (animated)
 
linked list
linked list linked list
linked list
 
Linked list
Linked listLinked list
Linked list
 
Doubly Linked List || Operations || Algorithms
Doubly Linked List || Operations || AlgorithmsDoubly Linked List || Operations || Algorithms
Doubly Linked List || Operations || Algorithms
 
Linked list
Linked listLinked list
Linked list
 
Data Structures - Lecture 7 [Linked List]
Data Structures - Lecture 7 [Linked List]Data Structures - Lecture 7 [Linked List]
Data Structures - Lecture 7 [Linked List]
 
Doubly & Circular Linked Lists
Doubly & Circular Linked ListsDoubly & Circular Linked Lists
Doubly & Circular Linked Lists
 
Linked List - Insertion & Deletion
Linked List - Insertion & DeletionLinked List - Insertion & Deletion
Linked List - Insertion & Deletion
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
 
Array implementation and linked list as datat structure
Array implementation and linked list as datat structureArray implementation and linked list as datat structure
Array implementation and linked list as datat structure
 
Linear data structure concepts
Linear data structure conceptsLinear data structure concepts
Linear data structure concepts
 
linked list
linked listlinked list
linked list
 
Linkedlist
LinkedlistLinkedlist
Linkedlist
 
11 15 (doubly linked list)
11 15 (doubly linked list)11 15 (doubly linked list)
11 15 (doubly linked list)
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
 
Linklist
LinklistLinklist
Linklist
 
Team 10
Team 10Team 10
Team 10
 
Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)
 

Viewers also liked

Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)
Adam Mukharil Bachtiar
 
Doubly linked list
Doubly linked listDoubly linked list
Doubly linked list
Fahd Allebdi
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
Ninad Mankar
 
Doubly Link List
Doubly Link ListDoubly Link List
Doubly Link List
Kashif Memon
 
Präsentation linkedin
Präsentation linkedinPräsentation linkedin
Präsentation linkedin
Dieter Stempel
 
Destrucció hàbitats - 1r ESO LS Manlleu 2016
Destrucció hàbitats - 1r ESO LS Manlleu 2016Destrucció hàbitats - 1r ESO LS Manlleu 2016
Destrucció hàbitats - 1r ESO LS Manlleu 2016
Annapujolo
 
Presentationryanair 140224071313-phpapp02
Presentationryanair 140224071313-phpapp02Presentationryanair 140224071313-phpapp02
Presentationryanair 140224071313-phpapp02
Magda Elswesy
 
El llop 1r ESO La Salle Manlleu 2016
El llop 1r ESO La Salle Manlleu 2016El llop 1r ESO La Salle Manlleu 2016
El llop 1r ESO La Salle Manlleu 2016
Annapujolo
 
L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016
L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016
L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016
Annapujolo
 
Repayment Advisor I - Phoenix, AZ
Repayment Advisor I - Phoenix, AZRepayment Advisor I - Phoenix, AZ
Repayment Advisor I - Phoenix, AZ
Angelene Green
 
Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1
Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1
Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1
Paulraj Pappaiah
 
ĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢI
ĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢIĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢI
ĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢI
Luanvanyhoc.com-Zalo 0927.007.596
 
Data Structure (Static Array)
Data Structure (Static Array)Data Structure (Static Array)
Data Structure (Static Array)
Adam Mukharil Bachtiar
 
La cabra pirinenca
La cabra pirinencaLa cabra pirinenca
La cabra pirinenca
alex_mascu
 
Stack using Linked List
Stack using Linked ListStack using Linked List
Stack using Linked List
Sayantan Sur
 

Viewers also liked (15)

Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)
 
Doubly linked list
Doubly linked listDoubly linked list
Doubly linked list
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Doubly Link List
Doubly Link ListDoubly Link List
Doubly Link List
 
Präsentation linkedin
Präsentation linkedinPräsentation linkedin
Präsentation linkedin
 
Destrucció hàbitats - 1r ESO LS Manlleu 2016
Destrucció hàbitats - 1r ESO LS Manlleu 2016Destrucció hàbitats - 1r ESO LS Manlleu 2016
Destrucció hàbitats - 1r ESO LS Manlleu 2016
 
Presentationryanair 140224071313-phpapp02
Presentationryanair 140224071313-phpapp02Presentationryanair 140224071313-phpapp02
Presentationryanair 140224071313-phpapp02
 
El llop 1r ESO La Salle Manlleu 2016
El llop 1r ESO La Salle Manlleu 2016El llop 1r ESO La Salle Manlleu 2016
El llop 1r ESO La Salle Manlleu 2016
 
L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016
L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016
L'afebliment de la capa d'ozó - 1r ESO LS Manlleu 2016
 
Repayment Advisor I - Phoenix, AZ
Repayment Advisor I - Phoenix, AZRepayment Advisor I - Phoenix, AZ
Repayment Advisor I - Phoenix, AZ
 
Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1
Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1
Migrating IBM Cloud Orchestrator environment from v2.4.0.2 to v2.5.0.1
 
ĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢI
ĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢIĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢI
ĐÁNH GIÁ KẾT QUẢ VÁ NHĨ BẰNG KỸ THUẬT ĐẶT MẢNH GHÉP TRÊN-DƯỚI LỚP SỢI
 
Data Structure (Static Array)
Data Structure (Static Array)Data Structure (Static Array)
Data Structure (Static Array)
 
La cabra pirinenca
La cabra pirinencaLa cabra pirinenca
La cabra pirinenca
 
Stack using Linked List
Stack using Linked ListStack using Linked List
Stack using Linked List
 

Similar to Data Structure (Double Linked List)

Linked Lists.pdf
Linked Lists.pdfLinked Lists.pdf
Linked Lists.pdf
Kaynattariq1
 
ds 4Linked lists.ppt
ds 4Linked lists.pptds 4Linked lists.ppt
ds 4Linked lists.ppt
AlliVinay1
 
Linked list
Linked list Linked list
Linked list
Arbind Mandal
 
Unit 2 linked list and queues
Unit 2   linked list and queuesUnit 2   linked list and queues
Unit 2 linked list and queues
kalyanineve
 
Linked lists a
Linked lists aLinked lists a
Linked lists a
Khuram Shahzad
 
Linked List
Linked ListLinked List
Linked List
Md gulam sarwar
 
Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,
JayaKamal
 
Linked list
Linked listLinked list
Linked list
KalaivaniKS1
 
single linked list
single linked listsingle linked list
single linked list
Sathasivam Rangasamy
 
Data Structure
Data StructureData Structure
Data Structure
HarshGupta663
 
computer notes - Data Structures - 4
computer notes - Data Structures - 4computer notes - Data Structures - 4
computer notes - Data Structures - 4
ecomputernotes
 
Singly Linked List
Singly Linked ListSingly Linked List
Singly Linked List
raghavbirla63
 
linkedlist-130914084342-phpapp02.pptx
linkedlist-130914084342-phpapp02.pptxlinkedlist-130914084342-phpapp02.pptx
linkedlist-130914084342-phpapp02.pptx
MeghaKulkarni27
 
Unit - 2.pdf
Unit - 2.pdfUnit - 2.pdf
Unit - 2.pdf
AravindAnand21
 
Write a JAVA LinkedListRec class that has the following methods siz.pdf
Write a JAVA LinkedListRec class that has the following methods siz.pdfWrite a JAVA LinkedListRec class that has the following methods siz.pdf
Write a JAVA LinkedListRec class that has the following methods siz.pdf
info785431
 
linked-list.ppt
linked-list.pptlinked-list.ppt
linked-list.ppt
DikkySuryadiSKomMKom
 
C Exam Help
C Exam Help C Exam Help
C Exam Help
Programming Exam Help
 
Linked list1.ppt
Linked list1.pptLinked list1.ppt
Linked list1.ppt
KasthuriKAssistantPr
 
Lec-4_Linked-List (1).pdf
Lec-4_Linked-List (1).pdfLec-4_Linked-List (1).pdf
Lec-4_Linked-List (1).pdf
KylaMaeGarcia1
 
Dounly linked list
Dounly linked listDounly linked list
Dounly linked list
NirmalPandey23
 

Similar to Data Structure (Double Linked List) (20)

Linked Lists.pdf
Linked Lists.pdfLinked Lists.pdf
Linked Lists.pdf
 
ds 4Linked lists.ppt
ds 4Linked lists.pptds 4Linked lists.ppt
ds 4Linked lists.ppt
 
Linked list
Linked list Linked list
Linked list
 
Unit 2 linked list and queues
Unit 2   linked list and queuesUnit 2   linked list and queues
Unit 2 linked list and queues
 
Linked lists a
Linked lists aLinked lists a
Linked lists a
 
Linked List
Linked ListLinked List
Linked List
 
Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,
 
Linked list
Linked listLinked list
Linked list
 
single linked list
single linked listsingle linked list
single linked list
 
Data Structure
Data StructureData Structure
Data Structure
 
computer notes - Data Structures - 4
computer notes - Data Structures - 4computer notes - Data Structures - 4
computer notes - Data Structures - 4
 
Singly Linked List
Singly Linked ListSingly Linked List
Singly Linked List
 
linkedlist-130914084342-phpapp02.pptx
linkedlist-130914084342-phpapp02.pptxlinkedlist-130914084342-phpapp02.pptx
linkedlist-130914084342-phpapp02.pptx
 
Unit - 2.pdf
Unit - 2.pdfUnit - 2.pdf
Unit - 2.pdf
 
Write a JAVA LinkedListRec class that has the following methods siz.pdf
Write a JAVA LinkedListRec class that has the following methods siz.pdfWrite a JAVA LinkedListRec class that has the following methods siz.pdf
Write a JAVA LinkedListRec class that has the following methods siz.pdf
 
linked-list.ppt
linked-list.pptlinked-list.ppt
linked-list.ppt
 
C Exam Help
C Exam Help C Exam Help
C Exam Help
 
Linked list1.ppt
Linked list1.pptLinked list1.ppt
Linked list1.ppt
 
Lec-4_Linked-List (1).pdf
Lec-4_Linked-List (1).pdfLec-4_Linked-List (1).pdf
Lec-4_Linked-List (1).pdf
 
Dounly linked list
Dounly linked listDounly linked list
Dounly linked list
 

More from Adam Mukharil Bachtiar

Materi 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdfMateri 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdf
Adam Mukharil Bachtiar
 
Clean Code - Formatting Code
Clean Code - Formatting CodeClean Code - Formatting Code
Clean Code - Formatting Code
Adam Mukharil Bachtiar
 
Clean Code - Clean Comments
Clean Code - Clean CommentsClean Code - Clean Comments
Clean Code - Clean Comments
Adam Mukharil Bachtiar
 
Clean Method
Clean MethodClean Method
Clean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful NamesClean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful Names
Adam Mukharil Bachtiar
 
Model Driven Software Development
Model Driven Software DevelopmentModel Driven Software Development
Model Driven Software Development
Adam Mukharil Bachtiar
 
Scrum: How to Implement
Scrum: How to ImplementScrum: How to Implement
Scrum: How to Implement
Adam Mukharil Bachtiar
 
Pengujian Perangkat Lunak
Pengujian Perangkat LunakPengujian Perangkat Lunak
Pengujian Perangkat Lunak
Adam Mukharil Bachtiar
 
Data Mining Clustering
Data Mining ClusteringData Mining Clustering
Data Mining Clustering
Adam Mukharil Bachtiar
 
Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)
Adam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic ProgrammingAnalisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic Programming
Adam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and ConquerAnalisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and Conquer
Adam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAnalisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma Greedy
Adam Mukharil Bachtiar
 
Analisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute ForceAnalisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute Force
Adam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute ForceAnalisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute Force
Adam Mukharil Bachtiar
 
Analisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi AlgoritmaAnalisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Adam Mukharil Bachtiar
 
Analisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi AsimptotikAnalisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi Asimptotik
Adam Mukharil Bachtiar
 
Analisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi AsimptotikAnalisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi Asimptotik
Adam Mukharil Bachtiar
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
Adam Mukharil Bachtiar
 
UML dan Use Case View
UML dan Use Case ViewUML dan Use Case View
UML dan Use Case View
Adam Mukharil Bachtiar
 

More from Adam Mukharil Bachtiar (20)

Materi 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdfMateri 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdf
 
Clean Code - Formatting Code
Clean Code - Formatting CodeClean Code - Formatting Code
Clean Code - Formatting Code
 
Clean Code - Clean Comments
Clean Code - Clean CommentsClean Code - Clean Comments
Clean Code - Clean Comments
 
Clean Method
Clean MethodClean Method
Clean Method
 
Clean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful NamesClean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful Names
 
Model Driven Software Development
Model Driven Software DevelopmentModel Driven Software Development
Model Driven Software Development
 
Scrum: How to Implement
Scrum: How to ImplementScrum: How to Implement
Scrum: How to Implement
 
Pengujian Perangkat Lunak
Pengujian Perangkat LunakPengujian Perangkat Lunak
Pengujian Perangkat Lunak
 
Data Mining Clustering
Data Mining ClusteringData Mining Clustering
Data Mining Clustering
 
Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)
 
Analisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic ProgrammingAnalisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic Programming
 
Analisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and ConquerAnalisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and Conquer
 
Analisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAnalisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma Greedy
 
Analisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute ForceAnalisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute Force
 
Analisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute ForceAnalisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute Force
 
Analisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi AlgoritmaAnalisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
 
Analisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi AsimptotikAnalisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi Asimptotik
 
Analisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi AsimptotikAnalisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi Asimptotik
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
 
UML dan Use Case View
UML dan Use Case ViewUML dan Use Case View
UML dan Use Case View
 

Recently uploaded

OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
SQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure MalaysiaSQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure Malaysia
GohKiangHock
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
ICS
 

Recently uploaded (20)

OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
SQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure MalaysiaSQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure Malaysia
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
 

Data Structure (Double Linked List)

  • 3. Linked list that its node consists of two connection fields (prev and next). Double Linked List Info Field (Info) Right Connection Field (Next) Left Connection Field (Prev)
  • 4. Declaration Kamus: Type nama_pointer = ↑Simpul Simpul = Record < medan_data : tipedata, prev, next : nama_pointer > EndRecord nama_var_pointer : nama_pointer
  • 5. Example of Declaration Kamus: Type point = ↑Simpul Simpul = Record < info : char, prev, next : point > EndRecord awal,akhir : point
  • 6. Operation • Creation • Insertion • Delete • Traversal • Searching • Sorting • Destroy Same with single linked list
  • 8. Process Pointer awal and akhir is given nil value. awal akhir
  • 10. • If list is empty (awal = nil). Front Insertion awal akhir baru 1 akhir  baru awal  baru baru↑.info  1 baru↑.next  nil baru↑.prev  nil alloc(baru)
  • 11. • If list isn’t empty (awal ≠ nil). For example, there is list that has two nodes: Front Insertion (cont’d) awal 2 3 akhir baru 1 alloc(baru) baru↑.info  1 baru↑.prev  nil
  • 12. Front Insertion (cont’d) 2 3 baru 1 baru↑.next  awal awal↑.prev  baru awal baru awal akhir
  • 13. The last result for front insertion if linked list wasn’t empty: Front Insertion (cont’d) 2 3 akhir 1 awalbaru
  • 14. • If list is empty (awal = nil)  the process is same as front insertion if double linked list is empty. Back Insertion
  • 15. • If list isn’t empty (awal ≠ nil). For example, there is list that has two nodes: Back Insertion (cont’d) awal 2 3 akhir baru 1 alloc(baru) baru↑.info  1 baru↑.next  nil
  • 16. New node will be inserted after the node that was refered by akhir. Back Insertion (cont’d) baru awal 2 3 akhir 1 baru↑.prev  akhir akhir↑.next  baru akhir baru
  • 17. The last result for back insertion if linked list wasn’t empty: Back Insertion (cont’d) baru 2 3 1 awal akhirawal 2 3 akhir 1
  • 18. • If list is empty (awal = nil)  the process is same as front insertion if linked list is empty. Middle Insertion
  • 19. • If list isn’t empty (awal ≠ nil). Middle Insertion (cont’d) Node 4 will be inserted before 9: Awal 5 97 Akhir 10 Awal 5 97 Akhir 10 bantu
  • 20. Middle Insertion (cont’d) baru 4 alloc(baru) baru↑.info  4 baru↑.next  bantubaru↑.prev  bantu↑.prev Awal 5 97 Akhir 10 bantu
  • 21. Middle Insertion (cont’d) bantu↑.prev↑.next  baru Awal 5 97 Akhir 10 bantu baru 4 bantu↑.prev  baru
  • 22. The last result for middle insertion if linked list wasn’t empty: Middle Insertion (cont’d) Awal 5 97 Akhir 104 baru 4 Awal 5 97 Akhir 10 bantu
  • 24. • Delete one node in beggining of linked list if linked list has only one node (awal = akhir). Front Deletion phapus  awal Awal Akhir 2 Awal Akhir 2 Awal Akhir elemen  phapus↑.info awal  nil akhir  nil dealloc(phapus) menjadi
  • 25. If deletion happens in linked list with one node then linked list will be empty. Front Deletion (cont’d) 2 4 5 9 Awal Akhir phapus  awal phapus elemen  phapus↑.info elemen
  • 26. Front Deletion (cont’d) 2 4 5 9 Akhir phapus awal  awal↑.next atau awal  phapus↑.next Awal
  • 27. Front Deletion (cont’d) awal↑.prev  nildealloc(phapus) 2 4 5 9 Awal Akhir phapus
  • 28. The last result for front deletion if linked list has more than one node: Front Deletion (cont’d) 4 5 9 Awal Akhir 4 5 9 Akhir phapus 2 Awal
  • 29. • Delete one node in back of linked list if linked list has only one node (awal = akhir). This process is same as front deletion if linked list has only one node. Back Deletion
  • 30. • If linked list has more than one node (awal ≠ akhir). For example, linked list has four nodes. Back Deletion (cont’d) 2 4 5 9 Awal Akhir phapus  akhir phapus elemen  phapus↑.info elemen
  • 31. Back Deletion (cont’d) 2 4 5 9 phapus akhir  akhir↑.prev atau akhir  phapus↑.prev Awal Akhir
  • 32. Back Deletion (cont’d) akhir↑.next  nildealloc(phapus) 2 4 5 9 Awal Akhir phapus
  • 33. The last result for back deletion if linked list has more than one node: Back Deletion (cont’d) 2 4 5 9 Awal Akhir phapus
  • 34. • Middle deletion in double linked list is similar as middle deletion in single linked list. Middle Deletion
  • 35. Contact Person: Adam Mukharil Bachtiar Informatics Engineering UNIKOM Jalan Dipati Ukur Nomor. 112-114 Bandung 40132 Email: adfbipotter@gmail.com Blog: http://adfbipotter.wordpress.com Copyright © Adam Mukharil Bachtiar 2012