Worst case of searching in a b-tree


Q1. Consider five items all along with their respective weights and values:

I = 1, I2, I3, I4, I5>

w = <5, 10, 20, 30, 40>

v = <30, 20, 100, 90, 160>

The capacity of knapsack W = 60. Determine the solution to the fractional knapsack problem.

Q2. Write down an algorithm to search a key in a B-tree. Illustrate the worst case of searching in a B-tree? List all the possible conditions which can take place while inserting a key in a B-tree?

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Worst case of searching in a b-tree
Reference No:- TGS010383

Expected delivery within 24 Hours