码迷,mamicode.com
首页 >  
搜索关键字:edges    ( 333个结果
Find Cycle
Find Cycle A graph is a type of data structure that consists of nodes and edges that connect the nodes. An edge has a start node and end node, and we will only consider directed edges. The figure be...
分类:其他好文   时间:2015-08-19 09:30:27    阅读次数:251
LightOJ 1094
Description:Given a tree (a connected graph with no cycles), you have to find the farthest nodes in the tree. The edges of the tree are weighted and u...
分类:其他好文   时间:2015-08-18 15:53:15    阅读次数:157
[LeetCode] Graph Valid Tree
Problem Description:Givennnodes labeled from0ton - 1and a list of undirected edges (each edge is a pair of nodes), write a function to check whether t...
分类:其他好文   时间:2015-08-18 11:37:53    阅读次数:477
SPOJ 题目375 Query on a tree(link cut tree边权更新,求两点最大值)
QTREE - Query on a tree no tags  You are given a tree (an acyclic undirected connected graph) with N nodes, and edges numbered 1, 2, 3...N-1. We will ask you to perfrom some instructions ...
分类:其他好文   时间:2015-08-17 19:35:02    阅读次数:104
图论基础概念
原文地址:http://blog.csdn.net/minenki/article/details/86065151 图(graph)、顶点(vertices)、边(edges) 图由顶点和边组成,是表示物件与物件(objects)之间的关系的方法。在其他的术语中,图也被称作网络(network),...
分类:其他好文   时间:2015-08-16 16:28:44    阅读次数:186
删边问题
题目描述:连通图是指任意两个顶点都有路径可互相到达的图。读入一个无向的连通图,输出最多能删掉多少条边,使这个图仍然连通。输入格式:第一行为图的顶点数N(1v2),同一条边不会重复出现。输出格式:输出最多能删掉的边数。输入输出样例:输入edges.in输出 edges.out4 61 21 31 42...
分类:其他好文   时间:2015-08-16 16:24:50    阅读次数:253
hdu 5313 Bipartite Graph(dfs染色 或者 并查集)
Problem DescriptionSoda has a bipartite graph withnvertices andmundirected edges. Now he wants to make the graph become a complete bipartite graph wit...
分类:其他好文   时间:2015-08-15 19:47:36    阅读次数:212
iOS开发-UIScreenEdgePanGestureRecognizer实战
UIScreenEdgePanGestureRecognizer名字很长,而且关于其文档也是少的的可怜,苹果官方给的唯一的一个属性是edges,文档中的解释是这样的:A UIScreenEdgePanGestureRecognizer looks for panning (dragging) ges...
分类:移动开发   时间:2015-08-12 23:25:47    阅读次数:292
hunnu11562:The Triangle Division of the Convex Polygon(第n个卡特兰数取模)
Problem description   A convex polygon with n edges can be divided into several triangles by some non-intersect diagonals. We denote d(n) is the number of the different ways to divide the convex ...
分类:其他好文   时间:2015-08-08 23:00:19    阅读次数:179
最小生成树
/** 02. * 定义基本数据结构 03. * @author 小宇 04. */ 05. 06.public class MGraph 07.{ 08. //当边edges[i][j]不存在时,用null表示其值 09. public static final int ...
分类:其他好文   时间:2015-08-05 22:10:07    阅读次数:264
333条   上一页 1 ... 24 25 26 27 28 ... 34 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!