For rebuilding index, here is also a script to figure out the fragmentation and decide whether rebuilding index is in need: use [database_name] SELECT dbschemas.[name] as 'Schema', dbtables.[name] as 'Table', dbindexes.[name] as 'Index', indexstats.a…
ST算法是基于倍增的动态规划算法. #include<iostream> #include<cstdio> #include<cstdlib> #include<cmath> using namespace std; int map[1000005][20]; int N,K; void work() { int i,j; for(j=1;1<<j<=N;j++) for(i=1;i+(1<<j)-1<=N;i++)//i…