In my opinion, the time complexity should be O (n 2 ) if the number of unique elements in the data set is n. Complexity depends on finding paths in the FP tree for each element of the header table, which depends on the depth of the tree. The maximum tree depth is limited to n for each of the conditional trees. Thus, the order is: O (number of elements in the header table * maximum tree depth) = O (n * n).
source share