vendredi 20 mars 2015

Find value which fits into range [on hold]


I have a five million data range which contains uint values. I need to find a number that fits inside of a specific range. The ranges do not overlap.


I am searching for an algorithm that is able to quickly search this range of values for numbers that fall in between the range.


Edit: I have a csv file but it doenst matter that media is needed to make it work.



from,to,id
16860928,16861695,12
16861696,16861951,18


I have like this like 5,5M data and for e.g. I need to find id of number "16861721" which fits one of these ranges and id for that range. It doesnt matter I could store everything on memory for speed





Aucun commentaire:

Enregistrer un commentaire