db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Carl Rosenberger's web log

Broken searches, FUD or truth?

Josh Bloch writes: "Nearly All Binary Searches and Mergesorts are Broken".

...oooops, now how did we do this lately ?

com.db4o.inside.BTree.Searcher#incomplete(){
   ...
   _cursor = _lower + ((_upper - _lower) / 2);
   ...
}

...phew, test passed.

Published Tuesday, June 06, 2006 9:09 AM by Carl Rosenberger
Filed under:


Comments

 

Rodrigo B. de Oliveira said:

Niiiice :)
June 7, 2006 4:30 PM
Anonymous comments are disabled