微软亚洲研究院2014CVPR: Realtime and Robust Hand Tracking from Depth...
分类:
其他好文 时间:
2014-08-20 22:44:03
阅读次数:
414
深度优先搜索算法(Depth First Search),是搜索算法的一种。是沿着树的深度遍历树的节点,尽可能深的搜索树的分支。当节点v的所有边都己被探寻过,搜索将回溯到发现节点v的那条边的起始节点。这一过程一直进行到已发现从源节点可达的所有节点为止。如果还存在未被发现的节点,则选择其中一个作为源节...
分类:
其他好文 时间:
2014-08-19 18:29:35
阅读次数:
278
我也不知道 为什么这题 那么水=-=有人在discuss说数据弱了....求这棵树上这个结点的深度就可以了可能是数据比较大把 为什么我的运行时间那么长呢 touch me写了2种 一个是慢慢搜上去 一个就直接depth[]数组记录当然也可以depth father数组混合使用 这样就可以加上 路径....
分类:
其他好文 时间:
2014-08-18 18:27:52
阅读次数:
286
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 le...
分类:
其他好文 时间:
2014-08-17 16:55:02
阅读次数:
202
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:
其他好文 时间:
2014-08-16 23:42:41
阅读次数:
165
题目链接
题意:给一个数n,要你找出一个以n为结尾的序列,使得这个序列中的任意一个数(1除外),能由序列中的两个数(可以相同)相加得到。求最短的序列,如有多种组合,任意输出一个。
思路:要迭代+DFS,首先我们可以得到要使序列尽量短的话,那么n最好是能由n/2相加得到,所以我们就可以得到最小深度depth,以depth为基础,进行深搜,如果满足的话就输出,如果不符合的话,再...
分类:
其他好文 时间:
2014-08-16 13:52:54
阅读次数:
253
程序:代码:#include"cv.h"
#include"cxcore.h"
#include"highgui.h"
#include<iostream>
intGetCol(intargc,char**argv)
{
IplImage*src=cvLoadImage("e:\\picture\\4.jpg");
IplImage*dst1=cvCreateImage(cvSize(1,src->height),src->depth,src->nChannels);..
分类:
其他好文 时间:
2014-08-14 21:06:49
阅读次数:
195
原题:
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of
every node never...
分类:
其他好文 时间:
2014-08-13 15:03:31
阅读次数:
261
#include
#include
#include
GLfloat step=0.0,s=0.1;
void CALLBACK display();
void CALLBACK display()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_PROJECTIO...
分类:
其他好文 时间:
2014-08-11 17:50:02
阅读次数:
183
前段时间,发生了一个问题引起了我对IO队列深度的研究。存储服务器中linux kernel的mpt2sas驱动模块,将max_queue_depth设置为1024时,引起系统加载驱动时卡死,而调整为512则没问题。后来看了很多这方面的资料,终于弄明白了。我们为了追求系统的性能,往往将max_queu...
分类:
其他好文 时间:
2014-08-05 15:47:29
阅读次数:
1633