1. 二叉树的深度优先遍历,使用栈Stack, DFS(Depth First Search) function DFS(root){ var stack = []; stack.push(root); var node = null; while(stack.length){ node = sta ...
分类:
其他好文 时间:
2017-05-11 01:05:54
阅读次数:
190
深入HBase架构解析(一) 前记 公司内部使用的是MapR版本的Hadoop生态系统,因而从MapR的官网看到了这篇文文章:An In-Depth Look at the HBase Architecture,原本想翻译全文,然而如果翻译就需要各种咬文嚼字,太麻烦,因而本文大部分使用了自己的语言, ...
分类:
其他好文 时间:
2017-05-08 19:57:24
阅读次数:
320
这篇文章主要是参考MJP的“Attack of The Depth Buffer”,测试不同格式下depth buffer的精度。 测试的depth buffer包含两类: 一是非线性的depth buffer,存储着perspective z(也就是最常用的,透视投影后归一化的z/w的buffer ...
分类:
其他好文 时间:
2017-05-04 23:22:51
阅读次数:
357
直接举例进行说明输出图片的长和宽。 输入照片为:32*32*3, 这是用一个Filter得到的结果,即使一个activation map。(filter 总会自动扩充到和输入照片一样的depth)。 当我们用6个5*5的Filter时,我们将会得到6个分开的activation maps,如图所示: ...
分类:
其他好文 时间:
2017-05-03 11:42:46
阅读次数:
458
1 from PIL import Image 2 import numpy as np 3 4 def paint(oname,sname): 5 a = np.asarray(Image.open(oname).convert('L')).astype('float') 6 7 depth = ... ...
分类:
其他好文 时间:
2017-04-30 19:56:58
阅读次数:
227
题目:给定一个二叉树,找到其最小深度。最小深度是从根节点到最近叶节点的最短路径的节点数。 ...
分类:
其他好文 时间:
2017-04-28 23:45:42
阅读次数:
152
一、版本库钩子 1.1 start-commit 开始提交的通知 输入参数:传递给你钩子程序的命令行参数,顺序如下: 1. 版本库路径 2. 认证过的尝试提交的用户名 3. Depth,mergeinfo,log-revprops 1.2 pre-commit 在提交结束之前提醒 输入参数:传递给你 ...
分类:
其他好文 时间:
2017-04-28 10:32:33
阅读次数:
186
Synchronization means multi threads access the same resource (data, variable ,etc) should not cause a corruption to it.If all method of a class promis ...
分类:
其他好文 时间:
2017-04-28 10:26:43
阅读次数:
217
地址:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3965 题目: iven two depth-first-search (DFS) sequences of a binary tree, can you find a ...
分类:
其他好文 时间:
2017-04-27 23:06:45
阅读次数:
532
一.题目 Minimum Depth of Binary Tree Total Accepted: 58982 Total Submissions: 202860My Submissions Given a binary tree, find its minimum depth. The minim ...
分类:
其他好文 时间:
2017-04-27 13:57:52
阅读次数:
143