Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Windows Develop CSharp

Mincover

  • Category : CSharp
  • Tags :
  • Update : 2012-11-26
  • Size : 212kb
  • Downloaded :0次
  • Author :Fay
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
Problem description 给定一个赋权无向图G=(V,E),每个顶点v∈V都有一个权值w(v)。如果U包含于V,且对于(u,v)∈E 有u∈U 且v∈V-U,则有v∈K.如:U = {1}, 若有边(1,2), 则有2属于K. 若有集合U包含于V使得U+ K = V, 就称U 为图G 的一个顶点覆盖。G 的最小权顶点覆盖是指G 中所含顶点权之和最小的顶点覆盖。 Input 输入数据。第1 行有2 个正整数n 和m,表示给定的图G 有n 个顶点和m条边,顶点编号为1,2,…,n。第2 行有n个正整数表示n个顶点的权。接下来的m行中,每行有2 个正整数u,v,表示图G 的一条边(u,v)。 Output 将计算出的最小权顶点覆盖的顶点权之和输出。 Sample Input 7 7 1 100 1 1 1 100 10 1 6 2 4 2 5 3 6 4 5 4 6 6 7 Sample Output 13
Packet file list
(Preview for download)
最小权顶点覆盖问题\Debug\input.txt
..................\.....\MinCover.exe
..................\.....\MinCover.obj
..................\.....\MinCover.pdb
..................\.....\output.txt
..................\.....\vc60.pdb
..................\input.txt
..................\MinCover.cpp
..................\MinCover.dsp
..................\MinCover.dsw
..................\MinCover.ncb
..................\MinCover.opt
..................\MinCover.plg
..................\MinHeap.h
..................\Debug
最小权顶点覆盖问题
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
DSSZ is the largest source code store in internet!
Contact us :
1999-2046 DSSZ All Rights Reserved.