中文
相关论文

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

200 篇论文

We investigate dynamic algorithms for the interval scheduling problem. Our algorithm runs in amortised time $O(\log n)$ for query operation and $O(d\log^2 n)$ for insertion and removal operations, where $n$ and $d$ are the maximal numbers…

数据结构与算法 · 计算机科学 2014-12-30 Alex Gavryushkin , Bakhadyr Khoussainov , Mikhail Kokho , Jiamou Liu

Shuffling is the process of rearranging a sequence of elements into a random order such that any permutation occurs with equal probability. It is an important building block in a plethora of techniques used in virtually all scientific…

数据结构与算法 · 计算机科学 2023-02-08 Manuel Penschuck

Given a string of length $n$ that is composed of $r$ runs of letters from the alphabet $\{0,1,\ldots,\sigma{-}1\}$ such that $2 \le \sigma \le r$, we describe a data structure that, provided $r \le n / \log^{\omega(1)} n$, stores the string…

数据结构与算法 · 计算机科学 2018-02-27 José Fuentes-Sepúlveda , Juha Kärkkäinen , Dmitry Kosolobov , Simon J. Puglisi

We prove that any oblivious algorithm using space $S$ to find the median of a list of $n$ integers from $\{1,...,2n\}$ requires time $\Omega(n \log\log_S n)$. This bound also applies to the problem of determining whether the median is odd…

计算复杂性 · 计算机科学 2015-05-04 Paul Beame , Vincent Liew , Mihai Pǎtraşcu

We study the complexity of a fundamental algorithm for fairly allocating indivisible items, the round-robin algorithm. For $n$ agents and $m$ items, we show that the algorithm can be implemented in time $O(nm\log(m/n))$ in the worst case.…

计算机科学与博弈论 · 计算机科学 2025-08-07 Zihan Li , Pasin Manurangsi , Jonathan Scarlett , Warut Suksompong

The papers~\cite{hatfimmokomi11} and~\cite{azizbrilharr13} propose algorithms for testing whether the choice function induced by a (strict) preference list of length $N$ over a universe $U$ is substitutable. The running time of these…

数据结构与算法 · 计算机科学 2018-05-22 Cosmina Croitoru , Kurt Mehlhorn

Hash tables are ubiquitous in computer science for efficient access to large datasets. However, there is always a need for approaches that offer compact memory utilisation without substantial degradation of lookup performance. Cuckoo…

数据结构与算法 · 计算机科学 2019-07-17 Megha Khosla , Avishek Anand

Perfect sorting by reversals, a problem originating in computational genomics, is the process of sorting a signed permutation to either the identity or to the reversed identity permutation, by a sequence of reversals that do not break any…

离散数学 · 计算机科学 2012-01-05 Mathilde Bouvel , Cedric Chauve , Marni Mishna , Dominique Rossin

A constant-workspace algorithm has read-only access to an input array and may use only O(1) additional words of $O(\log n)$ bits, where $n$ is the size of the input. We assume that a simple $n$-gon is given by the ordered sequence of its…

计算几何 · 计算机科学 2013-06-14 Tetsuo Asano , Kevin Buchin , Maike Buchin , Matias Korman , Wolfgang Mulzer , Günter Rote , André Schulz

Quicksort on the fly returns the input of $n$ reals in increasing natural order during the sorting process. Correctly normalized the running time up to returning the l-th smallest out of n seen as a process in l converges weakly to a…

概率论 · 数学 2013-02-18 Mahmoud Ragab , Uwe Roesler

We consider the assortment optimization problem with disjoint-cardinality constraints under two-level nested logit model. To solve this problem, we first identify a candidate set with $O(mn^2)$ assortments and show that at least one optimal…

最优化与控制 · 数学 2016-03-31 Tian Xie

MergeInsertion, also known as the Ford-Johnson algorithm, is a sorting algorithm which, up to today, for many input sizes achieves the best known upper bound on the number of comparisons. Indeed, it gets extremely close to the…

数据结构与算法 · 计算机科学 2019-05-24 Florian Stober , Armin Weiß

The authors recently gave an $n^{O(\log\log n)}$ time membership query algorithm for properly learning decision trees under the uniform distribution (Blanc et al., 2021). The previous fastest algorithm for this problem ran in $n^{O(\log…

数据结构与算法 · 计算机科学 2022-06-30 Guy Blanc , Jane Lange , Mingda Qiao , Li-Yang Tan

Given a multiset $X=\{x_1,..., x_n\}$ of real numbers, the {\it floating-point set summation} problem asks for $S_n=x_1+...+x_n$. Let $E^*_n$ denote the minimum worst-case error over all possible orderings of evaluating $S_n$. We prove that…

数据结构与算法 · 计算机科学 2024-09-21 Ming-Yang Kao , Jie Wang

Multiplication of n-digit integers by long multiplication requires O(n^2) operations and can be time-consuming. In 1970 A. Schoenhage and V. Strassen published an algorithm capable of performing the task with only O(n log(n)) arithmetic…

数值分析 · 计算机科学 2010-06-03 Thomas Steinke , Raazesh Sainudiin

A fundamental problem in data management is to find the elements in an array that match a query. Recently, learned indexes are being extensively used to solve this problem, where they learn a model to predict the location of the items in…

数据库 · 计算机科学 2023-06-21 Sepanta Zeighami , Cyrus Shahabi

This paper describes a new median algorithm and a median approximation algorithm. The former has O(n) average running time and the latter has O(n) worst-case running time. These algorithms are highly competitive with the standard algorithm…

统计计算 · 统计学 2009-05-12 Ryan J. Tibshirani

We consider a stack sorting algorithm where only the appropriate output values are popped from the stack and then any remaining entries in the stack are run through the stack in reverse order. We identify the basis for the $2$-reverse pass…

组合数学 · 数学 2018-08-14 Toufik Mansour , Howard Skogman , Rebecca Smith

The string indexing problem is a fundamental computational problem with numerous applications, including information retrieval and bioinformatics. It aims to efficiently solve the pattern matching problem: given a text T of length n for…

数据结构与算法 · 计算机科学 2025-09-03 Waseem Akram , Takuya Mieno

Cuckoo hashing is an efficient technique for creating large hash tables with high space utilization and guaranteed constant access times. There, each item can be placed in a location given by any one out of k different hash functions. In…

数据结构与算法 · 计算机科学 2013-10-11 Nikolaos Fountoulakis , Konstantinos Panagiotou , Angelika Steger