Distances in and Layering of a DAG

11/09/2017
by   Bhadrachalam Chitturi, et al.
0

The diameter of an undirected unweighted graph G=(V,E) is the maximum value of the distance from any vertex u to another vertex v for u,v ∈ V where distance i.e. d(u,v) is the length of the shortest path from u to v in G. DAG, is a directed graph without a cycle. We denote the diameter of an unweighted DAG G=(V,E) by δ (G). The stretch of a DAG G is the length of longest path from u to v in G, for all choices of (u, v) ∈ V denoted by Δ (G). The diameter of an undirected graph can be computed in O(|V|(|V|+|E|)) time by executing breadth first search |V| times. We show that stretch and diameter of a DAG can be computed in O(|V|+|E|) time and O(|V||E|) time respectively. A DAG is balanced if and only if a consistent assignment of level numbers to all vertices is possible. Layering refers to such an assignment. A balanced DAG is defined. An efficient algorithm that either detects whether a given DAG is unbalanced or layers it otherwise is designed with a running time of O(|V|+|E|). Key words: Diameter, directed acyclic graph, longest directed path, graph algorithms, complexity.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/10/2022

Detours in Directed Graphs

We study two "above guarantee" versions of the classical Longest Path pr...
research
02/27/2018

Parameterized Complexity of Diameter

Diameter--the task of computing the length of a longest shortest path---...
research
01/02/2023

Parameterized Lower Bounds for Problems in P via Fine-Grained Cross-Compositions

We provide a general framework to exclude parameterized running times of...
research
07/13/2023

Redicolouring digraphs: directed treewidth and cycle-degeneracy

Given a digraph D=(V,A) on n vertices and a vertex v∈ V, the cycle-degre...
research
05/18/2021

On Oriented Diameter of (n, k)-Star Graphs

Assignment of one of the two possible directions to every edge of an und...
research
11/23/2019

Oriented Diameter of Star Graphs

An orientation of an undirected graph G is an assignment of exactly one...
research
01/07/2021

4 vs 7 sparse undirected unweighted Diameter is SETH-hard at time n^4/3

We show, assuming the Strong Exponential Time Hypothesis, that for every...

Please sign up or login with your details

Forgot password? Click here to reset