PROGRAMMING, DATA STRUCTURES AND ALGORITHMS IN …
NPTEL MOOC
PROGRAMMING, DATA STRUCTURES AND ALGORITHMS IN PYTHON
Week 7, Lecture 4
Madhavan Mukund, Chennai Mathematical Institute
Dynamic sorted data
Sorting is useful for efficient searching
What if the data is changing dynamically?
Items are periodically inserted and deleted
Insert/delete in sorted list take time O(n)
Like priority queues, move to a tree structure
Binary search tree
For each node with value v
Values in left subtree < v
Values in right subtree > v
No duplicate values
5
2
8
1
4
9
Binary search tree
For each node with value v
Values in left subtree < v
Values in right subtree > v
No duplicate values
5
2
8
1
4
9
Binary search tree
For each node with value v
Values in left subtree < v
Values in right subtree > v
No duplicate values
5
2
8
1
4
9
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- data storage in python github pages
- file handling in python
- csc148 intro to computer science
- data files in python
- programming data structures and algorithms in
- python data file hanling
- the art of data structures stacks
- cs5001 cs5003 intensive foundations of computer science
- propositional logic syntax mathematical logic through python
- operators and expressions
Related searches
- american structures and design
- brain structures and their functions
- brain structures and functions worksheet
- subcortical structures and their functions
- us government structures and institutions
- academic essay structures and format
- structures and functions of the brain
- cerebral structures and function
- market structures and their characteristics
- body structures and functions answers
- supply chain structures and relationships
- circulatory system structures and functions