Linked list

Views:
 
Category: Entertainment
     
 

Presentation Description

No description available.

Comments

By: ahsansahab (14 month(s) ago)

i am sorry but you cant download it. you can take it for the reference material

By: ahsansahab (14 month(s) ago)

i am sorry but you cant download it. you can take it for the reference material

Presentation Transcript

Linked list : 

Linked list By, Natasha Baloch 10TL15

Outlines : 

Outlines About linked list Representation of linked list Operations on linked list Advantages & disadvantages

About linked list : 

About linked list Also known as one way list It is linear collection of data elements which are called nodes. The order of the list is maintained by pointers

Contd.. : 

Contd.. divided into two parts Info part: containing the information of the element Link part: containing the address of the next node called as linked field or next pointer field.

Representation of linked list : 

Representation of linked list It requires two arrays in memory named as Info[] Link[] The other two variable these arrays require are START : containing the location of the beginning of the list. NULL : indicates the end of the list.

example : 

example

Operations on linked list : 

Operations on linked list Traversing:- processing of the each item of list by linking it with other node.

Operations on linked list(conti…) : 

Operations on linked list(conti…) Insertion:- Inserts a node after an existing node in a list.

Operations on linked list(conti…) : 

Operations on linked list(conti…) Deletion:- Removing the node after a given node.

Advantages of linked list : 

Advantages of linked list we can insert a new node where ever there is a free space in memory. More than one list can be maintained in the same linear array info[] link[] but each different list may have its own pointer variable giving the location of their first node.

Disadvantages : 

Disadvantages It allows only sequential access to elements. unsuitable for applications where it's useful to look up an element by its index quickly. extra storage required for references. It can also be slow.

Thank You!! : 

Thank You!!