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.
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.
Latest Answers