| Hongcheng's profileTricksBlogListsNetwork | Help |
|
September 30 algorithm and logarithmPerson: What do you do? Me: I am a computer science professor. Person: I have a problem with my PC, can you fix it? Me: No, I don’t think I can do that. Person: You will not fix my PC? Me: I cannot fix my PC, let alone yours. Person: Then what exactly do you do? Me: I study algorithms. Person: Oh, I know that. Me: Really? Person: Yes! I learnt logarithms in high school. ---------------------------------------------------------------------------- Come from here. September 29 Solve a form of 0-1 programming using the minimum-cut modelThe following generic 0-1 programming form can be solved by finding a minimum-cut of a bipartite directed graph. Max{Sigma{A(i)*X(i)}+Sigma{B(i)*Y(i)}-Sigma{C(i,j)*X(i)*Y(j)}} (C(i,j)>0). To construct the network, first construct vertices one source S, one destination T, the left vertex set {X(1),X(2),...} and the right vertex set {Y(1),Y(2),...}, and add directed edges as the following rules:
|
|
|