中文
相关论文

相关论文: Insertion Sort is O(n log n)

200 篇论文

We show that the sequence of integers which have nearly the typical number of distinct prime factors forms a Poisson process. More precisely, for $\de$ arbitrarily small and positive, the nearest neighbor spacings between integers $n$ with…

数论 · 数学 2019-08-15 Rizwanur Khan

The best known lower and upper bounds on the mixing time for the random-to-random insertions shuffle are $(1/2-o(1))n\log n$ and $(2+o(1))n\log n$. A long standing open problem is to prove that the mixing time exhibits a cutoff. In…

概率论 · 数学 2015-03-19 Eliran Subag

We present an algorithm computing the determinant of an integer matrix A. The algorithm is introspective in the sense that it uses several distinct algorithms that run in a concurrent manner. During the course of the algorithm partial…

符号计算 · 计算机科学 2008-09-04 Jean-Guillaume Dumas , Anna Urbanska

Given a signed permutation on $n$ elements, we need to sort it with the fewest reversals. This is a fundamental algorithmic problem motivated by applications in comparative genomics, as it allows to accurately model rearrangements in small…

数据结构与算法 · 计算机科学 2023-08-31 Bartłomiej Dudek , Paweł Gawrychowski , Tatiana Starikovskaya

Sorting is one of the oldest computing problems and is still very important in the age of big data. Various algorithms and implementation techniques have been proposed. In this study, we focus on comparison based, internal sorting…

数据结构与算法 · 计算机科学 2016-09-16 Hantao Zhang , Baoluo Meng , Yiwen Liang

We consider the allocation problem in which $m \leq (1-\epsilon) dn $ items are to be allocated to $n$ bins with capacity $d$. The items $x_1,x_2,\ldots,x_m$ arrive sequentially and when item $x_i$ arrives it is given two possible bin…

数据结构与算法 · 计算机科学 2017-08-24 Alan Frieze , Samantha Petti

Assume that an $N$-bit sequence $S$ of $k$ numbers encoded as Elias gamma codes is given as input. We present space-efficient algorithms for sorting, dense ranking and competitive ranking on $S$ in the word RAM model with word size…

数据结构与算法 · 计算机科学 2024-09-04 Frank Kammer , Johannes Meintrup , Andrej Sajenko

Longest common extension queries (often called longest common prefix queries) constitute a fundamental building block in multiple string algorithms, for example computing runs and approximate pattern matching. We show that a sequence of $q$…

数据结构与算法 · 计算机科学 2016-04-08 Paweł Gawrychowski , Tomasz Kociumaka , Wojciech Rytter , Tomasz Waleń

The random access problem for compressed strings is to build a data structure that efficiently supports accessing the character in position $i$ of a string given in compressed form. Given a grammar of size $n$ compressing a string of size…

数据结构与算法 · 计算机科学 2015-01-27 Patrick Hagge Cording

A rank-select index for a sequence $B=(b_1,\ldots,b_n)$ of $n$ bits is a data structure that, if provided with an operation to access $\Theta(\log n)$ arbitrary consecutive bits of $B$ in constant time (thus $B$ is stored outside of the…

数据结构与算法 · 计算机科学 2017-09-08 Tim Baumann , Torben Hagerup

We revisit the complexity of building, given a two-dimensional string of size $n$, an indexing structure that allows locating all $k$ occurrences of a two-dimensional pattern of size $m$. While a structure of size $\mathcal{O}(n)$ with…

数据结构与算法 · 计算机科学 2025-08-26 Paweł Gawrychowski , Adam Górkiewicz

We consider a response system that updates its internal state in accordance with information input arriving from outside. In this paper, we define as internal time the ``number of kinds'' of codes that have been observed at least once up to…

计算物理 · 物理学 2026-01-13 Tatsuaki Tsuruyama

We give the first sorting algorithm with bounds in terms of higher-order entropies: let $S$ be a sequence of length $m$ containing $n$ distinct elements and let (H_\ell (S)) be the $\ell$th-order empirical entropy of $S$, with (n^{\ell + 1}…

数据结构与算法 · 计算机科学 2007-05-23 Travis Gagie

The number of n-gram features grows exponentially in n, making it computationally demanding to compute the most frequent n-grams even for n as small as 3. Motivated by our production machine learning system built on n-gram features, we ask:…

数据结构与算法 · 计算机科学 2025-11-20 Ryan R. Curtin , Fred Lu , Edward Raff , Priyanka Ranade

We present a randomized algorithm for dynamic graph connectivity. With failure probability less than $1/n^c$ (for any constant $c$ we choose), our solution has worst case running time $O(\log^3 n)$ per edge insertion, $O(\log^4 n)$ per edge…

数据结构与算法 · 计算机科学 2015-10-16 Zhengyu Wang

The proliferation of number of processing elements (PEs) in parallel computer systems, along with the use of more extensive parallelization of algorithms causes the interprocessor communications dominate VLSI chip space. This paper proposes…

数据结构与算法 · 计算机科学 2020-11-24 Taeyoung An , A. Yavuz Oruc

An absent word of a word y of length n is a word that does not occur in y. It is a minimal absent word if all its proper factors occur in y. Minimal absent words have been computed in genomes of organisms from all domains of life; their…

数据结构与算法 · 计算机科学 2014-07-01 Carl Barton , Alice Heliou , Laurent Mouchard , Solon P. Pissis

We consider a class of pattern matching problems where a normalising transformation is applied at every alignment. Normalised pattern matching plays a key role in fields as diverse as image processing and musical information processing…

数据结构与算法 · 计算机科学 2015-03-19 Ayelet Butman , Peter Clifford , Raphael Clifford , Markus Jalsenius , Noa Lewenstein , Benny Porat , Ely Porat , Benjamin Sach

Motivated by problems in controlled experiments, we study the discrepancy of random matrices with continuous entries where the number of columns $n$ is much larger than the number of rows $m$. Our first result shows that if $\omega(1) = m =…

离散数学 · 计算机科学 2020-11-10 Paxton Turner , Raghu Meka , Philippe Rigollet

Sorting a Permutation by Transpositions (SPbT) is an important problem in Bioinformtics. In this paper, we improve the running time of the best known approximation algorithm for SPbT. We use the permutation tree data structure of Feng and…

数据结构与算法 · 计算机科学 2009-10-20 Jesun Sahariar Firoz , Masud Hasan , Ashik Zinnat Khan , M. Sohel Rahman