Question

Quiz 2i CISC220 NAME 2ICHEN UD ID 1022 83 1. In a B-tree with M 5, L7 1. What is the maximum number of children nodes and keys at each internal node? 2. Minimum number of data items at a leaf node? 2. With a block size of 100, data size of 10, pointer size of 4, and key size of s, what is the maximal values for N L? 3. Briefly describe the difference between Stack and Queue data structures.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

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.

  

Add a comment
Know the answer?
Add Answer to:
Quiz 2i CISC220 NAME 2ICHEN UD ID 1022 83 1. In a B-tree with M 5,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The first and second picture are the definition of 2-3 tree,3rd and 4th are the pre-condition...

    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...

    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...

    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...

  • Can you please help with the below? 1)   Which of the following is true about using...

    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.  ...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT