Karp's job sequencing problem: n jobs each carry a processing time, a deadline, and a penalty for missing the deadline. Choose an order on a single machine that minimizes the total weighted penalty:
Here C_j(σ) is the completion time of job j under schedule σ, and the bracketed indicator is 1 if the job finishes late, 0 otherwise. So (1) charges the penalty w_j for each missed deadline and asks for the order that pays least.
Form (1) is NP-hard via reduction from partition. Special cases — unit times, identical penalties, agreeable weights — admit polynomial greedy solutions (Moore–Hodgson, EDF). The general case is one of the most-studied scheduling problems and the gateway to modern scheduling theory.