中文
相关论文

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

200 篇论文

Matrix clocks are a generalization of the notion of vector clocks that allows the local representation of causal precedence to reach into an asynchronous distributed computation's past with depth $x$, where $x\ge 1$ is an integer.…

分布式、并行与集群计算 · 计算机科学 2007-05-23 L. M. A. Drummond , V. C. Barbosa

In sorting situations where the final destination of each item is known, it is natural to repeatedly choose items and place them where they belong, allowing the intervening items to shift by one to make room. (In fact, a special case of…

组合数学 · 数学 2008-09-18 Sergi Elizalde , Peter Winkler

In 1937, biologists Sturtevant and Tan posed a computational question: transform a chromosome represented by a permutation of genes, into a second permutation, using a minimum-length sequence of reversals, each inverting the order of a…

数据结构与算法 · 计算机科学 2024-04-01 Krister M. Swenson

The technique of in-situ associative permuting is introduced which is an association of in-situ permuting and in-situ inverting. It is suitable for associatively permutable permutations of {1,2,...,n} where the elements that will be…

数据结构与算法 · 计算机科学 2013-01-11 A. Emre Cetin

Sorting is a foundational problem in computer science that is typically employed on sequences or total orders. More recently, a more general form of sorting on partially ordered sets (or posets), where some pairs of elements are…

数据结构与算法 · 计算机科学 2022-06-03 Jishnu Roychoudhury , Jatin Yadav

A perturbation technique can be used to simplify and sharpen A. C. Yao's theorems about the behavior of shellsort with increments $(h,g,1)$. In particular, when $h=\Theta(n^{7/15})$ and $g=\Theta(h^{1/5})$, the average running time is…

数据结构与算法 · 计算机科学 2008-02-03 Svante Janson , Donald E. Knuth

We present a novel approach to finding the $k$-sink on dynamic path networks with general edge capacities. Our first algorithm runs in $O(n \log n + k^2 \log^4 n)$ time, where $n$ is the number of vertices on the given path, and our second…

数据结构与算法 · 计算机科学 2016-09-07 Binay Bhattacharya , Mordecai J. Golin , Yuya Higashikawa , Tsunehiko Kameda , Naoki Katoh

We give a more space-efficient implementation of adaptive mergesort: Virtual-Memory Powersort. Using internal buffering techniques, we significantly reduce the memory consumption of the algorithm; specifically, for sorting $n$ objects the…

数据结构与算法 · 计算机科学 2026-05-27 Finn Moltmann , Tamio-Vesa Nakajima , Sebastian Wild

It is usually assumed that a quantum computation is performed by applying gates in a specific order. One can relax this assumption by allowing a control quantum system to switch the order in which the gates are applied. This provides a more…

量子物理 · 物理学 2020-06-11 Mateus Araújo , Fabio Costa , Časlav Brukner

We study a generalization of the recently introduced order-preserving pattern matching, where instead of looking for an exact copy of the pattern, we only require that the relative order between the elements is the same. In our variant, we…

数据结构与算法 · 计算机科学 2014-03-07 Pawel Gawrychowski , Przemyslaw Uznanski

Tree comparison metrics have proven to be an invaluable aide in the reconstruction and analysis of phylogenetic (evolutionary) trees. The path-length distance between trees is a particularly attractive measure as it reflects differences in…

数据结构与算法 · 计算机科学 2018-11-05 David Bryant , Celine Scornavacca

We give an O(sqrt n log n)-query quantum algorithm for evaluating size-n AND-OR formulas. Its running time is poly-logarithmically greater after efficient preprocessing. Unlike previous approaches, the algorithm is based on a quantum walk…

量子物理 · 物理学 2011-10-11 Ben W. Reichardt

Consider a clique of n nodes, where in each synchronous round each pair of nodes can exchange O(log n) bits. We provide deterministic constant-time solutions for two problems in this model. The first is a routing problem where each node is…

分布式、并行与集群计算 · 计算机科学 2013-05-13 Christoph Lenzen

Sorting is the task of ordering $n$ elements using pairwise comparisons. It is well known that $m=\Theta(n\log n)$ comparisons are both necessary and sufficient when the outcomes of the comparisons are observed with no noise. In this paper,…

信息论 · 计算机科学 2024-07-09 Ziao Wang , Nadim Ghaddar , Banghua Zhu , Lele Wang

The dynamic partial sorting problem asks for an algorithm that maintains lists of numbers under the link, cut and change value operations, and queries the sorted sequence of the $k$ least numbers in one of the lists. We first solve the…

数据结构与算法 · 计算机科学 2014-04-21 Jiamou Liu , Kostya Ross

We propose an $O(N\cdot M)$ sorting algorithm by Machine Learning method, which shows a huge potential sorting big data. This sorting algorithm can be applied to parallel sorting and is suitable for GPU or TPU acceleration. Furthermore, we…

机器学习 · 计算机科学 2018-08-16 Hanqing Zhao , Yuehan Luo

We present space efficient Monte Carlo algorithms that solve Subset Sum and Knapsack instances with $n$ items using $O^*(2^{0.86n})$ time and polynomial space, where the $O^*(\cdot)$ notation suppresses factors polynomial in the input size.…

数据结构与算法 · 计算机科学 2017-06-27 Nikhil Bansal , Shashwat Garg , Jesper Nederlof , Nikhil Vyas

A classic result of Paul, Pippenger, Szemer\'edi and Trotter states that DTIME(n) is strictly contained in NTIME(n). The natural question then arises: could DTIME(t(n)) be contained in NTIME(n) for some superlinear time-constructible…

计算复杂性 · 计算机科学 2024-07-31 András Z. Salamon , Michael Wehar

Sorting a set of items is a task that can be useful by itself or as a building block for more complex operations. The more sophisticated and fast sorting algorithms become asymptotically, the less efficient they are for small sets of items…

数据结构与算法 · 计算机科学 2019-08-23 Jasper Marianczuk

Set intersection is a fundamental operation in information retrieval and database systems. This paper introduces linear space data structures to represent sets such that their intersection can be computed in a worst-case efficient way. In…

数据库 · 计算机科学 2011-03-15 Bolin Ding , Arnd Christian König