Hypergraph models and algorithms for the assembly problem