SlideShare une entreprise Scribd logo
1  sur  54
Data Structure and
Algorithm (CS-102)
Ashok K Turuk
Consider the insertion of following
element A, B, C, , ….,X, Y, Z into the
BST
A

B

O(N)
C

X
Y

Z
Consider the insertion of following
element Z, X, Y, , ….,C, B, A into the
BST
Z

X
Y

C
B
A

O(N)
Balanced binary tree
• The disadvantage of a binary search tree is that its
height can be as large as N-1
• This means that the time needed to perform insertion
and deletion and many other operations can be O(N)
in the worst case
• We want a tree with small height
• A binary tree with N node has height at least
(log
N)
• Thus, our goal is to keep the height of a binary search
tree O(log N)
• Such trees are called balanced binary search trees.
Examples are AVL tree, red-black tree.
AVL tree
Height of a node
• The height of a leaf is 1. The height of
a null pointer is zero.
• The height of an internal node is the
maximum height of its children plus 1
AVL tree
• An AVL tree is a binary search tree in
which
– for every node in the tree, the height of
the left and right subtrees differ by at
most 1.
– An empty binary tree is an AVL tree
AVL tree

TL left subtree of T
h(TL ) Height of the subtree TL
TR Right subtree of T
h(TR ) Height of the subtree TR
T is an AVL tree iff TL and TR are AVL
tree and |h(TL ) - h(TR ) | <= 1
h(TL ) - h(TR ) is known as balancing factor
(BF) and for an AVL tree the BF of a
node can be either 0 , 1, or -1
AVL Search Tree
(-1)
C
G (1)

(0) A
D (0)
Insertion in AVL search Tree
Insertion into an AVL search tree may
affect the BF of a node, resulting the
BST unbalanced.

A technique called Rotation is used to
restore he balance of the search tree
AVL Search Tree
(-1)
C
G (1)

(0) A
D (0)

E
AVL Search Tree
(-2)
C
(0) A

G (2)
D (-1)

E (0)
Rotation
To perform rotation – Identify a specific
node A whose BF(A) is neither 0, 1, or -1
and which is the nearest ancestor to
the inserted node on the path from the
inserted node to the root
Rotation
Rebalancing rotation are classified as LL,
LR, RR and RL
LL Rotation: Inserted node is in the left
sub-tree of left sub-tree of node A
RR Rotation: Inserted node is in the right
sub-tree of right sub-tree of node A
LR Rotation: Inserted node is in the right
sub-tree of left sub-tree of node A
RL Rotation: Inserted node is in the left
sub-tree of right sub-tree of node A
LL Rotation
(+1)

(+2)

A
(0)

BL

B

h

A
AR

Insert X into BL

c

BR

BL : Left Sub-tree of B
BR : Right Sub-tree of B
AR : Right Sub-tree of A
h : Height

(+1) B

h+1

x

BL

h

AR
c

BR

Unbalanced AVL
search tree after
insertion
LL Rotation
(+2)

(0)

A
(+1) B

h+1

x

BL

h

AR
c

BR

Unbalanced AVL
search tree after
insertion

LL Rotation

h+1

BL

B

(0)

A
x
c

h

BR
Balanced AVL
search tree after
rotation

AR
LL Rotation Example
(+1)

96
(0)
(0)

64

(+2)

96

85

90

(0)

110
(0)

(+1)

Insert 36

(+1)

64

85

90

(0)

110
(0)

(0) 36
Unbalanced AVL search
tree
LL Rotation Example
(+2)

(0)

96
(+1)
(+1)

64

85

90

(0)

110
(0)

LL Rotation

(+1)

(0) 36

85

64

(0)

96
(0)

90 (0) 110

(0) 36

Unbalanced VAL search
tree

Balanced AVL search tree
after LL rotation
RR Rotation
(-1)

(-2)

A
B (0)

h
AL

h
BL

c

BR

A

Insert X
into BR

B

AL

(-1)

c

BL

x

h+1

BR

Unbalanced AVL
search tree after
insertion
RR Rotation
(-2)

(0)

A
B

AL

(-1)

c

BL

RR Rotation

B
(0)

A

h+1

c

h

x

BR

Unbalanced AVL
search tree after
insertion

AL

BL

h+1

x

BR

Balanced AVL
search tree after
Rotation
RR Rotation Example
(-1)

34
(0)

(-2)

34
(0)

26

Insert 65

44

(0)

40

(0)

56

(0)

(-1)

26
(0)

44

40

(-1)

56

(0) 65

Unbalanced AVL search
tree
RR Rotation Example
(-2)

(-2)

34
(0)

(-1)

26
(0)

44

40

(-1)

56

44

RR
Rotation

(0)
(0)

26

(-1)

34
(0)

56

40

(0)

65

(0) 65
Balanced AVL search tree
after RR rotation
LR Rotation

(-1)

A (+1)

B
C (0)

h

h

c

BL

CL

CR

AR

(+2)

A

(-1)

B
Insert X
into CL

C

BL

x

CL

(-1)

c

CR AR

Unbalanced AVL
search tree after
insertion
LR Rotation

A (+2)

(-1)

B
(-1)

C

h
BL

x

CL

C

(0)

B

h

AR

x

BL

(-1)

A

LR Rotation

c

CR

(0)

CL

c

CR

Balanced AVL
search tree after
LR Rotation

AR
LR Rotation Example
(+1)

44
(0)
(0)

16

(+2)

44

30

39

(0)

76
(0)

Insert 37

(-1)
(+1)

16

30

39

(0)

76
(+1)

37 (0)
Unbalanced AVL search
tree
LR Rotation Example
(+2)

44
(-1)
(0)

(0)

39
(0)

30

16

76

39
37

(0)

(+1)

LR Rotation

(0)
(0)

16

30

37

(-1)

44
(0)

76
(0)

Balanced AVL search tree
RL Rotation

(-1)

A

h (0)
C
AL

(-2)

(0)

B

Insert X
into CR
c

CL

A

CR

h (-1)
C

h
BR

(+1)

AL

B

c

CL

x

CR

Unbalanced AVL
search tree after
insertion

h
BR
RL Rotation

(-2)

A

h (-1)
C
AL

B

RL Rotation
(+1)
c

CL

(0)

(+1)

x

CR

h
BR

C

(0)

B

A
c

AL

h

x

h
CL

CR

BR

Balanced AVL search
tree after RL Rotation
RL Rotation Example
(-1)

34
(0)

(-2)

34
(0)

26

Insert 41

44

(0)

40

(0)

56

(0)

(+1)

26

44

(-1)

40

(0)

56

(0) 41

Unbalanced AVL search
tree
RL Rotation Example
(-2)

34
(0)

(0)

40
(+1) RL Rotation

26
(-1)

44

(0)

40

(0)

56

(+1)

(0)

34

(0) 26 (0)

44

41

(0)

56

41

Balanced AVL search
tree
AVL Tree
Construct an AVL search tree by inserting
the following elements in the order of
their occurrence

64, 1, 14, 26, 13, 110, 98, 85
Insert 64, 1

64

(+1)

(0) 1

(0)

Insert 14

64

1

(+2)

LR

(-1)
14 (0)

(0)
1

14
(0)
64
Insert 26, 13, 110,98
(-1)

14

(-1)
(-1)
1 (0) 64
(+1)
13
(0)
110
26
(0)
98

(0)
(0)
1

14
(0)
64
Insert 85
(-1)
1

14

(-1)

(-2)

LL

(-2)

(0) 64
13
(0)
26

(+2)

110
98

85 (0)

(+1)

14

(-1)
(-1)
1 (0) 64
(0)
13
(0)
98
26
(0)
85

(0)
110
Deletion in AVL search Tree
Deletion in AVL search tree proceed the
same way as the deletion in binary
search tree
However, in the event of imbalance due to
deletion, one or more rotation need to
be applied to balance the AVL tree.
AVL deletion
Let A be the closest ancestor node on the
path from X (deleted node) to the root
with a balancing factor +2 or -2
Classify the rotation as L or R depending
on whether the deletion occurred on the
left or right subtree of A
AVL Deletion
Depending on the value of BF(B) where B
is the root of the left or right subtree
of A, the R or L imbalance is further
classified as R0, R1 and R -1 or L0, L1
and L-1.
R0 Rotation
(+1)

(+2)

A
(0)

BL

Delete node X

B

h

A

h AR
c

BR

(0)

x

BL

B
h

AR
c

BR

h -1

Unbalanced AVL
search tree after
deletion of node
x
R0 Rotation
(+2)

(-1) B

A
(0)

BL

B

h

AR
c

BR

Unbalanced AVL
search tree after
deletion of x

(+1)

A

R0 Rotation

BF(B) == 0, use
R0 rotation

BL

c

h

BR

Balanced AVL
search tree after
rotation

AR
R0 Rotation Example
(+1)

(+2)

46
(0)
(+1)

18

(0) 7

20

23

(-1)

54
(-1)

(0) 24

46
Delete 60 (0)

60

(0)

(+1)

18

(0) 7

20

23

(0)

54
(-1)

(0) 24

Unbalanced AVL search
tree after deletion
R0 Rotation Example
(+2)

(-1)

46
(0)
(+1)

18

(0) 7

20

23

(0)

54
(-1)

(0) 24

20
R0

(+1)
(0)

7

(+1)

18
(-1)

46

23

(0)
54

(0) 24
Balanced AVL search tree
after deletion
R1 Rotation
(+1)

(+2)

A
Delete node X

(+1) B

h
BL

A

h AR
c

x

h -1

BR

(+1) B

h
BL

h -1 AR
c

BR

h -1

Unbalanced AVL
search tree after
deletion of node
x
R1 Rotation
(+2)

(0)

A
(+1) B

h
BL

h -1 AR
c

BR

h -1

B

(0)

A

R1 Rotation

BF(B) == 1, use
R1 rotation

BL

c

BR

h-1 A
R

Balanced AVL
search tree after
rotation
R1 Rotation Example
(+1)

(+2)

37
(+1)
(+1)

18

(0) 16

26

28

(+1)

41
39 (0)

37
(+1)

Delete 39

26

(+1)

18

(0)

28

(0)

41
(0)

(0) 16
Unbalanced AVL search
tree after deletion
R1 Rotation Example
(+2)

(0)

37
(+1)
(+1)

18

26

(0)

41

28 (0)

26
R1 Rotation
(0)

(0)

(+1)

18

16

37

28

(0)

(0)
41

(0) 16
Balanced AVL search tree
after deletion
R-1 Rotation

(-1)

A (+1)

h-1

c

BL

CL

CR

h

A

(-1)

B

B
C (0)

(+2)

C

Delete X

(0)

h-1
c

x

AR

BL

CL

CR

Unbalanced AVL
search tree after
deletion

AR
R-1 Rotation

(-1)

A (+2)

B
h-1

h -1
C (0)

BL

CL

CR

AR

(0)

B
R -1

h -1
BL

c

(0)

BF(B) == -1,
use R-1 rotation

CL

C

(0)
c

A
h -1

CR AR

Balanced AVL
search tree after
Rotation
R-1 Rotation Example
(+1)

44
(-1)
(0)

22

(+2)

44
(-1) Delete 52

48

(0) 52
28

18
23

29

(-1)
(0)

18

22

28

23 (0)

(0)

48
(0)
29

Unbalanced AVL search
tree after deletion
R-1 Rotation Example
(+1)

44
(-1)
(0)

22

(0)

28
(-1) R-1

48

(0) 52
28

18
23

(0)
(0)

18

(0)
44

22
(0)

23

29

(0)

48

29
Balanced AVL search tree
after rotation
L0 Rotation
(-1)

(-2)

A
B (0)

h
x

AL

h
BL

A

Delete X

c

BR

h-1
AL

B
h

BL

(0)

c

BR

Unbalanced AVL
search tree after
deletion
L0 Rotation
(-1)

(+1)

A
B (0)

h -1
AL

h
BL

B

Delete X

c

BR

(-1)

AL A

h

c

(0)

BR

h-1
BL

Balanced AVL
search tree after
deletion
L1 Rotation
(-1)

(-2)

A
B (+1)

h

(0)

AL

c

C

x

h-1

CL

A

Delete X

CR

h-1

h-1
AL (0)

B

(+1)

C h-1c

BR
CL

CR

Unbalanced AVL
search tree after
deletion

BR
L1 Rotation
(-2)

(0)

A
h-1
AL

B (+1)
(0)

c

C
h-1

CL

CR

BR

L1

C

(0)

A

h-1

h-1
AL

B

(0)

h-1c

CL CR

Unbalanced AVL
search tree after
deletion

BR
L-1 Rotation
(-1)

(-2)

A
h

h-1
x

AL

B (-1)
c

BL

A

Delete X

h

BR

h-1
AL

h-1

B

(-1)

c

BL

BR

Unbalanced AVL
search tree after
deletion

h
L-1 Rotation
(-2)

(0)

A
h-1

h-1
BL

(-1)

B (-1)
c

AL

B

Delete X

A

h

BR

c

AL

h-1 B

L

h

BR

Balanced AVL
search tree after
deletion

Contenu connexe

Tendances

digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number systemNallapati Anindra
 
Counting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort AlgorithmsCounting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort AlgorithmsSarvesh Rawat
 
Binary Search Tree
Binary Search TreeBinary Search Tree
Binary Search Treesagar yadav
 
Linear and Binary search
Linear and Binary searchLinear and Binary search
Linear and Binary searchNisha Soms
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartTanjarul Islam Mishu
 
Insertion sort bubble sort selection sort
Insertion sort bubble sort  selection sortInsertion sort bubble sort  selection sort
Insertion sort bubble sort selection sortUmmar Hayat
 
Breadth first search and depth first search
Breadth first search and  depth first searchBreadth first search and  depth first search
Breadth first search and depth first searchHossain Md Shakhawat
 
Bubble sort | Data structure |
Bubble sort | Data structure |Bubble sort | Data structure |
Bubble sort | Data structure |MdSaiful14
 
Data Structure: TREES
Data Structure: TREESData Structure: TREES
Data Structure: TREESTABISH HAMID
 
Data Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search TreeData Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search TreeManishPrajapati78
 
Lecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic SortingLecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic SortingHaitham El-Ghareeb
 
1.5 binary search tree
1.5 binary search tree1.5 binary search tree
1.5 binary search treeKrish_ver2
 
Data Structures- Part5 recursion
Data Structures- Part5 recursionData Structures- Part5 recursion
Data Structures- Part5 recursionAbdullah Al-hazmy
 
Algorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsAlgorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsMohamed Loey
 

Tendances (20)

digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Counting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort AlgorithmsCounting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort Algorithms
 
Binary Search Tree
Binary Search TreeBinary Search Tree
Binary Search Tree
 
Linear and Binary search
Linear and Binary searchLinear and Binary search
Linear and Binary search
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchart
 
Insertion sort bubble sort selection sort
Insertion sort bubble sort  selection sortInsertion sort bubble sort  selection sort
Insertion sort bubble sort selection sort
 
Heaps & priority queues
Heaps & priority queuesHeaps & priority queues
Heaps & priority queues
 
Breadth first search and depth first search
Breadth first search and  depth first searchBreadth first search and  depth first search
Breadth first search and depth first search
 
Binary search tree(bst)
Binary search tree(bst)Binary search tree(bst)
Binary search tree(bst)
 
Bubble sort | Data structure |
Bubble sort | Data structure |Bubble sort | Data structure |
Bubble sort | Data structure |
 
Linear Search Presentation
Linear Search PresentationLinear Search Presentation
Linear Search Presentation
 
Balanced Tree (AVL Tree & Red-Black Tree)
Balanced Tree (AVL Tree & Red-Black Tree)Balanced Tree (AVL Tree & Red-Black Tree)
Balanced Tree (AVL Tree & Red-Black Tree)
 
Data Structure: TREES
Data Structure: TREESData Structure: TREES
Data Structure: TREES
 
Data Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search TreeData Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search Tree
 
Lecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic SortingLecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic Sorting
 
1.5 binary search tree
1.5 binary search tree1.5 binary search tree
1.5 binary search tree
 
Counting Sort
Counting SortCounting Sort
Counting Sort
 
Digital Search Tree
Digital Search TreeDigital Search Tree
Digital Search Tree
 
Data Structures- Part5 recursion
Data Structures- Part5 recursionData Structures- Part5 recursion
Data Structures- Part5 recursion
 
Algorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsAlgorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching Algorithms
 

En vedette

En vedette (11)

AVL Tree
AVL TreeAVL Tree
AVL Tree
 
Mca iii dfs u-4 tree and graph
Mca iii dfs u-4 tree and graphMca iii dfs u-4 tree and graph
Mca iii dfs u-4 tree and graph
 
9.bst(contd.) avl tree
9.bst(contd.) avl tree9.bst(contd.) avl tree
9.bst(contd.) avl tree
 
The Stack And Recursion
The Stack And RecursionThe Stack And Recursion
The Stack And Recursion
 
Queues
QueuesQueues
Queues
 
Stacks in algorithems & data structure
Stacks in algorithems & data structureStacks in algorithems & data structure
Stacks in algorithems & data structure
 
Recursion
RecursionRecursion
Recursion
 
Stack data structure
Stack data structureStack data structure
Stack data structure
 
Stack
StackStack
Stack
 
Graphs ppt
Graphs pptGraphs ppt
Graphs ppt
 
STACKS IN DATASTRUCTURE
STACKS IN DATASTRUCTURESTACKS IN DATASTRUCTURE
STACKS IN DATASTRUCTURE
 

Similaire à Lecture 10 data structures and algorithms

Similaire à Lecture 10 data structures and algorithms (20)

4. avl
4. avl4. avl
4. avl
 
Avl trees
Avl treesAvl trees
Avl trees
 
lec41.ppt
lec41.pptlec41.ppt
lec41.ppt
 
CS-102 AVLSv2.pdf
CS-102 AVLSv2.pdfCS-102 AVLSv2.pdf
CS-102 AVLSv2.pdf
 
CS-102 AVLS.pdf
CS-102 AVLS.pdfCS-102 AVLS.pdf
CS-102 AVLS.pdf
 
Avl trees
Avl treesAvl trees
Avl trees
 
Lect 13, 14 (final)AVL Tree and Rotations.pdf
Lect 13, 14 (final)AVL Tree and Rotations.pdfLect 13, 14 (final)AVL Tree and Rotations.pdf
Lect 13, 14 (final)AVL Tree and Rotations.pdf
 
Avl trees final
Avl trees finalAvl trees final
Avl trees final
 
Avl tree
Avl treeAvl tree
Avl tree
 
Data Structure and Algorithms AVL Trees
Data Structure and Algorithms AVL TreesData Structure and Algorithms AVL Trees
Data Structure and Algorithms AVL Trees
 
AVL Tree.pptx
AVL Tree.pptxAVL Tree.pptx
AVL Tree.pptx
 
DS_Mod4_2.pdf
DS_Mod4_2.pdfDS_Mod4_2.pdf
DS_Mod4_2.pdf
 
AVL-TREE.ppt
AVL-TREE.pptAVL-TREE.ppt
AVL-TREE.ppt
 
AVL tree Chanchal.pptx
AVL tree Chanchal.pptxAVL tree Chanchal.pptx
AVL tree Chanchal.pptx
 
AVL TREE PREPARED BY M V BRAHMANANDA REDDY
AVL TREE PREPARED BY M V BRAHMANANDA REDDYAVL TREE PREPARED BY M V BRAHMANANDA REDDY
AVL TREE PREPARED BY M V BRAHMANANDA REDDY
 
Data structures trees and graphs - AVL tree.pptx
Data structures trees and graphs - AVL  tree.pptxData structures trees and graphs - AVL  tree.pptx
Data structures trees and graphs - AVL tree.pptx
 
Logic microoperations
Logic microoperationsLogic microoperations
Logic microoperations
 
Adelson velskii Landis rotations based on
Adelson velskii Landis rotations based onAdelson velskii Landis rotations based on
Adelson velskii Landis rotations based on
 
avl.ppt
avl.pptavl.ppt
avl.ppt
 
avl.ppt
avl.pptavl.ppt
avl.ppt
 

Plus de Aakash deep Singhal

Lecture 15 data structures and algorithms
Lecture 15 data structures and algorithmsLecture 15 data structures and algorithms
Lecture 15 data structures and algorithmsAakash deep Singhal
 
Lecture 14 data structures and algorithms
Lecture 14 data structures and algorithmsLecture 14 data structures and algorithms
Lecture 14 data structures and algorithmsAakash deep Singhal
 
Lecture 13 data structures and algorithms
Lecture 13 data structures and algorithmsLecture 13 data structures and algorithms
Lecture 13 data structures and algorithmsAakash deep Singhal
 
Lecture 12 data structures and algorithms
Lecture 12 data structures and algorithmsLecture 12 data structures and algorithms
Lecture 12 data structures and algorithmsAakash deep Singhal
 
Lecture 11 data structures and algorithms
Lecture 11 data structures and algorithmsLecture 11 data structures and algorithms
Lecture 11 data structures and algorithmsAakash deep Singhal
 
Lecture 9 data structures and algorithms
Lecture 9 data structures and algorithmsLecture 9 data structures and algorithms
Lecture 9 data structures and algorithmsAakash deep Singhal
 
Lecture 8 data structures and algorithms
Lecture 8 data structures and algorithmsLecture 8 data structures and algorithms
Lecture 8 data structures and algorithmsAakash deep Singhal
 
Lecture 7 data structures and algorithms
Lecture 7 data structures and algorithmsLecture 7 data structures and algorithms
Lecture 7 data structures and algorithmsAakash deep Singhal
 
Lecture 6 data structures and algorithms
Lecture 6 data structures and algorithmsLecture 6 data structures and algorithms
Lecture 6 data structures and algorithmsAakash deep Singhal
 
Lecture 5 data structures and algorithms
Lecture 5 data structures and algorithmsLecture 5 data structures and algorithms
Lecture 5 data structures and algorithmsAakash deep Singhal
 
Lecture 4 data structures and algorithms
Lecture 4 data structures and algorithmsLecture 4 data structures and algorithms
Lecture 4 data structures and algorithmsAakash deep Singhal
 
Lecture 3 data structures and algorithms
Lecture 3 data structures and algorithmsLecture 3 data structures and algorithms
Lecture 3 data structures and algorithmsAakash deep Singhal
 
Lecture 2 data structures and algorithms
Lecture 2 data structures and algorithmsLecture 2 data structures and algorithms
Lecture 2 data structures and algorithmsAakash deep Singhal
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsAakash deep Singhal
 
Lecture 16 data structures and algorithms
Lecture 16 data structures and algorithmsLecture 16 data structures and algorithms
Lecture 16 data structures and algorithmsAakash deep Singhal
 

Plus de Aakash deep Singhal (16)

Subsidence in coal mines
Subsidence in coal minesSubsidence in coal mines
Subsidence in coal mines
 
Lecture 15 data structures and algorithms
Lecture 15 data structures and algorithmsLecture 15 data structures and algorithms
Lecture 15 data structures and algorithms
 
Lecture 14 data structures and algorithms
Lecture 14 data structures and algorithmsLecture 14 data structures and algorithms
Lecture 14 data structures and algorithms
 
Lecture 13 data structures and algorithms
Lecture 13 data structures and algorithmsLecture 13 data structures and algorithms
Lecture 13 data structures and algorithms
 
Lecture 12 data structures and algorithms
Lecture 12 data structures and algorithmsLecture 12 data structures and algorithms
Lecture 12 data structures and algorithms
 
Lecture 11 data structures and algorithms
Lecture 11 data structures and algorithmsLecture 11 data structures and algorithms
Lecture 11 data structures and algorithms
 
Lecture 9 data structures and algorithms
Lecture 9 data structures and algorithmsLecture 9 data structures and algorithms
Lecture 9 data structures and algorithms
 
Lecture 8 data structures and algorithms
Lecture 8 data structures and algorithmsLecture 8 data structures and algorithms
Lecture 8 data structures and algorithms
 
Lecture 7 data structures and algorithms
Lecture 7 data structures and algorithmsLecture 7 data structures and algorithms
Lecture 7 data structures and algorithms
 
Lecture 6 data structures and algorithms
Lecture 6 data structures and algorithmsLecture 6 data structures and algorithms
Lecture 6 data structures and algorithms
 
Lecture 5 data structures and algorithms
Lecture 5 data structures and algorithmsLecture 5 data structures and algorithms
Lecture 5 data structures and algorithms
 
Lecture 4 data structures and algorithms
Lecture 4 data structures and algorithmsLecture 4 data structures and algorithms
Lecture 4 data structures and algorithms
 
Lecture 3 data structures and algorithms
Lecture 3 data structures and algorithmsLecture 3 data structures and algorithms
Lecture 3 data structures and algorithms
 
Lecture 2 data structures and algorithms
Lecture 2 data structures and algorithmsLecture 2 data structures and algorithms
Lecture 2 data structures and algorithms
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
Lecture 16 data structures and algorithms
Lecture 16 data structures and algorithmsLecture 16 data structures and algorithms
Lecture 16 data structures and algorithms
 

Dernier

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 

Dernier (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 

Lecture 10 data structures and algorithms