- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
最大流的增广路算法(KM算法)
1459:Power Network
Time Limit: 2000MS
Memory Limit: 32768K
Total Submissions: 17697 Accepted: 9349
Description
A power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amount s(u) = 0 of power, may produce an amount 0 = p(u) = pmax(u) of power, may consume an amount 0 = c(u) = min(s(u),cmax(u)) of power, and may deliver an amount d(u)=s(u)+p(u)-c(u) of power. The following restrictions apply: c(u)=0 for any power station, p(u)=0 for any consumer, and p(u)=c(u)=0 for any dispatcher. There is at most one power transport line (u,v) from a node u to a node v in the net; it transports an amount 0 = l(u,v) = lmax(u,v) of power delivered by u to v. Let Con=Σuc(u) be the power consumed in the net. The problem is to compute the maximum value of Con.
An example is in figure 1. The label x/y of power station u shows that p(u)=x and pmax(u)=y. The label x/y of consumer u shows that c(u)=x and cmax(u)=y. The label x/y of power transport line (u,v) shows that l(u,v)=x and lmax(u,v)=y. The power
consumed is Con=6. Notice that there are other possible states of the network but the value of Con cannot exceed 6.
Input
There are several data sets in the input. Each data set encodes a power network. It starts with four integers: 0 = n = 100 (nodes), 0 = np = n (power stations), 0 = nc = n (consumers), and 0 = m = n^2 (power transport lines). Follow m data
triplets (u,v)z, where u and v are node identifiers (starting from 0) and 0 = z = 1000 is the value of lmax(u,v). Follow np doublets (u)z, where u is the identifier of a power station and 0 = z = 10000 is the value of pmax(u). The data set ends with nc doublets (u)z, where u is the identifier of a consumer and 0 = z = 10000 is the value of
cmax(u). All input numbers are integers. Except the (u,v)z triplets and the (u)z doublets, which do not contain white spaces, white
您可能关注的文档
- 2021政法干警考试面试热点解读:信息不能再“等”.docx
- 2021昵称情侣三篇.docx
- 一年级下册数学教案-第6单元100以内的加法和减法一整理和复习 - 人教新课标.docx
- 北大绿卡八年级物理下册第7章力第1节力练习题(含解析)(新版)新人教版[含答案].docx
- 2021-2021新人教版四年级语文下册第八单元30文成公主进藏同步练.docx
- 推荐学习K122021北师大版高中数学必修三学案:第二章 1 算法的基本思想.docx
- 浅谈如何培养幼儿专注力.docx
- 近年民诉法各章历年司考真题集(参考答案).docx
- 第3章_建筑工程技术经济评价修正.docx
- 浅谈预应力施工工艺在桥梁建设工程中的应用.docx
最近下载
- 煤矿供电设计与继电保护整定计算示例.pdf VIP
- 脑卒中后言语障碍的康复治疗.ppt VIP
- DG/TJ 08-2451-2024 电动自行车集中充电和停放场所设计标准.pdf VIP
- 2025年版《普通高中课程标准》数学(word文档)完整版.doc VIP
- 绿色建材应用计划与措施.doc VIP
- 2025年下半年扬州大数据集团公开招聘30人考试备考试题及答案解析.docx VIP
- 新高考英语一轮复习练小题刷大题提能力:专题 02 建议信 (应用文写作)(解析版).docx VIP
- [轨道交通 客车电气装置]塞拉门.pdf VIP
- 专题 02 建议信 (应用文写作)-高考英语一轮复习练小题刷大题提能力(原卷版).docx
- 项目九模拟驾驶教学设计---稷山县蔡村初中赵柳晨.docx VIP
原创力文档


文档评论(0)