码迷,mamicode.com
首页 >  
搜索关键字:directed    ( 315个结果
连通分量!
As part of a CS course, Alice just ?nished programming her robot to explore a graph having n nodes, labeled 1, 2, . . . , n, and m directed edges. Ini ...
分类:其他好文   时间:2018-04-22 20:00:04    阅读次数:181
CodeForces - 960F Pathwalks —— 主席树(n棵线段树)
题目链接:https://vjudge.net/problem/CodeForces-960F You are given a directed graph with n nodes and m edges, with all edges having a certain weight. There ...
分类:其他好文   时间:2018-04-20 21:59:20    阅读次数:251
CodeForces 909E Coprocessor(无脑拓扑排序)
You are given a program you want to execute as a set of tasks organized in a dependency graph. The dependency graph is a directed acyclic graph: each ...
分类:编程语言   时间:2018-04-14 23:48:45    阅读次数:260
POJ - 1308 Is It A Tree?【并查集】
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between ...
分类:其他好文   时间:2018-04-13 13:29:01    阅读次数:195
clone-graph
1. clone-graph Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. 思路:dfs,其实就是递归。 ...
分类:其他好文   时间:2018-04-11 00:03:01    阅读次数:161
浅谈拓扑排序
今天来讲讲拓扑排序 度娘告诉我 对一个有向无环图(Directed Acyclic Graph简称DAG)G进行拓扑排序,是将G中所有顶点排成一个线性序列,使得图中任意一对顶点u和v,若边(u,v)∈E(G),则u在线性序列中出现在v之前。通常,这样的线性序列称为满足拓扑次序(Topological ...
分类:编程语言   时间:2018-04-06 23:43:55    阅读次数:275
水题(并查集+判断是否是树)(详细测试数据)
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between ...
分类:其他好文   时间:2018-04-05 14:33:01    阅读次数:190
拓扑排序
定义: 对一个有向无环图(Directed Acyclic Graph简称DAG)G进行拓扑排序,是将G中所有顶点排成一个线性序列,使得图中任意一对顶点u和v,若边(u,v)∈E(G),则u在线性序列中出现在v之前。 代码如下: ...
分类:编程语言   时间:2018-03-27 14:47:48    阅读次数:175
CodeForces - 937D Sleepy Game
Petya and Vasya arranged a game. The game runs by the following rules. Players have a directed graph consisting of n vertices and m edges. One of the ...
分类:其他好文   时间:2018-03-08 23:00:15    阅读次数:340
深入探究Spark -- 基本组成
DAG:Directed Acyclic Graph,有向无环图 RDD:Resilient Distributed Dataset 弹性分布式数据集,一种分布式的内存抽象,将工作集缓存到内存中,实现了复用。 用户使用交互接口(Driver)与Spark集群的Cluster Manager进行交互, ...
分类:其他好文   时间:2018-03-06 23:09:20    阅读次数:154
315条   上一页 1 ... 11 12 13 14 15 ... 32 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!