中文
相关论文

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

200 篇论文

In computer science, sorting algorithms are crucial for data processing and machine learning. Large datasets and high efficiency requirements provide challenges for comparison-based algorithms like Quicksort and Merge sort, which achieve…

数据结构与算法 · 计算机科学 2024-10-01 Amin Amini

In the Online List Labeling problem, a set of $n \leq N$ elements from a totally ordered universe must be stored in sorted order in an array with $m=N+\lceil\varepsilon N \rceil$ slots, where $\varepsilon \in (0,1]$ is constant, while an…

数据结构与算法 · 计算机科学 2024-05-08 Martin P. Seybold

In this paper we show that two-dimensional nearest neighbor queries can be answered in optimal $O(\log n)$ time while supporting insertions in $O(\log^{1+\varepsilon}n)$ time. No previous data structure was known that supports $O(\log…

数据结构与算法 · 计算机科学 2025-04-11 John Iacono , Yakov Nekrich

The integer complexity $f(n)$ of a positive integer $n$ is defined as the minimum number of 1's needed to represent $n$, using additions, multiplications and parentheses. We present two simple and faster algorithms for computing the integer…

数据结构与算法 · 计算机科学 2023-09-14 Qizheng He

The {\it matrix-chain multiplication} problem is a classic problem that is widely taught to illustrate dynamic programming. The textbook solution runs in $\theta(n^3)$ time. However, there is a complex $O(n \log n)$-time method \cite{HU82},…

离散数学 · 计算机科学 2021-04-06 Thong Le , Dan Gusfield

We present an algorithm to decide the primality of Proth numbers, N=2^e t+1, without assuming any unproven hypothesis. The expected running time and the worst case running time of the algorithm are O ((t log t + log N)log N) and O ((t log t…

数论 · 数学 2011-07-05 Tsz-Wo Sze

Let G be a directed graph with n vertices and non-negative weights in its directed edges, embedded on a surface of genus g, and let f be an arbitrary face of G. We describe a randomized algorithm to preprocess the graph in O(gn log n) time…

数据结构与算法 · 计算机科学 2013-05-13 Sergio Cabello , Erin Wolf Chambers , Jeff Erickson

Recently, Armstrong, Guzm\'an, and Sing Long (2021), presented an optimal $O(n^2)$ time algorithm for strict circular seriation (called also the recognition of strict quasi-circular Robinson spaces). In this paper, we give a very simple…

离散数学 · 计算机科学 2023-05-23 Mikhael Carmona , Victor Chepoi , Guyslain Naves , Pascal Préa

Time series are ubiquitous in domains ranging from medicine to marketing and finance. Frequent Pattern Mining (FPM) from a time series has thus received much attention. Recently, it has been studied under the order-preserving (OP) matching…

数据结构与算法 · 计算机科学 2024-12-02 Ling Li , Wiktor Zuba , Grigorios Loukides , Solon P. Pissis , Maria Matsangidou

Suppose that we are given a string $s$ of length $n$ over an alphabet $\{0,1,\ldots,n^{O(1)}\}$ and $\delta$ is the string complexity of $s$, a known compression measure. We describe an index on $s$ with $O(\delta\log\frac{n}{\delta})$…

数据结构与算法 · 计算机科学 2026-04-15 Dmitry Kosolobov

A major goal in the area of exact exponential algorithms is to give an algorithm for the (worst-case) $n$-input Subset Sum problem that runs in time $2^{(1/2 - c)n}$ for some constant $c>0$. In this paper we give a Subset Sum algorithm with…

数据结构与算法 · 计算机科学 2023-01-31 Xi Chen , Yaonan Jin , Tim Randolph , Rocco A. Servedio

A modified dynamic programming algorithm rapidly and accurately solves large 0/1 knapsack problems. It has computational O(nlogn), space O(nlogn) and predictable maximum error. Experimentally it's accuracy increases faster than linearly…

数据结构与算法 · 计算机科学 2025-12-30 Nick Dawes

Let $T [1..n]$ be a text over an alphabet of size $\sigma \in \mathrm{polylog} (n)$, let $r^*$ be the sum of the numbers of runs in the Burrows-Wheeler Transforms of $T$ and its reverse, and let $z$ be the number of phrases in the LZ77…

数据结构与算法 · 计算机科学 2025-08-19 Travis Gagie

The present letter proposes a modification in the well known Grover's search algorithm, which searches a database of $N$ unsorted items in $O(\sqrt{N/M})$ steps, where $M$ represents the number of solutions to the search problem.…

量子物理 · 物理学 2014-07-11 A. S. Gupta , A. Pathak

We present a sorting algorithm that works in-place, executes in parallel, is cache-efficient, avoids branch-mispredictions, and performs work O(n log n) for arbitrary inputs with high probability. The main algorithmic contributions are new…

分布式、并行与集群计算 · 计算机科学 2017-07-03 Michael Axtmann , Sascha Witt , Daniel Ferizovic , Peter Sanders

We investigate the complexity of algorithms counting ones in different sets of operations. With addition and logical operations (but no shift) $O(\log^2(n))$ steps suffice to count ones. Parity can be computed with complexity $O(\log(n))$,…

计算复杂性 · 计算机科学 2015-07-03 Holger Petersen

FAST problem is finding minimum feedback arc set problem in tournaments. In this paper we present some algorithms that are similar to sorting algorithms for FAST problem and we analyze them. We present Pseudo_InsertionSort algorithm for…

数据结构与算法 · 计算机科学 2019-10-16 Sadra Mohammadshirazi , Alireza Bagheri

Clustering is a fundamental problem in unsupervised machine learning with many applications in data analysis. Popular clustering algorithms such as Lloyd's algorithm and $k$-means++ can take $\Omega(ndk)$ time when clustering $n$ points in…

机器学习 · 计算机科学 2023-10-26 Moses Charikar , Monika Henzinger , Lunjia Hu , Maxmilian Vötsch , Erik Waingarten

We show how to search N items arranged on a $\sqrt{N}\times\sqrt{N}$ grid in time $O(\sqrt N \log N)$, using a discrete time quantum walk. This result for the first time exhibits a significant difference between discrete time and continuous…

量子物理 · 物理学 2007-05-23 Andris Ambainis , Julia Kempe , Alexander Rivosh

This paper introduces a new comparison base stable sorting algorithm, named RS sort. RS Sort involves only the comparison of pair of elements in an array which ultimately sorts the array and does not involve the comparison of each element…

数据结构与算法 · 计算机科学 2014-07-23 Harsh Ranjan , Sumit Agarwal , Niraj Kumar Singh
‹ 上一页 1 8 9 10 下一页 ›