中文
相关论文

相关论文: A Simple Solution to the Level-Ancestor Problem

200 篇论文

A data structure, called a biased range tree, is presented that preprocesses a set S of n points in R^2 and a query distribution D for 2-sided orthogonal range counting queries. The expected query time for this data structure, when queries…

计算几何 · 计算机科学 2008-06-18 Vida Dujmovic , John Howat , Pat Morin

We present two improved algorithms for weighted discrete $p$-center problem for tree networks with $n$ vertices. One of our proposed algorithms runs in $O(n \log n + p \log^2 n \log(n/p))$ time. For all values of $p$, our algorithm thus…

数据结构与算法 · 计算机科学 2016-04-27 Aritra Banik , Binay Bhattacharya , Sandip Das , Tsunehiko Kameda , Zhao Song

In this work, we develop the low-space Massively Parallel Computation (MPC) complexity landscape for a family of fundamental graph problems on trees. We present a general method that solves most locally checkable labeling (LCL) problems…

分布式、并行与集群计算 · 计算机科学 2022-03-04 Sebastian Brandt , Rustam Latypov , Jara Uitto

The lifted dynamic junction tree algorithm (LDJT) efficiently answers filtering and prediction queries for probabilistic relational temporal models by building and then reusing a first-order cluster representation of a knowledge base for…

人工智能 · 计算机科学 2018-07-05 Marcel Gehrke , Tanya Braun , Ralf Möller

It has recently been shown that starting with a classical query algorithm (decision tree) and a guessing algorithm that tries to predict the query answers, we can design a quantum algorithm with query complexity $O(\sqrt{GT})$ where $T$ is…

量子物理 · 物理学 2022-10-18 Salman Beigi , Leila Taghavi , Artin Tajdini

We revisit the sample and computational complexity of completing a rank-1 tensor in $\otimes_{i=1}^{N} \mathbb{R}^{d}$, given a uniformly sampled subset of its entries. We present a characterization of the problem (i.e. nonzero entries)…

数据结构与算法 · 计算机科学 2024-08-21 Alejandro Gomez-Leos , Oscar López

Avraham et al. [AFK+15] presented an alternative approach to parametric search, called \emph{bifurcation}, that performs faster under certain circumstances. Intuitively, when the underlying decider execution can be rolled back cheaply and…

计算几何 · 计算机科学 2025-10-03 Sariel Har-Peled

A flow graph $G=(V,E,s)$ is a directed graph with a distinguished start vertex $s$. The dominator tree $D$ of $G$ is a tree rooted at $s$, such that a vertex $v$ is an ancestor of a vertex $w$ if and only if all paths from $s$ to $w$…

数据结构与算法 · 计算机科学 2016-08-24 Loukas Georgiadis , Aikaterini Karanasiou , Giannis Konstantinos , Luigi Laura

We consider a fundamental problem in data structures, static predecessor searching: Given a subset S of size n from the universe [m], store S so that queries of the form "What is the predecessor of x in S?" can be answered efficiently. We…

计算复杂性 · 计算机科学 2007-05-23 Pranab Sen , S. Venkatesh

Path partition problems on trees have found various applications. In this paper, we present an $O(n \log n)$ time algorithm for solving the following variant of path partition problem: given a rooted tree of $n$ nodes $1, \ldots, n$, where…

数据结构与算法 · 计算机科学 2025-03-17 Ruixi Luo , Taikun Zhu , Kai Jin

Consider the following generalization of the classic binary search problem: a searcher is required to find a hidden vertex $x$ in a tree $T$. To do so, they iteratively perform queries to an oracle, each about a chosen vertex $v$. After…

数据结构与算法 · 计算机科学 2025-10-01 Michał Szyfelbein

We consider the NP-hard Tree Containment problem that has important applications in phylogenetics. The problem asks if a given leaf-labeled network contains a subdivision of a given leaf-labeled tree. We develop a fast algorithm for the…

计算复杂性 · 计算机科学 2017-02-22 Mathias Weller

This paper proposes a new algorithm for reducing Approximate Nearest Neighbor problem to Approximate Near Neighbor problem. The advantage of this algorithm is that it achieves O(log n) query time. As a reduction problem, the uery time…

数据结构与算法 · 计算机科学 2018-09-27 Hengzhao Ma , Jianzhong Li

Updating and querying on a range is a classical algorithmic problem with a multitude of applications. The Segment Tree data structure is particularly notable in handling the range query and update operations. A Segment Tree divides the…

数据结构与算法 · 计算机科学 2020-12-08 Nabil Ibtehaz , M. Kaykobad , M. Sohel Rahman

We study a new variant of the string matching problem called cross-document string matching, which is the problem of indexing a collection of documents to support an efficient search for a pattern in a selected document, where the pattern…

数据结构与算法 · 计算机科学 2012-06-21 Gregory Kucherov , Yakov Nekrich , Tatiana Starikovskaya

We improve the complexity of solving parity games (with priorities in vertices) for $d={\omega}(\log n)$ by a factor of ${\theta}(d^2)$: the best complexity known to date was $O(mdn^{1.45+\log_2(d/\log_2(n))})$, while we obtain…

计算机科学与博弈论 · 计算机科学 2023-05-02 Paweł Parys , Aleksander Wiącek

The ancestral sequence reconstruction problem is the inference, back in time, of the properties of common sequence ancestors from measured properties of contemporary populations. Standard algorithms for this problem assume independent…

无序系统与神经网络 · 物理学 2022-02-09 Edwin Rodríguez Horta , Alejandro Lage-Castellanos , Roberto Mulet

In the Range Minimum Query (RMQ) problem, we are given an array $A$ of $n$ numbers and we are asked to answer queries of the following type: for indices $i$ and $j$ between $0$ and $n-1$, query $\text{RMQ}_A(i,j)$ returns the index of a…

数据结构与算法 · 计算机科学 2017-05-15 Mai Alzamel , Panagiotis Charalampopoulos , Costas S. Iliopoulos , Solon P. Pissis

A seed in a word is a relaxed version of a period in which the occurrences of the repeating subword may overlap. We show a linear-time algorithm computing a linear-size representation of all the seeds of a word (the number of seeds might be…

数据结构与算法 · 计算机科学 2019-03-15 Tomasz Kociumaka , Marcin Kubica , Jakub Radoszewski , Wojciech Rytter , Tomasz Walen

In the field of algorithmic analysis, one of the more well-known exercises is the subset sum problem. That is, given a set of integers, determine whether one or more integers in the set can sum to a target value. Aside from the brute-force…

数据结构与算法 · 计算机科学 2016-05-09 Daniel Shea