Content deleted Content added
m →References: WP:CHECKWIKI error fixes using AWB (10381) |
m Moving Category:Algorithms in graph theory to Category:Graph algorithms per Wikipedia:Categories for discussion/Log/2024 October 4 |
||
(12 intermediate revisions by 12 users not shown) | |||
Line 1:
{{Short description|Graph theory algorithms}}
The '''Kleitman–Wang algorithms''' are two different algorithms in [[graph theory]] solving the [[digraph realization problem]], i.e. the question if there exists for a finite [[List (abstract data type)|list]] of nonnegative [[integer]] pairs a [[directed graph|simple directed graph]] such that its [[
==Kleitman–Wang algorithm (arbitrary choice of pairs)==
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),\dots,(a_{b_i-1}-1,b_{b_i-1}),(a_{b_i},0),(a_{b_i+1}
Note that the pair <math>(a_i,b_i)</math> is arbitrarily with the exception of pairs <math>(a_j,0)</math>.
==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
==See also==
Line 26 ⟶ 27:
| volume = 6
| year = 1973
| pages = 79–88
| doi=10.1016/0012-365x(73)90037-x| doi-access = free
}}
{{reflist}}
{{DEFAULTSORT:Kleitman-Wang algorithms}}
[[Category:
|