Generalizing the pancake sorting problem, we consider a reachability problem which asks whether an arbitrary two dimensional array can be obtained from an initial array by prefix reversals. In the case of the pancake sorting problem, sorting is always possible, whereas, it is not clear whether a rearrangement of two dimensional arrays is always possible. We shall prove any array is reachable from the initial array by prefix reversals unless the numbers of both rows and columns are divisible by 4. Using group theory, we also give a necessary and sufficient condition that an array is reachable from the initial array in such a case. We also give upper bounds on the number of prefix reversals to rearrange.
CITATION STYLE
Yamamura, A. (2015). Rearranging two dimensional arrays by prefix reversals. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9328, pp. 153–165). Springer Verlag. https://doi.org/10.1007/978-3-319-24537-9_14
Mendeley helps you to discover research relevant for your work.