[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bsearch utility

From: Bob Proulx
Subject: Re: bsearch utility
Date: Thu, 14 Jul 2005 11:33:41 -0600
User-agent: Mutt/1.5.9i

Sorav Bansal wrote:
> I often use the 'sort' program often for sorting text files. Recently, I 
> had to write a binary search utility that can search for a key in a file 
> sorted using the 'sort' program. 

The only issue I have with 'bsearch' is that by name it implies that
it can only ever do a binary search.  If at some point in the future
someone produces a different search algorithm for it then the name
rather restricts it.  That may be okay though.  Because it is nice to
have a name which makes it obvious what it is doing.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]