next up previous contents index CD CD Algorithms
Next: String Matching Up: Set and String Problems Previous: Set Cover

Set Packing

  

  figure21483

Input description: A set of subsets tex2html_wrap_inline30684 of the universal set tex2html_wrap_inline30686 .

Problem description: What is the largest number of mutually disjoint subsets from S?

Discussion: Set packing problems arise in partitioning applications, where we need to partition elements under strong constraints on what is an allowable partition. The key feature of packing problems is that no elements are permitted to be covered by more than one set. Consider the problem of finding the maximum independent set in a graph G, discussed in Section gif. We seek a large subset of vertices such that each edge is adjacent to at most one of the selected vertices. To model this as set packing, let the universal set consist of all edges of G, and subset tex2html_wrap_inline30688 consist of all edges incident on vertex tex2html_wrap_inline30690 . Any set packing corresponds to a set of vertices with no edge in common, in other words, an independent set.   

Scheduling airline flight crews to airplanes is another application of set packing. Each airplane in the fleet needs to have a crew assigned to it, consisting of a pilot, copilot, and navigator. There are constraints on the composition of possible crews, based on their training to fly different types of aircraft, as well as any personality conflicts. Given all possible crew and plane combinations, each represented by a subset of items, we need an assignment such that each plane and each person is in exactly one chosen combination. After all, the same person cannot be on two different planes, and every plane needs a crew. We need a perfect packing given the subset constraints.     

Set packing is used here to represent a bunch of problems on sets, all of which are NP-complete and all of which are quite similar:  

The right heuristics for set packing are greedy, and similar to those of set cover (see Section gif). If we seek a packing with many sets, then we repeatedly select the smallest subset, delete all subsets from S that clash with it, and repeat. If we seek a packing with few subsets, we do the same but always pick the largest possible subset. As usual, augmenting this approach with some exhaustive search or randomization (in the form of simulated annealing) is likely to yield better packings at the cost of additional computation.   

Implementations: Since set cover is a more popular and more tractable problem than set packing, it might be easier to find an appropriate implementation to solve the cover problem. Many such implementations should be readily modifiable to support certain packing constraints.

Pascal implementations of an exhaustive search algorithm for set packing, as well as heuristics for set cover, appear in [SDK83]. See Section gif for details on ftp-ing these codes.  

Notes: An excellent exposition on algorithms and reduction rules for set packing is presented in [SDK83], including the airplane scheduling application discussed above. Survey articles on set packing include [BP76].

Related Problems: Independent set (see page gif), set cover (see page gif).    


next up previous contents index CD CD Algorithms
Next: String Matching Up: Set and String Problems Previous: Set Cover

Algorithms
Mon Jun 2 23:33:50 EDT 1997