File mosaic.in

The file mosaic.in has the following structure: The first line contains the number of segments in the mosaic structure. The second line contains the breakpoints, where the number of breakpoints is one less than the number of segments (the beginning and the end of the sequence are not counted as breakpoints). Finally, the last row contains the topologies, represented by an integer between 0 and 2. Note that a topology refers to the segment to the left of the corresponding breakpoint.

Example:

4
202 507 538
2 0 1 0

This specifies a mosaic structure with following four segments:

Segment Topology
1-2012
202-5060
507-5371
538-end0

Obviously, end must be greater than 538.


Back to the beginning of this documentation.