Chapter 5 Flashcards
Each link of a linked list can store a data called an element.
Link
Each link of a linked list contains a link to the next link
Next
A Linked List contains the connection link to the first link called First.
LinkedList
can be visualized as a chain of nodes, where every node points to the next node.
Linked list
• Item navigation is forward only.
Simple Linked List
• Items can be navigated forward and backward.
Doubly Linked List
• Last item contains link of the first element as next and the first element has a link to the last element as previous.
Circular Linked List
• Each link of a linked list can store a data called an element.
Link
Each link of a linked list contains a link to the next link
Next
Each link of a linked list contains a link to the previous link
Prev
A Linked List contains the connection link to the first link called First and to the last link called Last.
LinkedList
Adds an element at the beginning of the list.
Insertion
Deletes an element at the beginning of the list.
Deletion
Adds an element at the end of the list.
Insert last
Deletes an element from the end of the list.
Delete last