English
Related papers

Related papers: Fast Breadth-First Search in Still Less Space

200 papers

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…

Data Structures and Algorithms · Computer Science 2016-09-07 Binay Bhattacharya , Mordecai J. Golin , Yuya Higashikawa , Tsunehiko Kameda , Naoki Katoh

We show that in the quantum query model the complexity of detecting a triangle in an undirected graph on $n$ nodes can be done using $O(n^{1+{3\over 7}}\log^{2}n)$ quantum queries. The same complexity bound applies for outputting the…

Quantum Physics · Physics 2007-05-23 Mario Szegedy

We show that the VC-dimension of a graph can be computed in time $n^{\log d+1} d^{O(d)}$, where $d$ is the degeneracy of the input graph. The core idea of our algorithm is a data structure to efficiently query the number of vertices that…

Data Structures and Algorithms · Computer Science 2023-08-21 Pål Grønås Drange , Patrick Greaves , Irene Muzi , Felix Reidl

We introduce a general method for obtaining fixed-parameter algorithms for problems about finding paths in undirected graphs, where the length of the path could be unbounded in the parameter. The first application of our method is as…

Data Structures and Algorithms · Computer Science 2022-07-18 Fedor V. Fomin , Petr A. Golovach , Tuukka Korhonen , Kirill Simonov , Giannos Stamoulis

Let $P$ be a simple polygon with $n$ vertices, and let $A$ be a set of $m$ points or line segments inside $P$. We develop data structures that can efficiently count the number of objects from $A$ that are visible to a query point or a query…

Computational Geometry · Computer Science 2022-01-11 Kevin Buchin , Bram Custers , Ivor van der Hoog , Maarten Löffler , Aleksandr Popov , Marcel Roeloffzen , Frank Staals

We present an algorithm for a fault tolerant Depth First Search (DFS) Tree in an undirected graph. This algorithm is drastically simpler than the current state-of-the-art algorithms for this problem, uses optimal space and optimal…

Data Structures and Algorithms · Computer Science 2019-03-28 Surender Baswana , Shiv Kumar Gupta , Ayush Tulsyan

In this paper, we use Breadth-first search algorithm to determine the distance matrix of multiplicative circulant graph of order power of two and three. As a consequence, the diameter of the graphs were determined. We also give their…

Combinatorics · Mathematics 2020-10-06 John Rafael M. Antalan , Francis Joseph H. Campena

Given a sequence of integers, we want to find a longest increasing subsequence of the sequence. It is known that this problem can be solved in $O(n \log n)$ time and space. Our goal in this paper is to reduce the space consumption while…

Data Structures and Algorithms · Computer Science 2017-12-27 Masashi Kiyomi , Hirotaka Ono , Yota Otachi , Pascal Schweitzer , Jun Tarui

On a GPU cluster, the ratio of high computing power to communication bandwidth makes scaling breadth-first search (BFS) on a scale-free graph extremely challenging. By separating high and low out-degree vertices, we present an…

Distributed, Parallel, and Cluster Computing · Computer Science 2018-04-06 Yuechao Pan , Roger Pearce , John D. Owens

Quantum walk has been successfully used to search for targets on graphs with vertices identified as the elements of a database. This spacial search on a two-dimensional periodic grid takes $\mathcal{O}\left(\sqrt{N\log N}\right)$ oracle…

Quantum Physics · Physics 2025-03-07 Pulak Ranjan Giri

Complex networks have become increasingly popular for modeling various real-world phenomena. Realistic generative network models are important in this context as they avoid privacy concerns of real data and simplify complex network research…

Data Structures and Algorithms · Computer Science 2015-04-24 Moritz von Looz , Christian L. Staudt , Henning Meyerhenke , Roman Prutkin

We revisit the complexity of building, given a two-dimensional string of size $n$, an indexing structure that allows locating all $k$ occurrences of a two-dimensional pattern of size $m$. While a structure of size $\mathcal{O}(n)$ with…

Data Structures and Algorithms · Computer Science 2025-08-26 Paweł Gawrychowski , Adam Górkiewicz

In a finite undirected simple graph, a {\it chordless cycle} is an induced subgraph which is a cycle. We propose two algorithms to enumerate all chordless cycles of such a graph. Compared to other similar algorithms, the proposed algorithms…

Data Structures and Algorithms · Computer Science 2014-12-01 Elisângela Silva Dias , Diane Castonguay , Humberto Longo , Walid Abdala Rfaei Jradi

Although Dijkstra's algorithm has near-optimal time complexity for the problem of finding a shortest path from a given vertex $s$ to a given vertex $t$, in practice other algorithms are often superior on huge graphs. A prominent example is…

Data Structures and Algorithms · Computer Science 2025-06-16 Bernhard Haeupler , Richard Hladík , Vaclav Rozhon , Robert E. Tarjan , Jakub Tětek

We study the 2-Disjoint Shortest Paths (2-DSP) problem: given a directed weighted graph and two terminal pairs $(s_1,t_1)$ and $(s_2,t_2)$, decide whether there exist vertex-disjoint shortest paths between each pair. Building on recent…

Data Structures and Algorithms · Computer Science 2025-10-09 Keerti Choudhary , Amit Kumar , Lakshay Saggi

Recently we presented the first algorithm for maintaining the set of nodes reachable from a source node in a directed graph that is modified by edge deletions with $o(mn)$ total update time, where $m$ is the number of edges and $n$ is the…

Data Structures and Algorithms · Computer Science 2016-12-13 Monika Henzinger , Sebastian Krinninger , Danupon Nanongkai

Let $P$ be a path graph of $n$ vertices embedded in a metric space. We consider the problem of adding a new edge to $P$ to minimize the radius of the resulting graph. Previously, a similar problem for minimizing the diameter of the graph…

Data Structures and Algorithms · Computer Science 2019-04-30 Christopher Johnson , Haitao Wang

Various applications of graphs, in particular applications related to finding shortest paths, naturally get inputs with real weights on the edges. However, for algorithmic or visualization reasons, inputs with integer weights would often be…

Computational Complexity · Computer Science 2019-05-22 Herman Haverkort , David Kübel , Elmar Langetepe

Although there are very algorithms for embedding graphs on unbounded grids, only few results on embedding or drawing graphs on restricted grids has been published. In this work, we consider the problem of embedding paths and cycles on grid…

Discrete Mathematics · Computer Science 2014-10-10 Asghar Asgharian Sardroud , Alireza Bagheri

Inspired by a width invariant defined on permutations by Guillemot and Marx [SODA '14], we introduce the notion of twin-width on graphs and on matrices. Proper minor-closed classes, bounded rank-width graphs, map graphs, $K_t$-free unit…

Data Structures and Algorithms · Computer Science 2021-10-26 Édouard Bonnet , Eun Jung Kim , Stéphan Thomassé , Rémi Watrigant