Means-ends analysis (MEA) is a problem-solving technique used in AI to limit search. It works by choosing an action at each step to reduce the difference between the current and goal states, applying the action recursively until the goal is reached. Early systems like GPS and Prodigy used MEA by providing knowledge of how differences map to actions. MEA improves search by focusing on actual differences rather than brute force methods.