DOI: 10.3390/e24070884 provides pseudocode for computing the assembly index of an object. It is written as recursive algorithm, which might be fine. But I would like to implement an iterative version of this in Python which has a recursion depth limit. Although this limit can be changed within a given program, an iterative algorithm circumvents unconventionally changing the recursion limit.
What is an equivalent iterative algorithm for computing the assembly index?
threading.stack_size
andsetrecursionlimit
. – Dmitry Sep 13 '22 at 17:59