We will start this pattern tutorial with 23 GOF patterns. They are fundamental to all the patterns. Other patterns are developed using GOF patterns. It is, therefore, essential to have thorough understanding of them. The strategy pattern is, in short, a 'Pluggable Algorithm'.
Strategy offers a better way of managing code with a lot of conditional logic.
Strategy pattern seems very similar to the State pattern. But they are different. One difference is that Strategies are determined outside the Context, while States are more internal. If you have heard about finite state machines, you know what State Pattern does. The State Pattern appears whenever you have an abstraction that executes a state machine.