In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. ...
分类:
其他好文 时间:
2020-07-29 15:35:58
阅读次数:
76
--第一步:查看是否需要维护,查看扫描密度/Scan Density是否为100%declare @table_id intset @table_id=object_id('ICMO')dbcc showcontig(@table_id) --第二步:重构表索引dbcc dbreindex('t_S ...
分类:
其他好文 时间:
2020-07-29 10:37:38
阅读次数:
81
Motivation The task of finding nearest neighbours is very common. You can think of applications like finding duplicate or similar documents, audio/vid ...
分类:
其他好文 时间:
2020-07-29 10:07:50
阅读次数:
68
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6797 题目大意:n个点的完全图,要求删k条边,求删完k条边后的最短路的最大值。 3≤n≤50,1≤k≤min(n?2,5) 边权为[ 1 , 10^4 ] 的随机数 题解: 删的边一定在当前的最短路上, ...
分类:
Web程序 时间:
2020-07-29 09:55:43
阅读次数:
145
HDU 6608 题意:给以你一个质数,求小于它的最大质数的阶乘。 分析:Miller-Rabin快速判断素性,找到这个最大素数。此外,加上威尔逊定理推式子就好了。威尔逊定理描述的内容是对于一个正素数p: ? \((k-1)!modk$\)= k-1$ 有了这个定理,我们就可以很容易得到小于k最大素 ...
分类:
其他好文 时间:
2020-07-29 00:42:21
阅读次数:
80
#前言 首先需要明确的是,this的指向在函数定义的时候是无法确定的,只有函数执行的时候才能确定this到底指向谁。在非箭头函数下,this指向调用其所在函数的对象,而且是离谁近就指向谁(此对于常规对象,原型链,getter&setter等都适用);构造函数下,this与被创建的新对象绑定;DOM事 ...
分类:
其他好文 时间:
2020-07-28 22:24:25
阅读次数:
69
AcWing 796. 子矩阵的和 #include <bits/stdc++.h> using namespace std; const int N=1e3+10; int a[N][N],S[N][N]; int main(){ int n,m,q; scanf("%d%d%d",&n,&m,& ...
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2020-07-28 14:04:15
阅读次数:
77
前言 在发生故障切换后,经常遇到的问题就是同步报错,下面是最近收集的报错信息。 记录删除失败 在master上删除一条记录,而slave上找不到 Last_SQL_Error: Could not execute Delete_rows event on table hcy.t1; Can't fi ...
分类:
数据库 时间:
2020-07-28 10:02:24
阅读次数:
103
学习注解,从注释和源码入手 注释 部分关键注释,我自己标注了一些中文注释便于理解: 注解想要被设置成异步的方法 /** * Annotation that marks a method as a candidate for <i>asynchronous</i> execution. * Can a ...
分类:
其他好文 时间:
2020-07-27 23:32:27
阅读次数:
89