Because they are often on the hook for fraudulent charges, the major credit card companies rely on intricate algorithms designed to trigger an alert when suspicious purchases have been made.