0

hi there can any one help me to answer this problem .

problem >
Imagine you are given a set of input elements where each element is assotiated with a specific access Probability by which each element is likely to be accessed ; e.g;

Elements :{A,B,D,K,L,M,N}
pi=<0.1,0.15,0.25,0.05,0.2,0.1,0.15> for all 1<=i<=n


How would you benefit from such information so that you minimize the search time ?

Edited by Nick Evan: removed bold-tags

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by gusano79
0

How would you benefit from such information so that you minimize the search time?

I'm trying to think of a way to point you in the right direction without just giving you an answer... what have you come up with so far?

0

That sounds like a good idea to me.

One thing to keep in mind is what search algorithm is being used. Sorting by access probability should work fine if it's "start at the beginning of the array and run through it until you find what you're looking for." You might have to adjust for different search algorithms--in general, you've got the right idea: put high-probability elements in places where the search looks first.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.