Apriori Algorithm for Association Rule Mining
Gabarito: letra C. The apriori() function implements the Apriori algorithm, which is specifically designed to generate association rules from transactional data. In the given code, it is indeed generating rules with the specified support and confidence thresholds.
Alternativa A — ❌ Incorreta
The apriori() function generates new rules; it does not group existing rules. Grouping is a post-processing task.
Alternativa B — ❌ Incorreta
apriori() discovers rules based on thresholds; it does not exclude existing rules. Exclusion would be a separate operation.
Alternativa C — ✅ Correta ⟵ GABARITO
The function generates association rules as per the Apriori algorithm. The parameter target = "rules" explicitly confirms this.
Alternativa D — ❌ Incorreta
apriori() does not alter existing rules; it mines new ones. Altering thresholds is a different concept.
Alternativa E — ❌ Incorreta
apriori() is for rule mining, not classification. Classification is a distinct data mining task.
Gabarito: letra C.