wojtask / CormenImpl

Implementations of algorithms and data structures from Introduction to Algorithms. (DEPRECATED)
0 stars 0 forks source link

Consider restructuring the codebase #12

Open wojtask opened 7 years ago

wojtask commented 7 years ago

The current codebase structure has many flaws, e.g., Chapter10 class has 1300 lines, and Chapter13 has 1100 lines. This is due to the fact that many implementations differ in small details and trying to be as close as possible to pseudocodes generates large amount of code in a single class that could otherwise be written more efficiently. Of course, being close to pseudocodes and not necessarily a state of the art clean coded Java library is one of the goals of this project. However, it is hard to extend it and it is increasingly hard to read. One of the solutions is to try to restructure the code into, say, package per exercise and maintain local classes and methods needed only for this exercise.