answersLogoWhite

0


Best Answer

45,60,70,13,10,30,22,33,24construct avl tree

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

refer the book datastructure of author pudumbekar technical publication

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Give Example with explanation of avl tree rotation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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.


What is red and black tree?

It is a data structure that keeps a binary tree balanced. If you want basic operations on your tree to take order log n time (where n is the number of nodes in the tree) you need the depth (maximum length of a path from root to a leaf) to be order log n. That is what is meant by a balanced tree. You can also use treaps, which use random numbers to give balance with extremely high probability.


Type of binary tree?

A rooted binary tree is a tree with a root node in which every node has at most two children.A full binary tree (sometimes proper binary treeor 2-tree or strictly binary tree) is a tree in which every node other than the leaves has two children. Sometimes a full tree is ambiguously defined as a perfect tree.A perfect binary tree is a full binary tree in which all leaves are at the same depth or same level, and in which every parent has two children.[1] (This is ambiguously also called a complete binary tree.)A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.[2]An infinite complete binary tree is a tree with a countably infinite number of levels, in which every node has two children, so that there are 2d nodes at level d. The set of all nodes is countably infinite, but the set of all infinite paths from the root is uncountable: it has the cardinality of the continuum. These paths corresponding by an order preserving bijection to the points of the Cantor set, or (through the example of the Stern-Brocot tree) to the set of positive irrational numbers.A balanced binary tree is commonly defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1,[3] although in general it is a binary tree where no leaf is much farther away from the root than any other leaf. (Different balancing schemes allow different definitions of "much farther"[4]). Binary trees that are balanced according to this definition have a predictable depth (how many nodes are traversed from the root to a leaf, root counting as node 0 and subsequent as 1, 2, ..., depth). This depth is equal to the integer part of where is the number of nodes on the balanced tree. Example 1: balanced tree with 1 node, (depth = 0). Example 2: balanced tree with 3 nodes, (depth=1). Example 3: balanced tree with 5 nodes, (depth of tree is 2 nodes).A rooted complete binary tree can be identified with a free magma.A degenerate tree is a tree where for each parent node, there is only one associated child node. This means that in a performance measurement, the tree will behave like a linked list data structure.Note that this terminology often varies in the literature, especially with respect to the meaning of "complete" and "full".


Count the number of nodes of a binary tree having depth n?

Use the following formula: (2^n)-1. E.g., if the depth is 3, the number of nodes is (2^3)-1 = 8-1 = 7. Note that 7 is the maximum number of nodes, not the actual number of nodes. To count the actual nodes you must traverse the tree, updating an accumulator as you go.


Which data structure is used for breadth first seach?

Breadth first search can be performed upon any tree-like structure. A binary tree is a typical example. A breadth first search begins at the root and searches the root's children, then all its grandchildren, and so on, working through one level of the tree at a time.

Related questions

Can you give an example of a simile?

He is as tall as a tree.


Give 1 example of a metaphore?

That guy is a tree.


What is the explanation of hymn to the talisay tree by Jose rizal?

the tree is his favorite tree


When do you perform rotations in a splay tree?

when the specific node searched by many times we place the node become root of the tree by using different Rotations 1)Zig Zig Rotation 2)Zag Zag Rotation 3)Zig Zag Rotation 4)Zag Zig Rotation Seraching is Efficent then AVl Tree


What do you call the full forestry tree growing cycle?

rotation


What explanation does Nathan radley give gem for covering the knot hole?

He said the tree was old and it was dying and that people fill trees with cement when they're sick.


Can you give me an example of a personification poem?

The tree's branches swayed in the wind like a ballet dancer.


Can you give an example of a simple sentence using the word poplar?

A poplar is a beautiful shade tree.


Can you give an example of a verbal model?

three plus four is tree times twenty-four.


Can you give an example of a sentence using conifer?

"This is a conifer" the teacher told the class on their nature trail. The dawn redwood is an example of a conifer tree.


Can you give me one example of a rhyming couplet?

I think that I shall never see A poem lovely as a tree


Can you give me a example of rising and falling?

An example of rising could be a hot air balloon ascending into the sky. An example of falling could be a leaf drifting down from a tree in autumn.