Chapter 5: Q26E (page 165)
Graphs with prescribed degree sequences. Given a list of n positive integers , we want to efficiently determine whether there exists an undirected graph whose nodes have degrees precisely . That is, if , then the degree of should be exactly . We call the degree sequence of . This graph should not contain self-loops (edges with both endpoints equal to the same node) or multiple edges between the same pair of nodes.
(a) Give an example of where all the and is even, but for which no graph with degree sequence exists.
(b) Suppose that and that there exists a graph with degree sequence . We want to show that there must exist a graph that has this degree sequence and where in addition the neighbors of are . The idea is to gradually transform into a graph with the desired additional property.
i. Suppose the neighbors of in are not . Show that there exists and and such that and
ii. Specify the changes you would make to to obtain a new graph with the same degree sequence as and where .
iii. Now show that there must be a graph with the given degree sequence but in which has neighbors .
c) Using the result from part (b), describe an algorithm that on input (not necessarily sorted) decides whether there exists a graph with this degree sequence. Your algorithm should run in time polynomial in and in .
Short Answer
a. Example is given.
b. (i) The given can be proved.
(ii) The new graph has same degree as sequence of graph .
(iii) The execution process will always end, because degree sequence is finite.
c. The above algorithm's concurrent execution in terms of and is .