码迷,mamicode.com
首页 >  
搜索关键字:graph coloring    ( 3748个结果
Object Graph Serialization
http://coding-time.blogspot.com/2008/03/serialize-object-graph-to-xml-in-net.htmlhttp://trycatch.me/xml-json-serialization-of-object-graphs-with-cycli...
分类:其他好文   时间:2015-08-27 18:05:20    阅读次数:127
SPOJ 题目913QTREE2 - Query on a tree II(Link Cut Tree 查询路径第k个点)
QTREE2 - Query on a tree II no tags  You are given a tree (an undirected acyclic connected graph) with N nodes, and edges numbered 1, 2, 3...N-1. Each edge has an integer value assigned ...
分类:其他好文   时间:2015-08-27 02:14:59    阅读次数:238
浅析数据结构-图的基本概念
线性表和树两类数据结构,线性表中的元素是“一对一”的关系,树中的元素是“一对多”的关系,本章所述的图结构中的元素则是“多对多”的关系。图(Graph)是一种复杂的非线性结构,在图结构中,每个元素都可以有零个或多个前驱,也可以有零个或多个后继,也就是说,元素之间的关系是任意的。一、图的定义与术语定义:...
分类:其他好文   时间:2015-08-26 15:36:50    阅读次数:226
UVA 1479 Graph and Queries (Treap)
题意:给一个无向图,再给一系列操作(以下3种),输出最后的平均查询结果。(1)D X 删除第x条边。(2)Q X k 查询与点X相连的连通分量中第k大的点的权值。(3)C X v 将点X的权值改为v。吐槽:第一次写的人儿,WA,MLE,TLE各种惨。而且还好我写过splay,不然坑得更惨。耗时整整一...
分类:其他好文   时间:2015-08-26 11:54:04    阅读次数:204
Gephi——如何在geolayout布局下加上地图背景
You will need to place the map image manually under the graph, outside of Gephi. I did it once and it was not as painful as it sounds. My approach was: Apply Geolayout and export SVG file Obtain a...
分类:其他好文   时间:2015-08-26 09:35:15    阅读次数:525
Java画图
//利用awt.Graphics画图 //Graph用于显示所要画的图型 //Shape的子类定义可以图形 //要改变图形,可以利用Graphics类提供的方法实现 //要在同一窗口显示更多图形,通过重载paint()实现。 import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JPane...
分类:编程语言   时间:2015-08-26 07:08:10    阅读次数:221
hdoj 3435 A new Graph Game 【无向图判断权值最小哈密顿环】【KM算法】
A new Graph Game Time Limit: 8000/4000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1934    Accepted Submission(s): 827 Problem Description An undirec...
分类:编程语言   时间:2015-08-25 21:41:42    阅读次数:263
Slim Span
Description Given an undirected weighted graph G, you should find one of spanning trees specified as follows. The graph G is an ordered pair (V, E), where V is a set of vertices {v1, v2, …, vn} a...
分类:其他好文   时间:2015-08-21 23:23:18    阅读次数:255
HDU5409---CRB and Graph 2015多校 双联通分量缩点
题意:一个联通的无向图, 对于每一条边, 若删除该边后存在两点不可达,则输出这两个点, 如果存在多个则输出第一个点尽可能大,第二个点尽可能小的。 不存在输出0 0首先 若删除某一条边后存在多个联通分量则该边一定是桥, 那么我们可以先处理出所有的桥,然后把所有双联通分量缩点,缩点之后就变成了一棵树。而...
分类:移动开发   时间:2015-08-21 21:12:36    阅读次数:242
hdu 2454 Degree Sequence of Graph G (推断简单图)
///已知各点的度,推断是否为一个简单图#include#include#includeusing namespace std;int a[1010];bool cmp(int x,int y){ return x>y;}int main(){ int t,n,i,j; scanf...
分类:其他好文   时间:2015-08-21 20:54:02    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!