answer1) 1) given m= 5 and L =7 , maximum number children node as internal node is given by 2L-1 therfore maximum number of children nodes at each internal node is 2*7 -1 = 13
2)minimum number data at aleaf node is L-1 = 6
answer 2) note: since half of the question is not visible ..i am not able to solve it..please comment the full question in the comments section i will provide the answer for it too
answer 3) difference between stack and queue
=> stack is datastructure in which objects are accessed in LIFO order, that is last in first out principle , whereas queue follow FIFO( first in first out principle)
=>in stack the object is pushed onto the top of the collection where as in queue it is inserted at the end
=> stack has 1 point of access that is " top" whereas queue has two poinnt of access that is front and rear end
=>in stack objects are inserted and removed at same end , while in queue insertoion takes place in one end and deletion take places in another end
=> stack operation are called push and pop whereas queue operation is called enqueue and dequeue
=>collection of plates in an ceremony is an example stack , whereas booking a railway ticket in railways station is an example of queue
thankyou,
cheer.
Quiz 2i CISC220 NAME 2ICHEN UD ID 1022 83 1. In a B-tree with M 5,...
The first and second picture are the definition of 2-3
tree,3rd and 4th are the pre-condition and post-condition. Please
use these question to solve problem 8,the last photo.
2-3 Trees: Definition Suppose that E is an ordered type, that is, a nonempty set of values that have a total order. A 2-3-tree, for type E, is a finite rooted tree T (like a binary search tree or a red-black tree) that satisfies the following 2-3 Tree Properties: (a) Every leaf...
Are my answers correct?
Question 1 (Mandatory) (1 point) Saved Modern software systems are blurring the distinction between local files and web pages, which may be stored on a remote computer, so the amount of data that we might wish to search is virtually unlimited. Remarkably, the methods that we shall study can support search and insert operations on symbol tables containing trillions of items or more using only four or five references to small blocks of data. 1) True...
1) Extend the Binary Search Tree ADT to include
a public method leafCount that returns the number of leaf nodes in
the tree.
2) Extend the Binary Search Tree ADT to include a
public method singleParent-Count that returns the number of nodes
in the tree that have only one child.
3) The Binary search tree ADT is extended to
include a boolean method similarTrees that receives references to
two binary trees and determines whether the shapes of the trees are...
Writing traversal methods You will create two files in the csc403 package: one called A3SimplerBST.java and the other TestA3.java. Details on these programs appears below. Copy the file SimplerBST.java from the week 1 examples package and rename the file and class A3SimplerBST. Add two public methods: one named twoChildrenCount that takes no parameters and that, when called, traverses every node of the tree to count how many nodes have two children. one named sameValueCount that takes a paremeter of generic...
Can you please help with the below? 1) Which of the following is true about using a 2-3-4 tree? a. It is designed to minimize node visits while keeping to an O(log n) search performance b. It is designed to self-balance as new values are inserted into the tree c. As soon as a node becomes full, it performs the split routine d. None of the above 2) Which of the following is true about a binary search tree? a. ...