answersLogoWhite

0


Best Answer

I can only think of one at the moment: It's a slow way of finding data. Let's say you have an employee tree, the CEO (Parent root) at the top, two children (Both managers), and each child has a further three children (Employees). If you had to find a certain employee, some trees force you to follow a certain path in order to locate them, some are more efficient that others, whilst some may take a long time.

User Avatar

Wiki User

βˆ™ 9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 8y ago

interactive python. org/rune stone/static/pyth onds/Trees/TreeTraversals . html (take the spaces out and enter into your web address)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write any five problem for tree traversal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the time complexity of tree traversal?

The time complexity of tree traversal is O(n), where n is the number of nodes in the tree.


What is traverse technique used in chain survey?

1. pre-order b-tree traversal. 2. in-order b-tree traversal. 3. post-order b-tree traversal


What is the time complexity of binary tree traversal?

The time complexity of binary tree traversal is O(n), where n is the number of nodes in the tree.


What is the time complexity of inorder traversal in a binary tree?

The time complexity of inorder traversal in a binary tree is O(n), where n is the number of nodes in the tree.


Why recursive solution is better for tree traversal?

Because a tree is a recursive data-structure. It's easier to write (and easier to understand) a recursive program for handling it.


Which of the following traversal is used for printing the keys of binary search tree in ascending order?

In order traversal is used.


What is the time complexity of tree traversal algorithms?

The time complexity of tree traversal algorithms is typically O(n), where n is the number of nodes in the tree. This means that the time taken to traverse a tree is directly proportional to the number of nodes in the tree.


How do you write tree and five thousandths as a decimal?

tree? oh its tree


What is the purpose of performing a binary search tree inorder traversal?

Performing a binary search tree inorder traversal helps to visit all nodes in the tree in ascending order, making it easier to search for specific values or perform operations like sorting and printing the elements in a sorted order.


How does n-ary tree traversal work and what are the different strategies for traversing an n-ary tree efficiently?

N-ary tree traversal involves visiting each node in an n-ary tree in a specific order. The different strategies for efficiently traversing an n-ary tree include: Preorder traversal: Visit the current node first, then recursively visit each child node in order. Postorder traversal: Recursively visit each child node first, then visit the current node. Level order traversal: Visit nodes level by level, starting from the root and moving down each level before moving to the next level. These strategies help efficiently navigate through the nodes of an n-ary tree while ensuring that each node is visited exactly once.


What is the process for conducting a reverse in-order traversal of a binary tree?

To conduct a reverse in-order traversal of a binary tree, start at the right child, then visit the root node, and finally visit the left child. Repeat this process recursively for each node in the tree until all nodes have been visited.


Is sorting a binary search tree simple?

A binary search tree is already ordered. An in order traversal will give you a sorted list of nodes.