Software Engineering discussion
Code Complete
>
Table-Driven Methods
date
newest »
newest »
message 1:
by
[deleted user]
(new)
Apr 16, 2011 05:22PM
Table-driven techniques can be so powerful because of greater clarity and easier maintenance, along with providing an opportunity for runtime and post-deployment change. I am surprised, though, that this chapter leaves out hash tables (except for one sentence that briefly mentions Java HashMap), yet covers most other basic table types. Surprisingly, I searched the book and found no mention of this fundamental data structure!
reply
|
flag
Sometimes the best solution to the problem is a combination of both object-oriented and table-driven approaches. Also, recently I read an article written by Andrew Koenig (his Accelerated C++ book is highly recommended for the beginners by C++ object-oriented community) about misusing arrays. Some of that information can be applied to misusing tables…http://drdobbs.com/blogs/cpp/229401975
… and further..
http://drdobbs.com/blogs/cpp/229402321
I guess before considering using table-driven approach and writing search algorithms the better idea is considering using standard or well tested algorithms and utilities.
Also I was surprised by not seeing a reference to Big O notation in discussion of searching algorithms :) jk

