VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

World's Fastest Binary Search

Chris_Lucas  (5 Submissions)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This ain't your daddy's binary search tool! Mine goes about 30% faster than his. Why people insist on using the same tired and slow function I'll never know, but it suffers from two glaring weaknesses. First and foremost: < and > are about the slowest way to compare strings! Second: The tired old function assumes that you will find a match more often than not which is slow! My function doesn't suffer from either of these two "features".

Rate World's Fastest Binary Search (5(5 Vote))
World's Fastest Binary Search.bas

World's Fastest Binary Search Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters