Content deleted Content added
←Created page with '---- The '''Kleitman-Wang algorithms''' are two different algorithms in graph theory solving the digraph realization problem, i.e. the question if there...' |
m Moving Category:Algorithms in graph theory to Category:Graph algorithms per Wikipedia:Categories for discussion/Log/2024 October 4 |
||
(19 intermediate revisions by 16 users not shown) | |||
Line 1:
{{Short description|Graph theory algorithms}}
The '''
==
The algorithm is based on the following theorem.
Let <math>S=((a_1,b_1),\dots,(a_n,b_n))</math> be a finite list of nonnegative integers that is in [[nonincreasing]] [[lexicographical order]] and let <math>(a_i,b_i)</math> be a pair of nonnegative integers with <math>b_i >0</math>. List <math>S</math> is digraphic if and only if the finite [[Enumeration|list]] <math>S'=((a_1-1,b_1),\
Note that the pair <math>(a_i,b_i)</math> is arbitrarily with the exception of pairs <math>(a_j,0)</math>.
▲Note that the pair <math>(a_i,b_i)</math> is arbitrarily with the exception of pairs <math>(a_j,0)</math>. Is the given list <math>S</math> digraphic then the theorem will be applied at most <math>n</math> times setting in each further step <math>S:=S'</math>. This process ends when the whole list <math>S'</math> consists of <math>(0,0)</math> pairs. In each step of the algorithm one constructs the [[directed graph|arcs]] of a digraph with vertices <math>v_1,\cdots,v_n</math>, i.e. if it is possible to reduce the list <math>S</math> to <math>S'</math>, then we add arcs <math>(v_i,v_1),(v_i,v_2),\cdots,(v_{i},v_{b_i-1}),(v_i,v_{b_i+1})</math>. When the list <math>S</math> cannot be reduced to a list <math>S'</math> of nonnegative integer pairs in any step of this approach, the theorem proves that the list <math>S</math> from the beginning is not digraphic.
▲==Kleitman-Wang algorithm (maximum choice of a pair)==
The algorithm is based on the following theorem.
Let <math>S=((a_1,b_1),\dots,(a_n,b_n))</math> be a finite list of nonnegative integers
Note that the list <math>S</math> must not be an lexicographical order as in the first version. Is the given list <math>S</math> digraphic then the theorem will be applied at most <math>n</math> times setting in each further step <math>S:=S'</math>. This process ends when the whole list <math>S'</math> consists of <math>(0,0)</math> pairs. In each step of the algorithm one constructs the [[directed graph|arcs]] of a digraph with vertices <math>v_1,\cdots,v_n</math>, i.e. if it is possible to reduce the list <math>S</math> to <math>S'</math>, then we add arcs <math>(v_i,v_1),(v_i,v_2),\cdots,(v_{i},v_{b_i-1}),(v_i,v_{b_i+1})</math>. When the list <math>S</math> cannot be reduced to a list <math>S'</math> of nonnegative integer pairs in any step of this approach, the theorem proves that the list <math>S</math> from the beginning is not digraphic.▼
▲Note that the list <math>S</math> must not be
==See also==
*[[
==References==
*{{citation
| last1 = Kleitman | first1 = D. J.
| last2 = Wang | first2 = D. L.
| title = Algorithms for constructing graphs and digraphs with given valences and factors
| journal = Discrete Mathematics
| volume = 6
| year = 1973
| pages =
| doi=10.1016/0012-365x(73)90037-x| doi-access = free
}}
{{reflist}}
{{DEFAULTSORT:Kleitman-Wang algorithms}}
[[Category:Graph algorithms]]
|