中文
相关论文

相关论文: Pattern-defeating Quicksort

200 篇论文

The analyses of many algorithms and data structures (such as digital search trees) for searching and sorting are based on the representation of the keys involved as bit strings and so count the number of bit comparisons. On the other hand,…

概率论 · 数学 2012-02-14 James Allen Fill , Svante Janson

We consider the streaming complexity of a fundamental task in approximate pattern matching: the $k$-mismatch problem. It asks to compute Hamming distances between a pattern of length $n$ and all length-$n$ substrings of a text for which the…

数据结构与算法 · 计算机科学 2018-04-10 Raphaël Clifford , Tomasz Kociumaka , Ely Porat

We consider the problem of sorting $n$ elements in the case of \emph{persistent} comparison errors. In this model (Braverman and Mossel, SODA'08), each comparison between two elements can be wrong with some fixed (small) probability $p$,…

数据结构与算法 · 计算机科学 2018-04-23 Barbara Geissmann , Stefano Leucci , Chih-Hung Liu , Paolo Penna

We consider the distinct elements problem, where the goal is to estimate the number of distinct colors in an urn containing $ k $ balls based on $n$ samples drawn with replacements. Based on discrete polynomial approximation and…

统计理论 · 数学 2018-01-16 Yihong Wu , Pengkun Yang

Given an array A[1: n] of n elements drawn from an ordered set, the sorted range selection problem is to build a data structure that can be used to answer the following type of queries efficiently: Given a pair of indices i, j $ (1\le i\le…

数据结构与算法 · 计算机科学 2025-04-22 Waseem Akram , Sanjeev Saxena

The single-source shortest path problem is a classical problem in the research field of graph algorithm. In this paper, a new single-source shortest path algorithm for nonnegative weight graph is proposed. The algorithm can compress…

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

We study algorithms for solving three problems on strings. The first one is the Most Frequently String Search Problem. The problem is the following. Assume that we have a sequence of $n$ strings of length $k$. The problem is finding the…

量子物理 · 物理学 2020-01-08 Kamil Khadiev , Artem Ilikaev

Quicksort is a classical divide-and-conquer sorting algorithm. It is a comparison sort that makes an average of $2(n+1)H_n - 4n$ comparisons on an array of size $n$ ordered uniformly at random, where $H_n = \sum_{i=1}^n\frac{1}{i}$ is the…

组合数学 · 数学 2023-06-23 Pamela E. Harris , Jan Kretschmann , J. Carlos Martínez Mori

An optimal index solving top-k document retrieval [Navarro and Nekrich, SODA12] takes O(m + k) time for a pattern of length m, but its space is at least 80n bytes for a collection of n symbols. We reduce it to 1.5n to 3n bytes, with…

数据结构与算法 · 计算机科学 2012-11-26 Roberto Konow , Gonzalo Navarro

The element distinctness problem is the problem of determining whether the elements of a list are distinct, that is, if $x=(x_1,...,x_N)$ is a list with $N$ elements, we ask whether the elements of $x$ are distinct or not. The solution in a…

量子物理 · 物理学 2018-11-13 Renato Portugal

The aim of the paper is to introduce general techniques in order to optimize the parallel execution time of sorting on a distributed architectures with processors of various speeds. Such an application requires a partitioning step. For…

分布式、并行与集群计算 · 计算机科学 2016-08-16 Christophe Cérin , Jean-Christophe Dubacq , Jean-Louis Roch , the SafeScale Collaboration

Neighborhood graphs are gaining popularity as a concise data representation in machine learning. However, naive graph construction by pairwise distance calculation takes $O(n^2)$ runtime for $n$ data points and this is prohibitively slow…

数据结构与算法 · 计算机科学 2009-04-22 Takeaki Uno , Masashi Sugiyama , Koji Tsuda

We consider two combinatorial problems. The first we call "search with wildcards": given an unknown n-bit string x, and the ability to check whether any subset of the bits of x is equal to a provided query string, the goal is to output x.…

量子物理 · 物理学 2014-07-16 Andris Ambainis , Ashley Montanaro

We present an average case analysis of a variant of dual-pivot quicksort. We show that the used algorithmic partitioning strategy is optimal, i.e., it minimizes the expected number of key comparisons. For the analysis, we calculate the…

This paper introduces a new parallel run-time for QuickCheck, a Haskell library and EDSL for specifying and randomly testing properties of programs. The new run-time can run multiple tests for a single property in parallel, using the…

编程语言 · 计算机科学 2024-04-26 Robert Krook , Nicholas Smallbone , Bo Joel Svensson , Koen Claessen

In this paper we present a new problem, the fast set intersection problem, which is to preprocess a collection of sets in order to efficiently report the intersection of any two sets in the collection. In addition we suggest new solutions…

数据结构与算法 · 计算机科学 2010-03-12 Hagai Cohen , Ely Porat

We present a new class of preconditioned iterative methods for solving linear systems of the form $Ax = b$. Our methods are based on constructing a low-rank Nystr\"om approximation to $A$ using sparse random matrix sketching. This…

数据结构与算法 · 计算机科学 2025-04-14 Michał Dereziński , Christopher Musco , Jiaming Yang

We analyse a generalisation of the Quicksort algorithm, where k uniformly at random chosen pivots are used for partitioning an array of n distinct keys. Specifically, the expected cost of this scheme is obtained, under the assumption of…

数据结构与算法 · 计算机科学 2018-09-05 Vasileios Iliopoulos

Graph isomorphism problem is a known hard problem. In this paper, a novel randomized algorithm is proposed for this problem which is very simple and fast. It solves the graph isomorphism problem with running time O(n^2.373) for any pair of…

组合数学 · 数学 2019-09-25 Ameneh Farhadian

This paper proposes a new variant of Frank-Wolfe (FW), called $k$FW. Standard FW suffers from slow convergence: iterates often zig-zag as update directions oscillate around extreme points of the constraint set. The new variant, $k$FW,…

最优化与控制 · 数学 2021-11-17 Lijun Ding , Jicong Fan , Madeleine Udell