#hitachi20171a. [hitachi2017_1_a]Problem 1
[hitachi2017_1_a]Problem 1
Problem
In what follows assume we are given two graphs. The first graph consists of a set of vertices and edges to which weights shall be assigned. The second graph also consists of a set of vertices and edges and shall be a square King's Graph, with vertex labels as illustrated in the figure below. Under the constraints that we explain below, assign each vertex in to exactly one vertex in such that the following score becomes as high as possible.
Score
For a given output of a source code in which each vertex in the graph is assigned to exactly one vertex in the graph , the score of the output is calculated as follows:
- The score is obtained by adding the weight of each edge of the graph connecting the vertices , if the corresponding vertices in the graph are connected by an edge.
- To evaluate your total score, we will run your algorithm on a total of input graphs (including 18 random graphs and 12 complete graphs) and add up the corresponding score.*