¹ AI (artificial intelligence) is a general term for systems that solve problems that require "human" thinking: data analysis, language understanding, and decision-making.
² ML (machine learning) is one of the approaches within AI, where the algorithm is not hard-coded, but learns from examples and gradually improves its predictions.