Questions tagged [path]
The path tag has no summary.
29 questions
3
votes
1
answer
344
views
All possible paths passing through a set of nodes
Given a directed unweighted graph and a set of nodes $N$, I have to find all the paths of length at most $L$ passing thru all the nodes. Since I am not enforcing each node to be visited only once, you ...
0
votes
0
answers
81
views
Graph with an exponential number of paths
I am looking at the language $F$ containing all $G,v_0,v_1$ s.t.:
$G$ is undirected
$G=(V,E)$
$v_0,v_1\in V$
$|V|=n$
There are $2^n$ paths between $v_0$ and $v_1$
I would like to prove that $F\notin ...
1
vote
2
answers
169
views
Path Through Graph That Minimizes Node Attributes
I have a directed graph (DAG) containing many nodes, all with various attributes (node attributes not edge attributes). I have a single target (finish) node and a set of source (start) nodes. I want ...
7
votes
3
answers
259
views
Finding a set of edges $E$ such that every $s$-$t$-path contains at least 2 edges from $E$
Given an undirected graph $G$ and two vertices $s$ and $t$, i want to find a minimum set of edges $E$ in $G$ such that every (simple) $s$-$t$-path contains at least 2 edges from $E$.
Is this problem ...
12
votes
1
answer
1k
views
How to find a "short" walk that visits all vertices of a strongly connected directed graph
I am interested in the following algorithmic problem:
Given a strongly connected directed graph $G$, I want a "short" (see below for what I mean by short) walk that starts with an arbitrary ...
2
votes
0
answers
74
views
Are there $r$ pairwise edge-disjoint $k$-sets of internally disjoint $s$-$t$-paths? Complexity
Given an undirected graph, two vertices $s$ and $t$, and two integers $k$ and $r$, then a $k$-set of internally disjoint $s$-$t$-paths is defined to be a set of exactly $k$ $s$-$t$-paths that share no ...
6
votes
0
answers
199
views
Are there $\ell$ edge-disjoint $s$-$t$-paths such that at least $k$ of them are internally disjoint? Complexity
Given an undirected graph, two vertices $s$ and $t$, and two integers $k$,$l$ - what is the complexity of finding $\ell$ edge-disjoint $s$-$t$-paths such that at least $k$ of them are pairwise ...
3
votes
1
answer
83
views
Trajectories with collisions
Say that I have a plasma gun:
It's easy to compute the trajectory of the plasma ray starting from the gun.
However, another ray may come from afar:
As everybody knows, plasma rays are deviated when ...
2
votes
0
answers
106
views
What is the depth distribution of a random binary tree with n nodes?
Assume I generate a random binary tree with a bounded height with $n$ nodes.
For a given key we measure the length of its path (the maximum can be $n-1$). So my Question is what is the distribution of ...
0
votes
1
answer
225
views
Pathfinding in a known maze with step limitations, points of interest and more
I hope this is the correct subpage of SE, if not please direct me to the more appropriate place.
Imagine the following scenario:
You are put into a random but known position inside a given maze. The ...
1
vote
1
answer
186
views
Finding a family of graphs that displays a certain characteristic
I've read that the number of distinct paths in a graph can be exponential in relation to the number of vertices, later I encountered a problem which I spent some time trying to solve on my own.
The ...
2
votes
1
answer
112
views
EvoPathfinding - Stuck in local optimal
I am using a Genetic Algorithm framework to solve a path-finding problem. Specifically, given the following 32x32 maze:
...
3
votes
1
answer
364
views
Show all chains per user
Some time ago I had in one of the big tech interviews the following question that I still don't know how to approach it.
You have a chains of reservations from AirBnb:
...
4
votes
1
answer
655
views
Approximation ratio on (1, 2)-metric Travelling Salesman Problem (TSP)
I encountered a problem, where I am given a (fully-connected) graph within a metric space, where each edge weight is either 1 or 2.
My task is to prove that the following greedy algorithm gives a $\...
0
votes
1
answer
41
views
2VertexDisjointPaths ≤p SimpleCycle
Given the following problems:
2VertexDisjointPaths:
Given: a directed Graph $G$ und vertices $s1, s2, t1, t2$.
Question: Do paths $p1$ from $s1$ to $t1$ and $p2$ from $s2$ to $t2$ exist if $p1$ and $...