码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
[数据结构]二叉树
(1)二叉树的概念二叉树(Binary Tree)是个有限元素的集合,该集合或者为空、或者由一个称为根(root)的元素及两个不相交的、被分别称为左子树和右子树的二叉树组成。当集合为空时,称该二叉树为空二叉树。满二叉树:在一棵二叉树中,如果所有分支结点都存在左子树和右子树,并且所有叶子结点都在同一层...
分类:其他好文   时间:2015-01-18 21:04:20    阅读次数:188
[转]浅谈算法和数据结构: 八 平衡查找树之2-3树
前面介绍了二叉查找树(Binary Search Tree),他对于大多数情况下的查找和插入在效率上来说是没有问题的,但是他在最差的情况下效率比较低。本文及后面文章介绍的平衡查找树的数据结构能够保证在最差的情况下也能达到lgN的效率,要实现这一目标我们需要保证树在插入完成之后始终保持平衡状态,这就是...
分类:编程语言   时间:2015-01-18 18:26:43    阅读次数:256
烟雾检测笔记1--《Video-based smoke detection with histogram sequence of LBP and LBPV pyramids》解析、实现
基于HEP(histograms of equivalent patterns【1】)框架下的特征具有良好的纹理分类效果,LBP(local binary patterns【2】)属于HEP框架下最常用的特征,具有对亮度、旋转等良好的不变特性。在基于分块的视频烟雾检测中,常使用其作为纹理分类的特征。...
分类:其他好文   时间:2015-01-18 18:22:38    阅读次数:409
【leetcode】Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then...
分类:其他好文   时间:2015-01-18 18:21:13    阅读次数:151
[LeetCode] [LeetCode] Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他好文   时间:2015-01-18 17:05:52    阅读次数:261
Windows下安装GTK+
Step 1:到GTK官方网站上下载安装包。有32位的和64位,64位的有这句:Note that these 64-bit packages are experimental. Binary compatibility between versions is not guaranteed.还是选择...
分类:Windows程序   时间:2015-01-18 14:20:48    阅读次数:178
[LeetCode] Populating Next Right Pointers in Each Node
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他好文   时间:2015-01-18 14:15:56    阅读次数:166
leetcode 145. Binary Tree Postorder Traversal
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1]. 1...
分类:其他好文   时间:2015-01-18 13:02:59    阅读次数:166
leetcode------Binary Tree Level Order Traversal II
标题:Binary Tree Level Order Traversal II通过率:30.5%难度:简单Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from lef...
分类:其他好文   时间:2015-01-18 13:02:13    阅读次数:151
[LeetCode] Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:其他好文   时间:2015-01-18 13:00:09    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!