Dsaaa
Dsaaa
Dijkstra ALGORITHM:
IF (d(u)+c(u,v)<d(u)) v=infinity
d(v)=d(v)+c(u,v)…………second time wala
formula
• BSTs are efficient for search, insertion, and deletion operations, especially
when the tree is balanced.
• To ensure efficient operations, it's often recommended to balance the BST
using techniques like AVL trees or Red-Black trees.