An antimagic labeling of a graph G is a bijection from the set of edges E(G) to {1, 2, . . . , |E(G)|} such that all vertex sums are pairwise distinct, where the vertex sum at vertex u is the sum of the labels assigned to the edges incident to u. A graph is called antimagic when it has an antimagic labeling. Hartsfield and Ringel conjectured that every simple connected graph other than K 2 is antimagic and the conjecture remains open even for trees. Here we prove that caterpillars are antimagic by means of an O(n log n) algorithm.
A k-antimagic labeling of a graph G is an injection from E(G) to {1, 2, . . . , |E(G)| + k} such that all vertex sums are pairwise distinct, where the vertex sum at vertex u is the sum of the labels assigned to edges incident to u. We call a graph k-antimagic when it has a k-antimagic labeling, and antimagic when it is 0-antimagic. Hartsfield and Ringel [13] conjectured that every simple connected graph other than K 2 is antimagic, but the conjecture is still open even for trees. Here we study k-antimagic labelings of caterpillars, which are defined as trees the removal of whose leaves produces a path, called its spine. As a general result, we use algorithmic aproaches, i.e., constructive approaches, to prove that any caterpillar of order n is ( (n − 1)/2 − 2)-antimagic. Furthermore, if C is a caterpillar with a spine of order s, we prove that when C has at least (3s + 1)/2 leaves or (s − 1)/2 consecutive vertices of degree at most 2 at one end of a longest path, then C is antimagic. As a consequence of a result by Wong and Zhu [22], we also prove that if p is a prime number, any caterpillar with a spine of order p, p − 1 or p − 2 is 1-antimagic. *
The optimal transformation of one tree into another by means of elementary edit operations is an important algorithmic problem that has several interesting applications to computational biology. Here we introduce a constrained form of this problem in which a partial mapping of a set of nodes (the "seeds") in one tree to a corresponding set of nodes in the other tree is given, and present efficient algorithms for both ordered and unordered trees. Whereas ordered tree matching based on seeded nodes has applications in pattern matching of RNA structures, unordered tree matching based on seeded nodes has applications in co-speciation and phylogeny reconciliation. The latter involves the solution of the planar tanglegram layout problem, for which a polynomial-time algorithm is given here.
We study one word-decreasing self-reducible sets, which are introduced by Lozano and Tor\'an [21]. These are usual self-reducible sets with the peculiarity that the self-reducibility machine makes at most one query to a word lexicographically smaller than the input.
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.