In the undirected graph shown below, the numbers attached to the edges represent their lengths. The edge length x between nodes a and b is a positive real number. Among all paths between two nodes s and t, those with the minimum total edge length are called the shortest paths between s and t. The total edge length in a shortest path is referred to as the distance between s and t. A path is represented as a sequence of nodes in which no node appears more than once.
(1) Derive the distance between b and j, and identify all shortest paths, each represented as a sequence of nodes.
(2) Derive the condition on x under which b is included in all shortest paths between a and j.
Given a set U={1,2,…,n} and a set S={S1,S2,…,Sm} where each Si is a subset of U, the set cover problem is to identify a set C={Sc1,Sc2,…,Sck}⊆S with the minimum k such that Sc1∪Sc2∪⋯∪Sck=U holds. Note that n and m are positive integers and it is assumed that S1∪S2∪⋯∪Sm=U holds. The following pseudo-code describes a greedy algorithm that computes an approximate solution to this problem.
Note that #(X), max(X), and min(X) denote the number of elements, the maximum element, and the minimum element of a set X, respectively. Note also that X∖Y denotes the set difference, which is the set obtained by deleting the elements belonging to both X and Y from X. For example, {1,3,4,5}∖{2,3,5}={1,4} holds.
This algorithm may output different solutions even for the same S, depending on the ordering of their elements. For example, suppose that U={1,2,3,4,5} and S={{1,3,5},{2,4},{2,3,5}}. This algorithm outputs C={{1,3,5},{2,4}} if S1={1,3,5},S2={2,4}, and S3={2,3,5}, whereas it outputs C={{2,3,5},{2,4},{1,3,5}} if S1={2,3,5},S2={2,4}, and S3={1,3,5}.
When considering all possible orderings of the elements of S (i.e., all permutations of the elements of S) for given U and S, among all solutions C outputted by this algorithm, let Amin(U,S) denote the cardinality of C with the smallest cardinality, and let Amax(U,S) denote the cardinality of C with the largest cardinality. Note that for the case of (U,S) given above, Amin(U,S)=2 and Amax(U,S)=3 hold. Answer the following questions where reasons must be given for all answers.
(1) Let U={1,2,…,10} and S={{i,i+1}∣i=1,2,…,9}. Derive Amin(U,S) and Amax(U,S).
(2) Let U={1,2,…,100} and S={{i,j}∣all integers i,j satisfying 1≤i<j≤100}. Derive Amin(U,S) and Amax(U,S).
(3) Let U={1,2,…,63} and S={{i,2i},{i,2i+1}∣i=1,2,…,31}. Derive Amin(U,S).