The Apriori algorithm uses a hash tree data structure to effrciently count the s
ID: 3710268 • Letter: T
Question
The Apriori algorithm uses a hash tree data structure to effrciently count the support of candidate itemsets. Consider the hash tree for candidate 3-itemsets shown in Figure
(a) Given a transaction that contains items {1,3,4,5,8}, which of the hash
tree leaf nodes will be visited when fi.nding the candidates of the transaction?
(b) Use the visited leaf nodes in part (b) to determine the candidate itemsets
that are contained in the transaction {1,3,4,5,8}.
Explanation / Answer
a) The leaf nodes visited are L1, L3, L5, L9, and L11.
b) The candidates itemsets contained in the transaction are {1, 4, 5}, {1, 5, 8}, and {4, 5, 8}.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.