Related Experiment Video
Updated: Aug 10, 2026

An Operant Intra-/Extra-dimensional Set-shift Task for Mice
Published on: January 22, 2016
A linear-time algorithm for computing inversion distance between signed permutations with an experimental study
1Department of Electrical and Computer Engineering, University of New Mexico, Albuquerque, NM 87131-1356, USA. dbader@eece.unm.edu
Abstract:
Hannenhalli and Pevzner gave the first polynomial-time algorithm for computing the inversion distance between two signed permutations, as part of the larger task of determining the shortest sequence of inversions needed to transform one permutation into the other. Their algorithm (restricted to distance calculation) proceeds in two stages: in the first stage, the overlap graph induced by the permutation is decomposed into connected components; then, in the second stage, certain graph structures (hurdles and others) are identified. Berman and Hannenhalli avoided the explicit computation of the overlap graph and gave an O(nalpha(n)) algorithm, based on a Union-Find structure, to find its connected components, where alpha is the inverse Ackerman function. Since for all practical purposes alpha(n) is a constant no larger than four, this algorithm has been the fastest practical algorithm to date. In this paper, we present a new linear-time algorithm for computing the connected components, which is more efficient than that of Berman and Hannenhalli in both theory and practice. Our algorithm uses only a stack and is very easy to implement. We give the results of computational experiments over a large range of permutation pairs produced through simulated evolution; our experiments show a speed-up by a factor of 2 to 5 in the computation of the connected components and by a factor of 1.3 to 2 in the overall distance computation.
Related Concept Videos
Introduction to the Sign Test
Sign Test for Matched Pairs
To conduct the sign test, we first calculate the differences in value between...
Basic Operations on Signals
Time Reversal mirrors a continuous-time signal about the vertical axis at t=0. This is achieved by substituting t with −t. For example, if a signal x(t) is considered, the time-reversed signal is x(−t). This operation can be graphically represented, showing the mirrored signal.
Properties of DTFT I
The linearity property of DTFTs is fundamental. If two discrete-time signals are multiplied by constants a and b respectively, and then combined to...
Derivatives of Inverse Trigonometric Functions
Distance Problem

