Please find the page numbers Thank you
Given a set of 10 records with priorities S = {10, 15, 3, 8, 20, 5,...
(a) (8 points) Given a set S of records with keys {17, 12, 7,5,6,8, 13, 1, 21, 10, 15, 19}, construct a min pairing heap for S by inserting the elements in S, in the given order, into an initially empty heap. (b) (7 points) For the min pairing heap in (a), (i.e., the one that resulted from your construction), perform deleteMin once. Merge the resulting subtrees together using the two-pass method.
Binary Search Trees (a) 5 pointsl Insert 5, 12, 7, 1, 6, 3, 13, 2, 10, 11 into an empty binary search tree in the given order. Show the resulting BST after every insertion. (b) 5 points) What are the preorder, inorder, and postorder traversals of the BST you have after (a)? (c) 5 points Delete 2, 7, 5, 6, 11 from the BST you have after (a) in the given order Show the resulting BST after every deletion.
Will give thumb up for the correct answer. (20 points) Construct both the AVL and 2-3 trees by inserting the elements 7, 2, 4, 9, 5, 1 into empty trees. Show the trees after every insertion. You also need to provide the balance factor for the nodes of the AVL tree.
• P1 (10 pts) Show the result of inserting 2, 9, 5, 8, 6, 4, 3, 1 into an initially empty AVL tree (draw a resulting tree after inserting each number; you need to draw 8 AVL trees). • P2 (5 pts) What is the minimum number of nodes in an AVL tree of height 8? • P3 (5 pts) Show the result of deleting the element with key 9' from the following splay tree. • P4 (5 pts) Show...
show your tree clearly Given four sets with priorities S1{10, 15, 3, 8, 20, 5, 17, 15, 19, 12, 7, 113, s,-{18, 2, 16, 5, 9, 7, 12, 8, 16, 9), s,-(10, 15, 3, 8, 20, 5), and S4 (16, 15, 9, 17, 12, 2, 6}
Multi-Level Indexing. Construct a B+-tree for a data file that contains 10 records with the following key values, respectively: 23, 26,43,77,4,92 The index fan-out p 3, that is, each internal tree node of the B+-tree contains at most p-1 = 2 keys and p = 3 pointers; the underlying data file has a blocking factor pI-2, that is, each leaf of the B+-tree contains at most pI-2 data records. Assume that the tree is initially empty and records are added...
Trees and Heaps 1. Show that the maximum number of nodes in a binary tree of height h is 2h+1 − 1. 2. A full node is a node with two children. Prove that the number of full nodes plus one is equal to the number of leaves in a nonempty binary tree. 3. What is the minimum number of nodes in an AVL tree of height 15? 4. Show the result of inserting 14, 12, 18, 20, 27, 16,...
write the c++ code. The records are insSerted Hl 6. A B tree: You are given a series of records whose keys are letters. the following order: C,S,D,T.A,M,PI,B,W,N,G,U,R,K,E,H. Show the B+ tree of order 4 that results from inserting these records. Assume that the leaf nodes are capable of storing up to 3 records. The records are insSerted Hl 6. A B tree: You are given a series of records whose keys are letters. the following order: C,S,D,T.A,M,PI,B,W,N,G,U,R,K,E,H. Show the...
R-11.22 Consider the sequence of keys (5, 16, 22,45,2, 10, 18,30,50, 12,1. Draw the result of inserting entries with these keys (in the given order) into a. An initially empty (2,4) tree. b. An initially empty red-black tree R-11.22 Consider the sequence of keys (5, 16, 22,45,2, 10, 18,30,50, 12,1. Draw the result of inserting entries with these keys (in the given order) into a. An initially empty (2,4) tree. b. An initially empty red-black tree
Here we study B-tree insertion and deletion. (10 pts) Consider the B-tree with minimum branching factor of t = 3 which is displayed below: Here we study B-tree insertion and deletion (a) (10 pts) Consider the B-tree with minimum branching factor of t-3 which is displayed below DGKNYV AC EF HI LM OPRST WX Show the B-tree that results when J and then Q are inserted. You are expected to give (and clearly label) the B-tree obtained after inserting J,...