How to sort by walking on a tree

5Citations
Citations of this article
4Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Consider a graph G with n vertices. On each vertex we place a box. These n vertices and n boxes are both numbered from 1 to n and initially shuffled according to a permutation π ∈ Sn. We introduce a sorting problem for a single robot: In every step, the robot can walk along an edge of G and can carry at most one box at a time. At a vertex, it may swap the box placed there with the box it is carrying. How many steps does the robot need to sort all the boxes? We present an algorithm that produces a shortest possible sorting walk for such a robot if G is a tree. The algorithm runs in time O(n2) and can be simplified further if G is a path. We show that for planar graphs the problem of finding a shortest possible sorting walk is NP-complete.

Cite

CITATION STYLE

APA

Graf, D. (2015). How to sort by walking on a tree. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9294, pp. 643–655). Springer Verlag. https://doi.org/10.1007/978-3-662-48350-3_54

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free