in reply to Very slow array searching
A good rule of thumb is that your needs drive the data structure. In all but the most pathologically simple tasks, there is more than one data structure that can be used. Just because you chose array first doesn't mean that array should be used now, especially if the program has changed to meet changing requirements.
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|