
图论
文章平均质量分 62
追逐星辰的光
脚踏实地,虚心前行
展开
-
HDU - 1385 Minimum Transport Cost
These are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now there is some cargo that should be delivered from one city to another. The transpor原创 2017-12-24 20:53:05 · 222 阅读 · 0 评论 -
HDU - 2923 Einbahnstrasse
Einbahnstra e (German for a one-way street) is a street on which vehicles should only move in one direction. One reason for having one-way streets is to facilitate a smoother flow of traffic throug原创 2017-12-25 16:48:35 · 304 阅读 · 0 评论 -
POJ 2387 Til the Cows Come Home
Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so she wants to get b原创 2018-01-13 18:15:02 · 181 阅读 · 0 评论 -
POJ - 1125 Stockbroker Grapevine
Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to give your employer the tactical edge in the stock m原创 2017-12-30 13:07:08 · 314 阅读 · 0 评论 -
图和树的基本概念与认识
1.图是什么: 图由顶点(vertex,node)和边(edge)组成。顶点就是代表对象,因为有时候题不会直接给顶点,而是某种对象,直接看成顶点即可。我们使用链接两顶点之间的线段来表示。顶点的集合V,边的集合是E,所以图记为G = (V,E), 连接两点u和v的边用e=(u,v)表示。 图的种类: 图大体上分成两种,边没有指向性的图叫做无向图,边具有指向性的图叫做有向原创 2018-01-19 20:41:20 · 16754 阅读 · 0 评论