What is the Apriori algorithm and how is it used in machine learning and data mining? How does the Apriori algorithm identify frequent itemsets and association rules in datasets? What are the key concepts of support, confidence, and lift in the Apriori algorithm? How is the Apriori algorithm applied in market basket analysis and recommendation systems? What are the advantages and limitations of using the Apriori algorithm in real-world applications?