题解:和cf的一道题比较类似 首先跑一个MST 对于这个树做树链剖分 枚举不在这个树上的边找严格小于这条边的最大边权值 然后求ans 1977: [BeiJing2010组队]次小生成树 Tree Description 小 C 最近学了很多最小生成树的算法,Prim 算法、Kurskal 算法、消 ...
分类:
其他好文 时间:
2018-07-20 21:41:05
阅读次数:
223
1、shard&replica机制再次梳理2、图解单node环境下创建index是什么样子的 1、shard&replica机制再次梳理 (1)index包含多个shard(2)每个shard都是一个最小工作单元,承载部分数据,lucene实例,完整的建立索引和处理请求的能力(3)增减节点时,sha ...
分类:
其他好文 时间:
2018-07-20 00:22:03
阅读次数:
154
https://www.luogu.org/problemnew/show/P3366 Kruskal算法 Prim ...
分类:
其他好文 时间:
2018-07-19 21:18:45
阅读次数:
207
class Solution { int count = 0; HashMap map = new HashMap(); // map and count all must be here to be accessible from the functions below public int[] ... ...
分类:
其他好文 时间:
2018-07-19 13:55:50
阅读次数:
142
primer3是由怀特黑德生物医学研究所Steve Rozen等人发起的一个自动寡核苷酸分析和设计的开源项目,被广泛应用在分子生物领域。primer3-py是用python语言封装的primer3的API,官方推荐安装linux,mac平台,如何在windows平台下安装呢? 阅读primer3-p ...
1. 基础知识 安装mysql5.6数据库Mysql binlog初步理解 2. 配置mysql 开启binlog、修改binlog模式为Row Level模式 修改mysql配置文件,在[mysqld]下增加以下内容 3. 重启mysql数据库 binlog开启 生成文件/var/lib/mysq ...
分类:
数据库 时间:
2018-07-18 20:30:03
阅读次数:
244
什么是filtercache? solr应用中为了提高查询速度有可以利用几种cache来优化查询速度,分别是fieldValueCache,queryResultCache,documentCache,filtercache,在日常使用中最为立竿见影,最有效的应属filtercache,何谓filt ...
分类:
其他好文 时间:
2018-07-18 17:02:53
阅读次数:
167
1.Prim算法生成最小生成树//Prim算法生成最小生成树 void MiniSpanTree_Prim(MGraph G) { int min,i,j,k; int adjvex[MAXVEX]; int lowcost[MAXVEX]; lowcost[0] = 0; adjvex[0] = ... ...
分类:
其他好文 时间:
2018-07-17 23:22:58
阅读次数:
206
查看网卡状态:[root@linfan~]#nmclideviceDEVICETYPESTATECONNECTIONeth0ethernetconnectedeth0eth1ethernetconnectedWiredconnection1eth2ethernetconnectedWiredconnection2loloopbackunmanaged--创建bond5.模式为balance-tlb
分类:
系统相关 时间:
2018-07-17 10:34:22
阅读次数:
564
Let's call an undirected graph G=(V,E)G=(V,E) relatively prime if and only if for each edge (v,u)∈E(v,u)∈E GCD(v,u)=1GCD(v,u)=1 (the greatest common d ...
分类:
其他好文 时间:
2018-07-15 19:44:23
阅读次数:
172