码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
[matlab] 7.快速搜索随机树(RRT---Rapidly-exploring Random Trees) 路径规划
RRT是一种多维空间中有效率的规划方法。它以一个初始点作为根节点,通过随机采样增加叶子节点的方式,生成一个随机扩展树,当随机树中的叶子节点包含了目标点或进入了目标区域,便可以在随机树中找到一条由从初始点到目标点的路径。RRT方法是概率完备且不最优的。 function BuildRRT(qinit, ...
分类:Windows程序   时间:2018-08-27 18:41:57    阅读次数:988
Leetcode 145. 二叉树的后序遍历
题目链接 https://leetcode cn.com/problems/binary tree postorder traversal/description/ 题目描述 给定一个二叉树,返回它的 后序 遍历。 示例: 进阶: 递归算法很简单,你可以通过迭代算法完成吗? 题解 后序遍历,使用一个 ...
分类:其他好文   时间:2018-08-27 14:50:54    阅读次数:163
Leetcode 814. 二叉树剪枝
题目链接 https://leetcode cn.com/problems/binary tree pruning/description/ 题目描述 给定二叉树根结点 root ,此外树的每个结点的值要么是 0,要么是 1。 返回移除了所有不包含 1 的子树的原二叉树。 ( 节点 X 的子树为 X ...
分类:其他好文   时间:2018-08-27 14:09:40    阅读次数:181
Leetcode 104. 二叉树的最大深度
题目链接 https://leetcode cn.com/problems/maximum depth of binary tree/description/ 题目描述 给定一个二叉树,找出其最大深度。 二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。 说明: 叶子节点是指没有子节点的节点。 ...
分类:其他好文   时间:2018-08-27 12:48:24    阅读次数:142
数据库中字段类型对应的C#中的数据类型
转自microsoft-zh.cn原文 数据库中字段类型对应的C#中的数据类型,2016.4 数据库中字段类型对应C#中的数据类型: 数据库 C#程序 int int32 text string bigint int64 binary System.Byte[] bit Boolean char s ...
分类:数据库   时间:2018-08-27 10:25:50    阅读次数:130
PAT 1135 Is It A Red-Black Tree
There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties: (1) Every node is either ...
分类:其他好文   时间:2018-08-27 01:06:22    阅读次数:276
[LeetCode] Binary Tree Pruning 二叉树修剪
We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1. Return the same tree where every subtree ...
分类:其他好文   时间:2018-08-27 00:18:16    阅读次数:182
PAT 1119 Pre- and Post-order Traversals
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and ino ...
分类:其他好文   时间:2018-08-26 23:43:06    阅读次数:269
查找->动态查找表->平衡二叉树
文字描述 平衡二叉树(Balanced Binary Tree或Height-Balanced Tree) 因为是俄罗斯数学家G.M.Adel’son-Vel’skii和E.M.Landis在1962年提出来的,所以又称AVL树。它或者是一颗空树,或者是具有下列性质的二叉树:它的左子树和右子树都是平 ...
分类:其他好文   时间:2018-08-26 19:43:26    阅读次数:206
Leetcode 337. 打家劫舍 III
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), r... ...
分类:其他好文   时间:2018-08-26 16:41:21    阅读次数:423
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!