Although the techniques described above reveal the identity of the vertics in the social graph but add noise to the relationships between them,th...
分类:
其他好文 时间:
2015-05-21 22:18:02
阅读次数:
141
转自:http://blog.csdn.net/wklken/article/details/6562098Sort,uniq,join,cut,paste,split命令——SortSort可将许多不同的域按不同的列顺序分类命令格式:sort –cmu –o out-putfile [other ...
分类:
系统相关 时间:
2015-05-21 19:19:25
阅读次数:
286
Corosync+Pacemaker+Ldirectord+Lvs+Httpd一、硬件环境4台虚拟机在同一网段操作系统:centos6.3关闭系统不必要的服务脚本#!/bin/bash
services=`chkconfig--list|cut-f1|cut-d""-f1`
forserin$services
do
if["$ser"=="network"]||["$ser"=="rsyslog"]||["$ser"=="sshd"]||["$s..
分类:
Web程序 时间:
2015-05-21 12:56:10
阅读次数:
319
乍一看,图和树或者二叉树很像,但是采用基于对象的方式来构建就会有问题,因为图可能会增长到非常大,用对象来表示就会使效率低下。
首先我们需要定义一个图的类,其中通过adj数组来表示邻接表,也就是与节点相关联的节点数组;marked数组则是用来表示该节点是否被访问过,是在深度优先搜索和广度优先搜索中用到的。
function Graph(v){//图类
this.vert...
分类:
编程语言 时间:
2015-05-21 09:09:21
阅读次数:
135
裸的全局最小割了吧 有重边,用邻接矩阵的时候要小心#include#include#include#include#define MOD 1000000007#define maxn 509using namespace std;int a[590][590],wage[maxn],in[maxn]...
分类:
其他好文 时间:
2015-05-20 23:46:52
阅读次数:
143
QTREE - Query on a treeno tags
You are given a tree (an acyclic undirected connected graph) with N nodes, and edges numbered 1, 2, 3…N-1.We will ask you to perfrom some instructions of the following...
分类:
其他好文 时间:
2015-05-20 18:31:52
阅读次数:
241
Heartbeat+Ldirectord+LVS+httpd集群部署一、硬件环境4台虚拟机在同一网段操作系统:centos6.3关闭系统不必要的服务脚本#!/bin/bash
services=`chkconfig--list|cut-f1|cut-d""-f1`
forserin$services
do
if["$ser"=="network"]||["$ser"=="rsyslog"]||["$ser"=="sshd"]||["$se..
分类:
Web程序 时间:
2015-05-20 09:59:01
阅读次数:
253
最近有个项目,其中有个功能是要将遥感影像按标准图幅分割,一开始用AE的接口,慢的让人抓狂,就改用GDAL,速度提升很大。我主要通过http://blog.csdn.net/liminlu0314/学习GDAL。本篇主要记录GDAL实现分割的代码,下篇用AE写个demo。 1 int Cut...
分类:
其他好文 时间:
2015-05-20 00:13:41
阅读次数:
251
【题目】
There are a total of n courses you have to take, labeled from 0 to n
- 1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is exp...
分类:
其他好文 时间:
2015-05-19 19:09:54
阅读次数:
134
【题目】
There are a total of n courses you have to take, labeled from 0 to n
- 1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is exp...
分类:
其他好文 时间:
2015-05-19 19:08:51
阅读次数:
177