I am preparing for an exam, and this is a question that appears in the textbook:
For a B-tree with the following system parameters:
a. Block size is 4096 bytes
b. Key size is 4 bytes
c. Record size is 128 bytes
d. Pointers for internal branches are 2 bytes
What is L, the maximum number of records each leaf can hold? What is M, the maximum
number of branches in an internal node? If N = 10,000,000 in the worst-case what is the
maximum number of leaf nodes and what is the estimated maximum height of the tree?
I can't figure out what L is. But for M, I did (M-1)4 + 2M >= 4096, for M=684. Is this correct ? And how do I go about estimating maximum height/# of leaves when N= 10,000000
General Discussion
- Caffeine Lounge
- Corner Cubicle
- Student Campus
- Software Development
- Industry News
- Introduce Yourself
- Nightmare.In.Code
Programming Help
- C and C++
- VB.NET
- Java
- C#
- Python
- PHP
- Mobile Development
- ASP.NET
- .NET Framework
- Ruby
- Game Development
- Assembly
- Databases
- ColdFusion
- VB6
- Other Languages
- 52 Weeks Of Code
Web Development
- Web Development
- HTML & CSS
- JavaScript
- Graphic Design
- Flash & ActionScript
- Blogging
- SEO & Advertising
- Web Servers & Hosting
- Site Check
Follow & Share
Tutorials
Programming
- C++ Tutorials
- Java Tutorials
- VisualBasic Tutorials
- VB.NET Tutorials
- C# Tutorials
- PHP Tutorials
- ColdFusion Tutorials
- Database Tutorials
Web Development
Reference Sheets
Code Snippets
- C Snippets
- C++ Snippets
- Java Snippets
- Visual Basic Snippets
- C# Snippets
- VB.NET Snippets
- ASP.NET Snippets
- PHP Snippets
- Python Snippets
- Ruby Snippets
- ColdFusion Snippets
- SQL Snippets
- Assembly Snippets
- Functional Programming Snippets
- Perl Snippets
- HTML/CSS Snippets
- Javascript Snippets
- Flash/ActionScript Snippets
- ASP Snippets
- Linux, Unix, and Bash Snippets
- Other Languages Snippets
- Regex

New Topic/Question
Reply


MultiQuote
|