answersLogoWhite

0

What else can I help you with?

Related Questions

Definition of threaded binary tree?

A binary tree variant that allows fast traversal: given a pointer to a node in a threaded tree, it is possible to cheaply find its in-order successor (and/or predecessor).


Inorder traversal program in c plus plus?

In-order traversal relates to non-empty binary trees which can be traversed in one of three ways: pre-order, in-order and post-order. The current node is always regarded as being the root of the traversal, and all operations occur recursively upon that root. Pre-order: 1. Visit the root. 2. Traverse the left sub-tree. 3. Traverse the right sub-tree. In-order: 1. Traverse the left sub-tree. 2. Visit the root. 3. Traverse the right sub-tree. Post-order: 1. Traverse the left sub-tree. 2. Traverse the right sub-tree. 3. Visit the root.


What are the types of link list you have?

Single, double, circular, circular double. Each of these can also be threaded, making it easier to traverse the list in order, but a tree is more appropriate for that type of structure.


What is preorder in tree in c?

There is no such thing. You can traverse a binary tree in pre-order though: first the root, then the left sub-tree, finally the right sub-tree.


Why you represent the general trees as binary trees?

General trees are not binary trees. It is the other way around, however, see the last paragraph for a different answer - explanation first... A binary tree is one with two possible child nodes, a left node and a right node, either of which might be not present. This particular representation implies a certain order between the node and its children, and if you walk the tree from bottom left to bottom right, you will traverse the nodes in order. A general tree is one with any number of possible child nodes, including no child nodes, so a binary tree is an example of a general tree, while a general tree is a generalization of a binary tree. However, in the general tree, the meaning of the child nodes might not have any specific ordering, like those in a binary tree, unless the general tree has other information contained in the node about order, because the concept of left and right has no implied meaning when there are more than two children. But, as promised, if the general tree has order, it is always possible to represent the general tree as a binary tree - there will just be more nodes, but they will only contain zero, one, or two children, and they will have an implied order.


Algorithm to determine if a binary tree is complete binary?

There are many ways of checking for a complete binary tree. Here is one method:1. Do a level order traversal of the tree and store the data in an array2. If you encounter a nullnode, store a special flag value.3. Keep track of the last non-null node data stored in the array - lastvalue4. Now after the level order traversal, traverse this array up to the index lastvalue and check whether the flag value is encountered. If yes, then it is not a complete binary tree, otherwise it is a complete binary tree.


What order does this go in bonjour et rue Marie la traverse dit policiere?

The correct order is "Bonjour, la policière dit et Marie traverse la rue."


What is a binary opposite of Order?

chaos


Items that are not suitable for a binary search?

The only items suitable for a binary search are those which are in a sorted order.


What assumption about the list is made when binary search is conducted?

Binary search requires that the list be in search key order.


Methods for storing binary trees?

Nodes, references and arrays are the methods for storing binary trees. It can also be stored in breath first order.


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.