Using Cloth to simulate the movement of a whip is definately the best way. But if you want the whip to do very specific things as opposed to a simulation, then there are a number of ways to produce the ffect. Linked rotation of bones and designated control points is usually quaite easy to use. IK Curve handles can also be useful, and have good interpolation, but are not so easy to animate.