Apriori algorithm is considered to be a classical algorithm in data mining. It is used for mining various itemsets and consistent association rules. It is built to work on a database containing a lot of transactions, say, for instance, items brought by customers in a store.
A model is prepared by gathering structures present in the input data. This may be to extract general rules. It may be by applying a mathematical process to systematically defeat redundancy, or it may be to organize data by similarity. This all comes under the clustering and dimensionality reduction problem.
To learn more about the Apriori algorithm then you can join Intellipaat's ML course.