Skip to main content
9 of 20
added 60 characters in body
Ahmad
  • 1.9k
  • 3
  • 21
  • 36

Relation between object orientation and algorithms

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?
  • Is it beneficial to implement any algorithm with OOP?

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 can 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.

Ahmad
  • 1.9k
  • 3
  • 21
  • 36