Recent questions tagged tree

1 1 vote
1 1 answer
2.8k
2.8k views
For which of the following scenarios does there exist a simple graph G = (V, E) satisfying the specified conditions? (A) It has 3 components 20 vertices and 16 edges. (B)...
0 0 votes
1 answers 1 answer
2.1k
2.1k views
Consider following statements: (i) Every simple graph has at least two vertices of the same degree. (ii) If u is a vertex of odd degree in a graph, then there exists a pa...
0 0 votes
0 0 answers
824
824 views
Consider following statements about tripartite graph, i.e. TPG, which contains three subsets of vertices of graph as A,B and C: (i) Minimum number of edges in a cycle in ...
2 2 votes
1 answers 1 answer
842
842 views
A quinpartite graph is a graph whose vertices can be partitioned into five groups such that no two vertices in same group are connected via some edge. The maximum number ...
0 0 votes
0 0 answers
1.0k
1.0k views
1 1 vote
1 1 answer
4.7k
4.7k views
Consider following statements: S1: Rotation operation in AVL always preserves the Inorder ordering.S2: The median of all elements in AVL tree is always at root or one of ...
0 0 votes
1 1 answer
1.3k
1.3k views
1. How many Binary trees can be made with:(a) 3 unlabelled nodes?(b) 3 labelled nodes?2. How many Binary Search trees can be made with:(a) 3 unlabelled nodes?(b) 3 labell...
1 1 vote
1 1 answer
1.2k
1.2k views
which is an efficient tree structure in terms of space and time complexity?a) AVL Treeb)Full Binary treec)Complete binary treed)Binary tree
1 1 vote
3 answers 3 answers
3.5k
3.5k views
The number of binary search trees possible with 12 keys, when keys 1, 2, 3, 4, ........ 12 are inserted into empty Binary Search Tree with condition such that 4 is the r...
3 3 votes
1 answers 1 answer
3.6k
3.6k views
Let T be a binary search tree with n nodes and Sn be the average number of comparisons required for successful search and Un be the average number of comparison required ...
0 0 votes
2 2 answers
10.7k
10.7k views
A 5-ary tree in which every internal node has exactly 5 children. The number of left nodes in such a tree with 8 internal nodes will be:303345125
1 1 vote
2 2 answers
3.3k
3.3k views
how the b and b+ tree formulae computed can u explain with the proof
0 0 votes
1 1 answer
1.1k
1.1k views
Is the root node an internal node?
0 0 votes
0 0 answers
354
354 views
how does linux kernel uses the red black tree property ???elabourate
1 1 vote
2 answers 2 answers
1.8k
1.8k views
Minimum number of internal nodes in an AVL tree with height 5?Please give a standard procedure that can be applied to larger heights as well. I know the formula: S(h) = S...
1 1 vote
1 1 answer
1.6k
1.6k views
a:) If given Tree is BST = Inorder of keys is sortedb:) Inorder of keys is sorted = Tree is BST(converse of above)I know first one holds.Is second one also true?If not ca...
0 0 votes
0 0 answers
2.0k
2.0k views
How many total Homeomorphically Irreducible Trees are possible with 'n' nodes ?
0 0 votes
2 2 answers
627
627 views
given an array which contains the preorder traversal of full $k-ary$ tree. Give an algorithm for constructing the full $k-ary$ tree
4 4 votes
3 3 answers
18.1k
18.1k views
In delete operation of BST, we need inorder successor (or predecessor) of a node when the node to be deleted has both left and right child as non-empty. Which of the foll...
0 0 votes
2 2 answers
807
807 views
If the post order traversal of treegives $ab - cd * +$, then the label of the nodes A, B, C, ......, G will bea, -, b, +, c, *, d+, -, *, a, b, c, d-, a, +, b, c, d, *a, ...
2 2 votes
3 3 answers
2.9k
2.9k views
Suppose we have an AVL tree of n nodes and any change in the tree violates the AVL tree property then :-S1: If we insert an element in the tree, maximum 2 Rotations are r...
3 3 votes
0 0 answers
2.2k
2.2k views
Consider a binary tree T that has 150 leaf nodes. Then the number of TOTAL nodes in T that have exactly two children are ______.
3 3 votes
2 2 answers
4.4k
4.4k views
Which one of the following property is correct for a red-black tree?Every simple path from anode to a descendant leaf contains the same number of black nodes.If a node is...
0 0 votes
1 1 answer
2.1k
2.1k views
Does values in Leaf nodes of B+ tree repeats or ever leaf node has an unique value?
0 0 votes
0 0 answers
1.2k
1.2k views
True / False:-1. : The difference between the number of nodes in a binary tree that have exactly two children and the number of leaf nodes is 12. Deletion of root of AVL...
1 1 vote
1 1 answer
1.5k
1.5k views
$\text{Insertion Sequence}$ : $8,5,1,7,3,12,9,6$Can someone plz show the Sequence of insertion in B+ tree step by step Thanks
1 1 vote
2 answers 2 answers
2.9k
2.9k views
assume the preorder tŕaversal of binary tree is "abc" how many total different binary trees are possible whose postorder traversal.is "cba" with the given preorder traver...
1 1 vote
1 1 answer
1.1k
1.1k views
Assume a system has following parameters to construct a B+ tree. The specification of the tree are:• Size of search key is 15 B• Size of block is 512 B• Size of record po...
0 0 votes
0 0 answers
501
501 views