English
Related papers

Related papers: Weighted graph algorithms with Python

200 papers

We propose an optimal algorithm for solving the longest path problem in undirected weighted graphs. By using graph partitioning and dynamic programming, we obtain an algorithm that is significantly faster than other state-of-the-art…

Data Structures and Algorithms · Computer Science 2017-02-15 Tomas Balyo , Kai Fieger , Christian Schulz

A solution of the $k$ shortest paths problem may output paths that are identical up to a single edge. On the other hand, a solution of the $k$ independent shortest paths problem consists of paths that share neither an edge nor an…

Data Structures and Algorithms · Computer Science 2022-11-08 Yefim Dinitz , Shlomi Dolev , Manish Kumar , Baruch Schieber

This paper studies graph-based active learning, where the goal is to reconstruct a binary signal defined on the nodes of a weighted graph, by sampling it on a small subset of the nodes. A new sampling algorithm is proposed, which…

Machine Learning · Computer Science 2016-05-19 Eyal En Gad , Akshay Gadde , A. Salman Avestimehr , Antonio Ortega

We introduce the notion of balance for directed graphs: a weighted directed graph is $\alpha$-balanced if for every cut $S \subseteq V$, the total weight of edges going from $S$ to $V\setminus S$ is within factor $\alpha$ of the total…

Data Structures and Algorithms · Computer Science 2016-03-31 Alina Ene , Gary Miller , Jakub Pachocki , Aaron Sidford

Let $G$ be a unit disk graph in the plane defined by $n$ disks whose positions are known. For the case when $G$ is unweighted, we give a simple algorithm to compute a shortest path tree from a given source in $O(n\log n)$ time. For the case…

Computational Geometry · Computer Science 2014-11-19 Sergio Cabello , Miha Jejčič

Suppose we are given a bipartite graph that admits a perfect matching and an adversary may delete any edge from the graph with the intention of destroying all perfect matchings. We consider the task of adding a minimum cost edge-set to the…

Data Structures and Algorithms · Computer Science 2018-12-06 Felix Hommelsheim , Moritz Mühlenthaler , Oliver Schaudt

Simplifying graphs is a very applicable problem in numerous domains, especially in computational geometry. Given a geometric graph and a threshold, the minimum-complexity graph simplification asks for computing an alternative graph of…

Computational Geometry · Computer Science 2021-11-05 Omrit Filtser , Majid Mirzanezhad , Carola Wenk

We survey $k$-best enumeration problems and the algorithms for solving them, including in particular the problems of finding the $k$ shortest paths, $k$ smallest spanning trees, and $k$ best matchings in weighted graphs.

Data Structures and Algorithms · Computer Science 2014-12-17 David Eppstein

Consider a finite directed graph without cycles in which the arrows are weighted. We present an algorithm for the computation of a new distance, called path-length-weighted distance, which has proven useful for graph analysis in the context…

Data Structures and Algorithms · Computer Science 2024-11-05 R. Arnau , J. M. Calabuig , L. M. García Raffi , E. A. Sánchez Pérez , S. Sanjuan

In this paper we study a variant of the shortest path problem in graphs: given a weighted graph G and vertices s and t, and given a set X of forbidden paths in G, find a shortest s-t path P such that no path in X is a subpath of P. Path P…

Discrete Mathematics · Computer Science 2009-02-11 Mustaq Ahmed , Anna Lubiw

Graph Sampling provides an efficient yet inexpensive solution for analyzing large graphs. While extracting small representative subgraphs from large graphs, the challenge is to capture the properties of the original graph. Several sampling…

Data Structures and Algorithms · Computer Science 2019-10-21 Muhammad Irfan Yousuf , Raheel Anwar

For an edge-weighted connected undirected graph, the minimum $k$-way cut problem is to find a subset of edges of minimum total weight whose removal separates the graph into $k$ connected components. The problem is NP-hard when $k$ is part…

Data Structures and Algorithms · Computer Science 2008-11-25 Mingyu Xiao , Leizhen Cai , Andrew C. Yao

Graphs have become a key tool when modeling and solving problems in different areas. The Floyd-Warshall (FW) algorithm computes the shortest path between all pairs of vertices in a graph and is employed in areas like communication…

Distributed, Parallel, and Cluster Computing · Computer Science 2024-07-02 Sergio Calderón , Enzo Rucci , Franco Chichizola

The execution of graph algorithms using neural networks has recently attracted significant interest due to promising empirical progress. This motivates further understanding of how neural networks can replicate reasoning steps with…

Machine Learning · Computer Science 2024-10-03 Artur Back de Luca , Kimon Fountoulakis

Finding optimal matchings in dense graphs is of general interest and of particular importance in social, transportation and biological networks. While developing optimal solutions for various matching problems is important, the running…

Data Structures and Algorithms · Computer Science 2020-11-16 Nitish K. Panigrahy , Prithwish Basu , Don Towsley

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…

Data Structures and Algorithms · Computer Science 2013-05-13 Sergio Cabello , Erin Wolf Chambers , Jeff Erickson

This paper presents an adaptive amoeba algorithm to address the shortest path tree (SPT) problem in dynamic graphs. In dynamic graphs, the edge weight updates consists of three categories: edge weight increases, edge weight decreases, the…

Neural and Evolutionary Computing · Computer Science 2013-11-05 Xiaoge Zhang , Qi Liu , Yong Hu , Felix T. S. Chan , Sankaran Mahadevan , Zili Zhang , Yong Deng

Let $G$ be an edge-weighted directed graph with $n$ vertices embedded on an orientable surface of genus $g$. We describe a simple deterministic lexicographic perturbation scheme that guarantees uniqueness of minimum-cost flows and shortest…

Data Structures and Algorithms · Computer Science 2018-04-04 Jeff Erickson , Kyle Fox , Luvsandondov Lkhamsuren

We study the construction of the minimum cost spanning geometric graph of a given rooted point set $P$ where each point of $P$ is connected to the root by a path that satisfies a given property. We focus on two properties, namely the…

Computational Geometry · Computer Science 2017-01-27 Konstantinos Mastakas , Antonios Symvonis

We consider the following stochastic matching problem on both weighted and unweighted graphs: A graph $G(V, E)$ along with a parameter $p \in (0, 1)$ is given in the input. Each edge of $G$ is realized independently with probability $p$.…

Data Structures and Algorithms · Computer Science 2018-11-09 Soheil Behnezhad , Alireza Farhadi , MohammadTaghi Hajiaghayi , Nima Reyhani
‹ Prev 1 8 9 10 Next ›