FPGrowth is a recursive algorithm. Like some of the other people mentioned here, you can always convert an algorithm to a non-recursive algorithm using the stack. But I see no good reason for this for FPGrowth.
By the way, if you want to implement the Java implementation of FPGrowth and other commonly used template development algorithms such as Apriori, HMine, Eclat, etc., you can check out my site. I have implemented more than 40 algorithms for frequent template development, rule rule development, etc.:
http://www.philippe-fournier-viger.com/spmf/
source share