“…Taking into account that p (2) (n) ≤ p(n), by Theorem 4.1 we deduce that Algorithm 2 performs fewer assignment statements than Algorithm 5 in [7,Section 4]. Both algorithms evaluate the same number of logical expressions.…”
“…1 we can see that (1, 5)(1, 4)(1, 3) (2, 2)(2, 0) is a path that connects the root node (1,5) to the leaf node (2,0). From this path, node (1, 3) is deleted when listing because it is followed by the node (2, 2), which is its right child.…”
Section: Introductionmentioning
confidence: 98%
“…(2) To generate all the ascending compositions of n, we can traverse in depth-first order the partition strict binary tree. When we reach a leaf node, we list from the path that connects the root node with the leaf node only the leaf node and the nodes that are followed by the left child.…”
Section: Introductionmentioning
confidence: 99%
“…From this path, node (1, 3) is deleted when listing because it is followed by the node (2, 2), which is its right child. Keeping from every remained pair only the first value, we get the ascending composition [1,1,2,2].…”
It is known that the integer partitions may be encoded as either ascending or descending compositions for the purposes of systematic generation. In this paper, we give an efficient data structure for storing all ascending compositions of a positive integer. Using this structure, we improved the fastest known algorithm for generating integer partitions.
“…Taking into account that p (2) (n) ≤ p(n), by Theorem 4.1 we deduce that Algorithm 2 performs fewer assignment statements than Algorithm 5 in [7,Section 4]. Both algorithms evaluate the same number of logical expressions.…”
“…1 we can see that (1, 5)(1, 4)(1, 3) (2, 2)(2, 0) is a path that connects the root node (1,5) to the leaf node (2,0). From this path, node (1, 3) is deleted when listing because it is followed by the node (2, 2), which is its right child.…”
Section: Introductionmentioning
confidence: 98%
“…(2) To generate all the ascending compositions of n, we can traverse in depth-first order the partition strict binary tree. When we reach a leaf node, we list from the path that connects the root node with the leaf node only the leaf node and the nodes that are followed by the left child.…”
Section: Introductionmentioning
confidence: 99%
“…From this path, node (1, 3) is deleted when listing because it is followed by the node (2, 2), which is its right child. Keeping from every remained pair only the first value, we get the ascending composition [1,1,2,2].…”
It is known that the integer partitions may be encoded as either ascending or descending compositions for the purposes of systematic generation. In this paper, we give an efficient data structure for storing all ascending compositions of a positive integer. Using this structure, we improved the fastest known algorithm for generating integer partitions.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.