A Presentation On: Linear Queue & Binary Search Tree
A Presentation On: Linear Queue & Binary Search Tree
Linear Queue
& Binary Search Tree
Linear Queue Implementation Queue can be implemented in two different ways:
1. Contiguous linear queue: the queue is implemented as an array.
2. Linked linear queue: pointers and dynamic memory allocation is used to implement the queue.
The left subtree of a node contains only nodes with keys lesser than the node’s
key.
The right subtree of a node contains only nodes with keys greater than the node’s
key.
The left and right subtree each must also be a binary search tree. Thus, BST
divides all its sub-trees into two segments; the left subtree and the right subtree
and can be defined as : left_subtree (keys) ≤ node (key) ≤ right_subtree (keys)
Binary Search Tree
Insert
Insertion
Deletion
Deletion
Searching
Searching
Future enhancement
Shortcuts can be used for menu.
Modifying the program large number of
data can also be easily handled.
Visual representation can also be
improved .
ANY QUERRIES?
THANK YOU !!