answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: A level order traversal in a binary tree requires which data structure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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 is high level to binary language and binary to high level?

High-level to binary is known as compilation or interpretation, depending on whether the entire program is converted at once (compilation) or only one statement at a time is converted (interpretation). There is no conversion from binary to high level -- it's one-way only.


What is incomplete binary tree?

Incomplete Binary Tree is a type of binary tree where we do not apply the following formula: 1. The Maximum number of nodes in a level is 2


Find the level of a node in binary tree?

level of a node in any binary tree can be calculated by summing up the number of nodes traversed from the root node of the tree to the node whose level has to be calculated!!!! dats it!! if count is the no. of elements passed, then floor(log2(count-1)) is the level


What is the maximum number of nodes on a given level of a binary tree?

Level N of a binary tree has, at most, 2^N nodes. Note that the root node is regarded as being level 0. If we regard it as being level 1, then level N would have 2^(N-1) nodes at most.

Related questions

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.


How do you solve a binary operation?

(11110011)base 2 solve dis binary number... Answer to this question requires an understanding of binary function, truth table and gate level minimization approach. [1] A binary function is an expression consisting for binary variables, binary operators and constants (1 or 0). [1] http://fullchipdesign.com/bfttg.htm Example of binary function minimization approach can be referred from Internet resources.


Depth and Height of Binary tree?

height(node):if node == null:return 0else:max(height(node.L), height(node.R)) + 1/*Function to print level order traversal of tree*/getMaxWidth(tree)maxWdth = 0for i = 1 to height(tree)width = getWidth(tree, i);if(width > maxWdth)maxWdth = widthreturn width/*Function to get width of a given level */getWidth(tree, level)if tree is NULL then return 0;if level is 1, then return 1;else if level greater than 1, thenreturn getWidth(tree->left, level-1) +getWidth(tree->right, level-1);


What is high level to binary language and binary to high level?

High-level to binary is known as compilation or interpretation, depending on whether the entire program is converted at once (compilation) or only one statement at a time is converted (interpretation). There is no conversion from binary to high level -- it's one-way only.


What is a difference between binary tree and binary?

I think a binary tree is a thing to help you search whereas binary is 100100101010, that thing that computers use...I think the difference is that a binary tree helps you search but binary is the thing that computers use:10010101001010 The term binary refers to the idea that there are "2" options. In terms of computers at a low level, this refers to 1's and 0's (high voltage and low voltage). A binary tree is a completely different concept. It is a type of data structure with a parent node that branches down into 2 child nodes at each level. If implemented as a binary *search* tree it is pretty efficient at searching data sets that are ordered (O(log n))


Is the computer works only in binary level language?

For most digital computers at the lowest level, they work in binary. Experimental multilevel computers have been built and analogue computers don't work in binary.


What is binary language?

Binary is made up of 0's and 1's. Binary can also be called Machine Code. Binary is the 'language' that the computer understands.


What is difference between full binary tree and balanced binary tree?

A binary tree is considered to be balanced if all of the leaves of the tree are on the same level or at least within one level of each other.A binary tree is considered to be full if all of the leaves of the tree are at the same level and every non leaf node has exactly 2 children.


What is incomplete binary tree?

Incomplete Binary Tree is a type of binary tree where we do not apply the following formula: 1. The Maximum number of nodes in a level is 2


On runescape what animals can you catch with a snare trap?

Birds. Depending on your hunter level: Crimson swift requires level 1 Golden warbler requires level 5 Copper longtail requires level 9 Cerulean twitch requires level 11 Topical wagtail requires level 19 You can find the location of all these birds by using Runescape wiki.


What is Binary Encoder?

A binary encoder is a person who creates a code used to program computers at the most basic level. Claude Shanna developed binary encoding in the 1930s.


Of the four protein structureswhich level is lowest level of a protein structure?

the primary structure is the lowest level