The short answer
There is no single official list of algorithm types. Textbooks and courses group algorithms in different ways, but a common list of seven design approaches is: brute force, divide and conquer, dynamic programming, greedy, backtracking, branch and bound, and randomized. Some lists add simple recursive algorithms as an eighth type. The categories are not strictly separate, so one algorithm can fit more than one of them.
Brute force
A brute force algorithm tries every candidate and keeps the one that works. A linear search through an unsorted list is a simple example: it checks each item in turn until it finds the one it wants. The method is easy to write and tends to be correct, but it can be slow on large inputs, and for some hard problems the number of candidates grows very fast. For more examples, see brute force algorithm examples.
Divide and conquer
Divide and conquer breaks a problem into smaller parts, solves each part, and combines the results. Merge sort splits a list in half, sorts each half, and merges the two sorted halves. Binary search also works this way, discarding half of a sorted list at each step. Quicksort is another divide and conquer method.
Dynamic programming
Dynamic programming applies to problems with overlapping subproblems. It saves the answer to each subproblem so that it is never computed twice. A classic example is computing Fibonacci numbers: storing each value as it is found avoids the repeated work of the plain recursive version. Shortest path methods such as Bellman-Ford are also described this way. To see how this approach differs from divide and conquer in more detail, read divide and conquer algorithm vs dynamic programming.
Greedy
A greedy algorithm makes the locally best choice at each step and does not go back. Dijkstra’s algorithm, Prim’s algorithm and Kruskal’s algorithm are all greedy. For the problems they are designed for, and under their stated conditions, they find optimal answers.
Greedy does not always work. Suppose you need to make 6 using coins worth 1, 3 and 4. A greedy approach takes the largest coin each time: 4, then 1, then 1, which is three coins. Two 3-coins make 6 with only two coins, so the greedy choice was not the best.
Backtracking
Backtracking searches through the choices one at a time, depth first. When a partial choice cannot lead to a valid answer, the algorithm abandons it and returns to an earlier choice. The N-queens puzzle, which asks for placements of N queens on an N-by-N board so that none attack each other, is a classic example. Graph coloring, where connected vertices must have different colors, is another.
Branch and bound
Branch and bound explores a tree of partial solutions but skips any branch that cannot beat the best complete answer found so far. The traveling salesman problem, which asks for the shortest route that visits a set of cities once each, is a common illustration. Even with pruning, large instances can take a long time to solve exactly.
Randomized
A randomized algorithm makes at least one decision using random numbers. Randomized quicksort, for example, picks its pivot at random. This makes consistently poor splits unlikely on any given input, which helps the algorithm run well on average. Randomized methods are often simple to write, though their results and running times can vary from run to run.
Why the categories overlap
The types describe the main idea behind an algorithm, not strict rules. Merge sort is divide and conquer, but it is also recursive. Dijkstra’s algorithm is greedy, but it also depends on a priority queue, which is a data structure. A backtracking search can be written with recursion. When an algorithm uses several ideas, it can reasonably be placed in more than one category.
Other ways to group algorithms
Algorithms are also grouped by the problem they solve, such as sorting, searching or graph problems. They can be grouped by running time, or by whether they are deterministic, which means they always make the same choices on the same input, or randomized. For a few simple examples of recursion, see recursive algorithm examples.