1、前言 学习数据结构的时候就已经了解了DFS原理,但是一直没有详细的复习和代码实现。再刷题的过程中发现很多题目都使用DFS,因此回头再好好梳理一下DFS的思路以及代码实现。 2、算法理论 2.1 理论知识 深度优先搜索算法(英语:Depth-First-Search,简称DFS)是一种用于遍历或搜 ...
分类:
其他好文 时间:
2018-06-20 12:57:29
阅读次数:
151
#努力第6天#innodb_lru_scan_depth每个缓冲池最大脏页刷新页数checkpointinnodb fuzzy checkpointmaster thread checkpoint从flush_list中进行刷新flush_lru_list check pointlru需有差不多10 ...
分类:
数据库 时间:
2018-06-19 11:51:26
阅读次数:
180
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2018-06-18 17:15:52
阅读次数:
170
Given a binary tree, design an algorithm which creates a linked list of all the nodes at each depth.(e.g., if you have a tree with depth D, you'll hav ...
分类:
其他好文 时间:
2018-06-16 01:01:26
阅读次数:
144
测试环境数据库收到磁盘报警时,需要清理部分磁盘空间 df -h 查看整个磁盘占有 找到对应目录 查看每个文件夹占有磁盘量: sudo du -h --max-depth=1 data/ --max-depth=n表示只深入到第n层目录,如果此处设置为0,即表示不深入到子目录 执行删除后,使用df - ...
分类:
其他好文 时间:
2018-06-13 14:58:28
阅读次数:
129
#include #include #include using namespace std; const int N = 4e4 + 1; int n,step; int vs[2 * N], dp[2*N][20], id[N], depth[2 * N]; /* 1.除id以外,其他数组都是2... ...
分类:
其他好文 时间:
2018-06-12 22:59:43
阅读次数:
219
原题网址:https://www.lintcode.com/problem/minimum-depth-of-binary-tree/description 描述 给定一个二叉树,找出其最小深度。 二叉树的最小深度为根节点到最近叶子节点的距离。 描述 描述 给定一个二叉树,找出其最小深度。 二叉树的 ...
分类:
其他好文 时间:
2018-06-08 23:19:03
阅读次数:
312
代码:<?php/***@desc:多线程爬虫类*@author[Lee]<[<complet@163.com>]>*@property*1、calltrigger触发爬虫程序的回调函数*2、calltodo处理业务逻辑的回调函数如:把抓取到的内容处理后存到数据库*3、timeout超时时间,默认5秒*4、depth重定向深度,默认3*5、name上传文件的名字,默认
分类:
编程语言 时间:
2018-06-06 22:21:29
阅读次数:
183
/*@desc:爬虫原型@author[Lee]<[<complet@163.com>]>@paramurl初始url@paramcallback处理业务的回调函数@param挖掘url的深度默认3*/functioncrawl($url,$callback,$depth=3){if($depth>0){$depth--;$http=newhttp($url);$co
分类:
Web程序 时间:
2018-06-06 10:41:51
阅读次数:
158
1、卷积神经网络中卷积的核心意义是什么?每一组卷集合 权重是一个抽特征的滤波器, 从卷集核的角度抽取特征2、卷积神经网络很好的特性参数共享机制每一个神经元固定一组a x b x c(图像的通道数) 的参数w ,因此每一层网络的参数是 a x b x c x depth(神经元个数);a x b 代表 ...
分类:
其他好文 时间:
2018-06-05 23:25:15
阅读次数:
200