Top Banner
Wel Come TO YOU
30

Data structure and its types

Dec 18, 2014

Download

Education

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data structure and its types

Wel Come TO YOU

Page 2: Data structure and its types

DATA STRUCTURE AND ITS TYPES

Page 3: Data structure and its types

Data StructureIt is a logical way of storing data and it also define mechanism of

retrieve data.

Page 4: Data structure and its types

Types of Data Structure

DATA STRUCTURE

NON LINEARLINEAR

Page 5: Data structure and its types

Data Structure Operation Traversing: Accessing each record exactly once so that certain item in the record may be processed.

Searching: finding the location of the record with a given key value .

Insertion : add a new record to the structure

Deletion : removing a record from the structure

Page 6: Data structure and its types

Linear Data Structure1.Array2.Stack3.Queue4.Linked List

Page 7: Data structure and its types

1.ArrayAn array is a collection of homogeneous type of data elements.An array is consisting of a collection of elements .

Page 8: Data structure and its types

Operation Performed On Array1.Traversing2.Search3.Insertion4.Deletion5.Sorting6.Merging

Page 9: Data structure and its types

Representation of array in memory1

2

3

4

5

Page 10: Data structure and its types

Array Representation

Page 11: Data structure and its types

2.StackA Stack is a list of elements in which an element may be inserted or deleted at one end which is known as TOP of the stack.

Page 12: Data structure and its types

Operation Performed on Stack Push: add an element in stack Pop: remove an element in stack

Page 13: Data structure and its types

Representation of Stack

EEE TOP

DDD

CCC

BBB

AAA

Page 14: Data structure and its types

Stack Representation

Page 15: Data structure and its types

3.QueueA queue is a linear list of element in which insertion can be done at one end which is known as front and deletion can be done which is known as rear.

Page 16: Data structure and its types

Operation Performed On QueueInsertion : add a new element in queueDeletion: Removing an element in queue

Page 17: Data structure and its types

Representation of Queue

55 65 75

Page 18: Data structure and its types

Queue Representation

Page 19: Data structure and its types

4.Linked ListA Linked list is a linear collection of data elements .It has two part one is info and other is link part.info part gives information and link part is address of next node

Page 20: Data structure and its types

Operation Performed on Linked List1.Traversing2.Searching3.Insertion4.Deletion

Page 21: Data structure and its types

Linked Representation

Page 22: Data structure and its types

2.Non Linear1.Tree2.Graph

Page 23: Data structure and its types

1.TreeIn computer science, a tree is a widely-used data structure that emulates a hierarchical tree structure with a set of linked nodes.

Page 24: Data structure and its types

Operation On Tree1.Insertion2.Deletion3.Searching

Page 25: Data structure and its types

Tree Representation

Page 26: Data structure and its types

2.GraphA graph data structure may also associate to each edge some edge value, such as a symbolic label or a numeric attribute (cost, capacity, length, etc.).

Page 27: Data structure and its types

Operation Performed Graph1.Searching2.Insertion3.Deletion

Page 28: Data structure and its types

Graph Representation

Page 29: Data structure and its types

BABA FARID COLLEGE (BATHINDA)

Page 30: Data structure and its types

THANKS FOR YOUR VISIT NAVTAR SIDHU ROLL NO:2219 BCA=1ST (E)SEM 2ND