78,044 research outputs found

    Optimal Computation of Avoided Words

    Get PDF
    The deviation of the observed frequency of a word ww from its expected frequency in a given sequence xx is used to determine whether or not the word is avoided. This concept is particularly useful in DNA linguistic analysis. The value of the standard deviation of ww, denoted by std(w)std(w), effectively characterises the extent of a word by its edge contrast in the context in which it occurs. A word ww of length k>2k>2 is a ρ\rho-avoided word in xx if std(w)ρstd(w) \leq \rho, for a given threshold ρ<0\rho < 0. Notice that such a word may be completely absent from xx. Hence computing all such words na\"{\i}vely can be a very time-consuming procedure, in particular for large kk. In this article, we propose an O(n)O(n)-time and O(n)O(n)-space algorithm to compute all ρ\rho-avoided words of length kk in a given sequence xx of length nn over a fixed-sized alphabet. We also present a time-optimal O(σn)O(\sigma n)-time and O(σn)O(\sigma n)-space algorithm to compute all ρ\rho-avoided words (of any length) in a sequence of length nn over an alphabet of size σ\sigma. Furthermore, we provide a tight asymptotic upper bound for the number of ρ\rho-avoided words and the expected length of the longest one. We make available an open-source implementation of our algorithm. Experimental results, using both real and synthetic data, show the efficiency of our implementation

    Fault-Tolerant Error Correction with Efficient Quantum Codes

    Full text link
    We exhibit a simple, systematic procedure for detecting and correcting errors using any of the recently reported quantum error-correcting codes. The procedure is shown explicitly for a code in which one qubit is mapped into five. The quantum networks obtained are fault tolerant, that is, they can function successfully even if errors occur during the error correction. Our construction is derived using a recently introduced group-theoretic framework for unifying all known quantum codes.Comment: 12 pages REVTeX, 1 ps figure included. Minor additions and revision

    Atomic and molecular complex resonances from real eigenvalues using standard (hermitian) electronic structure calculations

    Full text link
    Complex eigenvalues, resonances, play an important role in large variety of fields in physics and chemistry. For example, in cold molecular collision experiments and electron scattering experiments, autoionizing and pre-dissociative metastable resonances are generated. However, the computation of complex resonance eigenvalues is difficult, since it requires severe modifications of standard electronic structure codes and methods. Here we show how resonance eigenvalues, positions and widths, can be calculated using the standard, widely used, electronic-structure packages. Our method enables the calculations of the complex resonance eigenvalues by using analytical continuation procedures (such as Pad\'{e}). The key point in our approach is the existence of narrow analytical passages from the real axis to the complex energy plane. In fact, the existence of these analytical passages relies on using finite basis sets. These passages become narrower as the basis set becomes more complete, whereas in the exact limit, these passages to the complex plane are closed. As illustrative numerical examples we calculated the autoionization resonances of helium, hydrogen anion and hydrogen molecule. We show that our results are in an excellent agreement with the results obtained by other theoretical methods and with available experimental results

    Efficient Path Interpolation and Speed Profile Computation for Nonholonomic Mobile Robots

    Full text link
    This paper studies path synthesis for nonholonomic mobile robots moving in two-dimensional space. We first address the problem of interpolating paths expressed as sequences of straight line segments, such as those produced by some planning algorithms, into smooth curves that can be followed without stopping. Our solution has the advantage of being simpler than other existing approaches, and has a low computational cost that allows a real-time implementation. It produces discretized paths on which curvature and variation of curvature are bounded at all points, and preserves obstacle clearance. Then, we consider the problem of computing a time-optimal speed profile for such paths. We introduce an algorithm that solves this problem in linear time, and that is able to take into account a broader class of physical constraints than other solutions. Our contributions have been implemented and evaluated in the framework of the Eurobot contest
    corecore