Binary trees are very useful in representing hierarchical data. In this article, we will discuss how to print all the elements in a binary tree using … [Read more...] about Postorder Tree Traversal Algorithm in Python
Data Structures
Preorder Tree Traversal Algorithm in Python
Binary trees are very useful in representing hierarchical data. In this article, we will discuss how to print all the elements in a binary tree in … [Read more...] about Preorder Tree Traversal Algorithm in Python
Shortest Path Length from a Vertex to other Vertices in a Graph
Graphs are used to represent geographical maps, computer networks, etc. In this article, we will discuss how to calculate the shortest distance … [Read more...] about Shortest Path Length from a Vertex to other Vertices in a Graph
Breadth First Traversal in Python
A graph is a non linear data structure. We often use graphs to represent different real world objects like maps and networks. In this article, we will … [Read more...] about Breadth First Traversal in Python
Depth First Traversal in Python
Graphs are non linear data structures used to represent relationships between different objects. In this article, we will discuss depth first … [Read more...] about Depth First Traversal in Python
Graph Operations in Python
A graph is a non linear data structure used to represent connections between different objects. Generally, graphs are used to represent maps, network, … [Read more...] about Graph Operations in Python
Graph in Python
Graphs are one of the most important data structures. Graphs are used to represent telephone networks, maps, social network connections, etc. In this … [Read more...] about Graph in Python
Find the mirror image of a binary tree
Unlike a Python dictionary, a list, or a set, elements of a binary tree are represented in a hierarchical manner. Having hierarchy in a binary tree … [Read more...] about Find the mirror image of a binary tree
Find the Height of a Binary Tree
Just like we find the length of a list or the number of items in a python dictionary, we can find the height of a binary tree. In this article, we … [Read more...] about Find the Height of a Binary Tree
Level Order Tree Traversal in Python
Just like we traverse a python dictionary, a list or tuple to access its elements, We can also traverse binary trees to access their elements. There … [Read more...] about Level Order Tree Traversal in Python