An algorithm is logic which determines how websites make a decision and what factors to weigh in that decision. Algorithms are often the "secret sauce" and are highly guarded. For example, Google has an algorithm for search results. It often signals to a website what factors (content frequency, for example) it prioritizes, but they rarely tell you all the factors and their exact importance.