SticksTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 129606Accepted: 30388DescriptionGeorge took sticks of the same length and cut them rand...
分类:
其他好文 时间:
2015-08-29 16:51:02
阅读次数:
105
Notice that the view names are now specified as absolute names, as opposed to the relative name. It is targeting the ‘filters‘, ‘tabledata‘, and ‘graph‘ views located in the root unnamed template. ...
分类:
其他好文 时间:
2015-08-29 11:18:56
阅读次数:
194
1、Dijkstra算法能够解决有向图中单个源点到另一终点的最短路径问题,它的算法过程如下:
1)用矩阵graph[]N[N](N为图中节点个数)表示带权的有向图G。若图中两个节点vi和vj是连通的,则graph[i][j]表示这两个节点之间边的权值;若两节点vi和vj不是连通的,则graph[i][j] = -1.
2)设S为从某点start_vec开始的最短路径path的终点集合,初始状态...
分类:
编程语言 时间:
2015-08-28 23:25:45
阅读次数:
381
Connected GraphTime Limit:1000MSMemory Limit:30000KTotal Submissions:3010Accepted:1481DescriptionAn undirected graph is a set V of vertices and a set ...
分类:
其他好文 时间:
2015-08-28 22:51:33
阅读次数:
353
一、针对文档操作的命令一般对文档操作的命令比较常用:cat、less、head、tail、grep、cut、sort、wc、uniq、tee、tr、split、sed、awk 其中 grep、sed、awk是正则表达式必须掌握的工具(1) cut 命令cut命令用来截取某一个字段,其格式为:“cut...
分类:
其他好文 时间:
2015-08-28 17:01:52
阅读次数:
225
1、原理部分
2、程序部分(matlab)
自动色调
clc;clear;close all;
img=imread('IMG_0950_cut.jpg');
Image=double(img)/255;
figure(1);
imshow(Image);
%%
R=Image(:,:,1);
G=Image(:,:,2);
B=Image(:,:,3);...
分类:
编程语言 时间:
2015-08-28 09:35:52
阅读次数:
877
Query on The Trees
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)
Total Submission(s): 3602 Accepted Submission(s): 1587
Problem Description
We have me...
分类:
其他好文 时间:
2015-08-28 02:12:39
阅读次数:
199
1,摘要:本系列文章主要学习如何使用JAVA语言以邻接表的方式实现了数据结构---图(Graph),这是第一篇文章,学习如何用JAVA来表示图的顶点。从数据的表示方法来说,有二种表示图的方式:一种是邻接矩阵,其实是一个二维数组;一种是邻接表,其实是一个顶点表,每个顶点又拥有一个边列表。下图是图的邻接...
分类:
编程语言 时间:
2015-08-27 20:50:34
阅读次数:
291
先定义节点类class Vertex{
char label;
boolean wasVisited;
public Vertex(char label){
this.label = label;
wasVisited = false;
}
}图:class Graph{
private final int MAX_VERTS...
分类:
编程语言 时间:
2015-08-27 18:54:45
阅读次数:
167
定义节点类://一个节点
class Vertex{
char label;
boolean wasVisited;
public Vertex(char label){
this.label = label;
wasVisited = false;
}
}图:class Graph{
private final int MA...
分类:
编程语言 时间:
2015-08-27 18:39:55
阅读次数:
191