Please enable JavaScript.
Coggle requires JavaScript to display documents.
kump 5 C2 - Coggle Diagram
kump 5 C2
Operation in Linked List
-
Traversing
When temp is NULL, we know that we have reached the end of the linked list so we get out of the while loop.
Creation
- create linked list- create one new linked list
- create node- to create one new source for connecting items in the linked list
Deletion- remove the existing elements
delete from end
- traverse to second last element
- change its next pointer to null
delete from middle
- Traverse to element before the element to be deleted
- change next pointers to exclude the node from the chain
delete from beginning
- point head to the second node
LINKED LIST
linked list is data structure that consists of a sequence of data records such that in each record there is a field that contains a reference to the next record in the sequence
-
-
TYPES OF LINKED LIST
Single Linked List
-
Elements or nodes only link to the next element in the list. When a single linked list is null terminating, that mean the list is finished.
To store a single linked list, only the reference or pointer to the first node in that list must be stored.
-
Example: Gallery in features in Mobile Phone Or PC it is because in this process we can click next button to proceed into next photo
-
Double Linked List
-
Pointer to the next node also make it quite easy to start the next track when the previous track is over
Because of the double linked list has head and tail properties this provides for an easy way to delineate the beginning and end of a playlist
Example Of The Process: Music Streaming Application has the Basic Function of Double Linked List because it has next or previous button
-
Circular Linked List
In the last node of a list, the link field often contains a null reference, a special value used to indicate the lack of further nodes.
A less common convention is to make it point to the first node of the list; in that case the list is said to be 'circular' or 'circularly linked‘
Example: Running a multiple software in PC can cause of Circular Linked List Process. All the running applications are kept in a circular linked list and the OS gives a fixed time slot to all for running.
The Operating System keeps on iterating over the linked list until all the applications are completed.
-
-
-
LIST
List is a Sequence in an abstract data type that represents a finite number of ordered values where the same value may occur more than once
Data, Elements, Components or Object that have the same data type
A linear Data Structure that contains a sequence of elements. List contains elements that are arranged consecutively
Example of list that very common we see is Array. Array is a series of elements that have the same type in contiguous memory location that can be referred by adding an index into Array.
-
-
-