Professional Documents
Culture Documents
1.3 Intro To DS
1.3 Intro To DS
1.3 Intro To DS
C, 2e
Reema Thareja
Introduction to Data
Structures and Algorithms
type name[size];
1st element 2nd 3rd 4th 5th element 6th 7th 8th element 9th 10th
element element element element element element element
marks[0] marks[1] marks[2] marks[3] marks[4] marks[5] marks[6] marks[7] marks[8] marks[9]
0 1 2 3 TOP = 4 5 6 7 8 9
9 7 18 14 36 45
0 FRONT = 1 2 3 4 5 REAR = 6 7 8 9 10
4
5 6 7
12
8 9 10 11
• When two nodes are connected via an edge, the two nodes are known as
neighbors.