Network vulnerability refers to how much the network performance reduces in various cases of disruptions, such as natural disasters, element failures, or adversarial attacks. A network is frequently represented as a graph, in which the vertices and edges correspond to nodes and links, respectively. So the terms network and graph are used interchangeably here. The connectivity, which is defined to be the minimum number of vertices whose deletion results in a disconnected graph or a one-vertex graph, is recognized as the most important measure to evaluate the vulnerability of a network. Nonetheless, the connectivity only partly reflects the resistance of a graph to the deletion of vertices. Accordingly, there have been many studies proposing other metrics to account for the network vulnerability, among which the toughness and the scattering number appear to be the most popular. The underlying notion of the toughness and scattering number is the maximum number of connected components resulting from removing k vertices from a graph. Let ܿ
)
denote the maximum number of connected components obtained by removing exactly k vertices from a graph G .It is unfortunate that given a graph G and a positive integer k, the problem of determining ܿ
)
is computationally intractable.
For some graph classes like interval graphs, however, ܿ
)
can be computed in polynomial time. An interval graph is the intersection graph of a family of (closed) intervals on the real line, where two vertices are connected with an edge if and only if their corresponding intervals intersect. The family is usually called an interval representation for the graph. See Figure E.1 for an example of an interval graph and its interval representation.
Given an interval representation of an interval graph G with n vertices, your job is to write an efficient running program for computing
)
for all k included in {0, 1, … , n − 1}. If the interval representation shown in Figure E.1(b), for example, is given, then ܿ
%2Cc_1(G)%2Cc_2(G)%2Cc_3(G)%2Cc_4(G)%2Cc_5(G)%2Cc_6(G)%2Cc_7(G))
are 1,1,1,2,2,3,2,1 respectively.