码迷,mamicode.com
首页 >  
搜索关键字:edges    ( 333个结果
【模板】 二分图最大匹配和匈牙利算法
1 bool dfs(int u) 2 { 3 for (iterator_t i = G[u].begin(); i != G[u].end(); ++i) { // 对 u 的每个邻接点 4 int v = edges[*i].to; 5 if (!check[v]) { // 要求不在交替路中... ...
分类:编程语言   时间:2019-08-22 00:34:11    阅读次数:89
Kruskal克鲁斯卡尔算法
克鲁斯卡尔算法依靠两个辅助数组parent[ ] 和edges[ ]. parent[]数组用于实现并查集操作,即查询一个顶点所在集合的根节点,以及将两个集合合并成为一个集合。 edges[]数组作为图中边的集合,其中各个边按照权值大小升序排序,这样克鲁斯卡尔算法只需依次遍历edges[]数组便可依 ...
分类:编程语言   时间:2019-08-18 23:58:32    阅读次数:183
CF G. Orientation of Edges BFS
Code ...
分类:其他好文   时间:2019-07-29 14:36:38    阅读次数:68
Atcoder2134 Zigzag MST
问题描述 We have a graph with N vertices, numbered 0 through N ?1. Edges are yet to be added. We will process Q queries to add edges. In the i th (1≦ i ≦ ...
分类:其他好文   时间:2019-07-14 14:49:03    阅读次数:91
Rocket - tilelink - Edges
https://mp.weixin.qq.com/s/UggNsNOeEMP-GhzlLiT-qQ 简单介绍Edges的实现。 ?? 1. TLEdge 包含client和manager两端的边,继承TLEdgeParameters类: ?? 1) isAligned 判断访问的地址和访问大小是否对 ...
分类:其他好文   时间:2019-07-04 23:55:50    阅读次数:232
[LeetCode] 882. Reachable Nodes In Subdivided Graph 细分图中的可到达结点
Starting with an?undirected?graph (the "original graph") with nodes from to , subdivisions are made to some of the edges. The graph is given as follow ...
分类:其他好文   时间:2019-06-24 01:00:17    阅读次数:155
[LeetCode] Minimum Spanning Tree
Given a list of Connections, which is the Connection class (the city name at both ends of the edge and a cost between them), find edges that can conne ...
分类:其他好文   时间:2019-05-29 15:02:31    阅读次数:127
2018 ICPC青岛网络赛 B. Red Black Tree(倍增lca)
BaoBao has just found a rooted tree with n vertices and (n-1) weighted edges in his backyard. Among the vertices, m of them are red, while the others ...
分类:其他好文   时间:2019-05-21 00:12:38    阅读次数:130
<知识整理>2019清北学堂提高储备D5
今天主讲图论。 前言:图的定义:图G是一个有序二元组(V,E),其中V称为顶集(Vertices Set),E称为边集(Edges set),E与V不相交。它们亦可写成V(G)和E(G)。 一、图的存储: 1、邻接矩阵: 2、邻接表: 数组模拟链表实现:记录每条边的终点、边权(如果有的话)、同一起点 ...
分类:其他好文   时间:2019-05-02 21:27:10    阅读次数:163
大数据技术之_19_Spark学习_05_Spark GraphX 应用解析 + Spark GraphX 概述、解析 + 计算模式 + Pregel API + 图算法参考代码 + PageRank 实例
第1章 Spark GraphX 概述1.1 什么是 Spark GraphX1.2 弹性分布式属性图1.3 运行图计算程序第2章 Spark GraphX 解析2.1 存储模式2.1.1 图存储模式2.1.2 GraphX 存储模式2.2 vertices、edges 以及 triplets2.2 ...
分类:编程语言   时间:2019-04-30 19:55:51    阅读次数:162
333条   上一页 1 ... 5 6 7 8 9 ... 34 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!