what’s the difference between Algorithm and Framework?

221 views

what’s the difference between Algorithm and Framework?

In: 5

4 Answers

Anonymous 0 Comments

[removed]

Anonymous 0 Comments

An algorithm is a repeatable process. Say you want to rank words in order, an algorithm may check the letters used to make the word, and order them based on first letter, then the second letter, third, etc. This might be configurable or the default, but the assumption is every time you want to order words it will be in the exact same way.

Frameworks are more a structural thing. How, say, objects work together. If my framework for a web page are the page, then the sections within it, then the words below that, images, videos, etc, then that shows how you will programmatically interact with it starting at the document level, the various sections, etc.

Anonymous 0 Comments

An algorithm is a set of rules or logical steps that are to be followed to solve a particular problem or type of problem. A framework, on the other hand, is a set of ideas that we use to guide our thinking and discourse about the world.

By way of example:

PEMDAS and FOIL are algorithms. Left vs. Right is a framework.

Anonymous 0 Comments

an algorithm is a set of strict mathematical steps to solve a specific well defined problem.

a framework is a set of components that you add to and make use of to build out your application.

edit: if you’re talking in terms of computer programming, which it seems like you might be.