Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Time and Space complexity of FP-Growth algorithm?

How do we calculate the Time complexity and Space complexity of FP_growth algorithm in Data Mining??

like image 633
Kalyan Manda Avatar asked Mar 26 '12 09:03

Kalyan Manda


People also ask

What is the FP growth algorithm?

FP-growth is an improved version of the Apriori Algorithm which is widely used for frequent pattern mining(AKA Association Rule Mining). It is used as an analytical process that finds frequent patterns or associations from data sets.

What is FP growth in association rule mining?

FP-Growth (frequent-pattern growth) algorithm is a classical algorithm in association rules mining. But the FP-Growth algorithm in mining needs two times to scan database, which reduces the efficiency of algorithm.

What is Apriori and FP growth?

Apriori is a Join-Based algorithm and FP-Growth is Tree-Based algorithm for frequent itemset mining or frequent pattern mining for market basket analysis.

What is the input for the FP growth algorithm?

What is the input of the FPGrowth algorithm? The input of FPGrowth is a transaction database (aka binary context) and a threshold named minsup (a value between 0 and 100 %). A transaction database is a set of transactions.


1 Answers

According to my understanding, the time complexity should be O(n2) if the number of unique items in the dataset is n. The complexity depends on searching of paths in FP tree for each element of the header table, which depends on the depth of the tree. Maximum depth of the tree is upper-bounded by n for each of the conditional trees. Thus the order is: O (No. of items in header table * maximum depth of tree)= O(n*n).

like image 118
R Loomba Avatar answered Sep 29 '22 09:09

R Loomba