Quick Search of a Binary File
Here is a situation. I hav an collection of employee records which may scale up to thousands in a binary file. I would like to implement a search alogorithm that would search an employee quickly, with multiple criteria , say, EmpID, EmpName,EmpJoinDate, salary....
Also I would like to know how indexing can be applied to the fields mentioned above ...???
Can somebody suggest an algorithm that would do the same...??
plz help me .....
thanx in advance...:-)
Re: Quick Search of a Binary File
I'ld stick them into SQL server
Re: Quick Search of a Binary File
If you're really set on reinventing the wheel, and I can't imagine why you would be, I'd suggest you get a book on database internals and get started. There are plenty or very inexpensive solutions out there that work and are debugged. This really is a bad idea.
I really don't mean this to be rude but the fact that you're considering it and asking here how to do it, indicates you probably aren't really up to the task.