System Partitioning Operations

HI ! can someone please help me with this assignment?!
the assignment is about developing a system partitioning program (in C++) to partition operations to minimize the interface cost. The program partitions a set of states with weighted interface links.
The program will partition the operations into 2 partitions and 3 partitions.
Format of
Input File (in.txt):
(A,B)=1
(A,F)=10
(F,C)=15
(E,D)=4
(B,E)=7
(F,B)=2



Format of Output file (out.txt):
Partition=2
Partition_1 = {A, F, C}
Partition_2 = {B, D, E}
Cost=3
Partition=3
Partition_1 = {A, F, C}
Partition_2 = {B, E}
Partition_3 = {D}
Cost=7


thank you
Topic archived. No new replies allowed.