As I read some algorithms textbooks, they are full of clever procedures for some problems (sorting, shortest path) or some general methods (recursive algorithms, divide and conquer, dynamic programming...). I found few traces of object oriented programming there; if none.
Then I was thinking:
- What is the relation between algorithms and OOP? Are they two independent topics?
- Are there some problems which can only be presented and solved by OOP?
- How OOP can help algorithms? Or in which direction it can affect it?
I have read some questions may sound similar; but I am not trying to know which is more important or on which I should invest more. If I just realize their distinction I could direct my efforts to the side which I am more interested in or need more. The answer to the first and second question could be just a YES or NO, so I get sure they are disparate things or not.
However, I like to someway link them to each other; I have studied some object oriented books and some algorithms books, if I know where they meet each other, I can better link and use my knowledge on both of them.