码迷,mamicode.com
首页 >  
搜索关键字:maxflow graph cuts    ( 3774个结果
Clone Graph -- leetcode
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for ea...
分类:其他好文   时间:2015-05-28 21:40:03    阅读次数:200
算法导论——有向无环加权图的最短路径
package org.loda.graph; import org.loda.structure.Stack; import org.loda.util.In; /** * * @ClassName: NoCycleSP * @Description: 有向无环图的最短路径算法 * * 无环图可以采用拓扑排序来处理,进...
分类:编程语言   时间:2015-05-28 12:44:25    阅读次数:540
Struts2中的OGNL详解
原出处:http://blog.csdn.net/tjcyjd/article/details/6850203首先了解下OGNL的概念:OGNL是Object-Graph Navigation Language的缩写,全称为对象图导航语言,是一种功能强大的表达式语言,它通过简单一致的语法,可以任意存...
分类:其他好文   时间:2015-05-28 09:23:24    阅读次数:132
算法导论——最短路径Dijkstra算法
package org.loda.graph; import org.loda.structure.IndexMinQ; import org.loda.structure.Stack; import org.loda.util.In; /** * * @ClassName: Dijkstra * @Description: Dijkstra最短路径算法--贪心算...
分类:编程语言   时间:2015-05-27 23:06:01    阅读次数:433
Palindrome Partitioning II -- leetcode
Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return...
分类:其他好文   时间:2015-05-27 17:29:29    阅读次数:130
Prim算法(并查集)
普里姆算法(Prim算法),图论中的一种算法,可在加权连通图里搜索最小生成树。意即由此算法搜索到的边子集所构成的树中,不但包括了连通图里的所有顶点(英语:Vertex (graph theory)),且其所有边的权值之和亦为最小 图例 说明 不可选 可选 已选(Vnew) 此为原始的加权连通图。每条边一侧的数字...
分类:编程语言   时间:2015-05-27 15:58:39    阅读次数:164
poj 3678 2-sat(强连通)
题目链接 poj 3678Katu PuzzleTime Limit:1000MSMemory Limit:65536KTotal Submissions:8340Accepted:3077DescriptionKatu Puzzle is presented as a directed graph...
分类:其他好文   时间:2015-05-27 15:28:06    阅读次数:147
spoj375 树链剖分(单点更新,区间查询)
http://www.spoj.com/problems/QTREE/ 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 w...
分类:其他好文   时间:2015-05-27 12:25:26    阅读次数:127
PAT List Components
List ComponentsFor a given undirected graph with N vertices and E edges, please list all the connected components by both DFS and BFS. Assume that all...
分类:其他好文   时间:2015-05-27 09:44:09    阅读次数:144
回溯法---n-着色问题(3)
回溯法---n-着色问题(3) 以三色问题为例: 对给定无向图着色,相邻点颜色不能相同,限用3种颜色在框架基础上的实现:import java. util.Vector ;public class ThreeColor extends CombineProblem { int[][] graph; ...
分类:其他好文   时间:2015-05-26 20:48:59    阅读次数:118
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!