Skip to main content
1 of 20
Ahmad
  • 1.9k
  • 3
  • 21
  • 36

Relation between object oriantation 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?
  • How OOP can help algorithms? Or in which direction it can affect it?
  • Are there some problems which only can be presented and solved by OOP?
  • Why algorithms textbook are more procedure-oriented?
Ahmad
  • 1.9k
  • 3
  • 21
  • 36