| » ASP Competition | |
|
» Login
|
Graph PartitioningProblem descriptionA (v,e,k)-graph partition of an undirected weighted graph G=(V,E,W) where V is a set of vertices, E is a set of edges, and W is a weight function that assigns to each edge in the graph a non-negative integer, is a collection of k disjoint sets of vertices such that the union of the sets in the collection is V and the following conditions hold:
Input formatInput graphs are stored in plain text files, one file for each graph. The
Output formatThe programmers must ensure that, in the answer-sets, predicate "partition" is used ExampleInput: vtx(1). vtx(2). vtx(3). vtx(4). vtx(5). edge(4,5). edge(2,5). edge(2,3). edge(4,3). edge(4,2). edge(1,5). edge(1,4). edge(5,3). edge(1,2). edge(3,1). weight_wtedge(4,5,1). weight_wtedge(2,5,1). weight_ wtedge(2,3,2). weight_wtedge(4,3,2). weight_wtedge(4,2,1). weight_wtedge(1,5,1). weight_wtedge(1,4,1). weight_wtedge(5,3,2). weight_wtedge(1,2,1). weight_wtedge(3,1,1). parts(1). part(2). part(3). vtxbound(3). edgebound(4). Graphical representation of the given graph: Valid Output: partition(1,1). partition(2,1). partition(3,1). partition(4,2). partition(5,3). Partitions are represented by rectangles:
Authors: Gayathri Namasivayam and Miroslaw Truszczynski |