码迷,mamicode.com
首页 >  
搜索关键字:soure tree    ( 18102个结果
【机器学习算法-python实现】决策树-Decision tree(1) 信息熵划分数据集
(转载请注明出处:http://blog.csdn.net/buptgshengod)1.背景 决策书算法是一种逼近离散数值的分类算法,思路比較简单,并且准确率较高。国际权威的学术组织,数据挖掘国际会议ICDM (the IEEE International Conference on Da...
分类:编程语言   时间:2014-06-26 22:33:33    阅读次数:410
《python源代码剖析》笔记 python中的Dict对象
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie1.PyDictObject对象 --> C++ STL中的map是基于RB-tree的,搜索时间复杂度是O(logN)PyDictObject採用了hash表,时间复杂度是O(1)typede...
分类:编程语言   时间:2014-06-26 16:35:13    阅读次数:175
linux实操常用命令总结
1. linux目录操作命令------目录的增、删、改、查------cd, pwd, ls, mkdir, mv, ls(du, df, tree)切换目录,跟window的使用类似cd 显示目录的详细信息ls -ld直接切换到根目录cd /在根目录下创建oracle目录mkdir /oracl...
分类:系统相关   时间:2014-06-26 16:33:22    阅读次数:301
leetcode 题解:Binary Tree Preorder Traversal (二叉树的先序遍历)
题目:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3]....
分类:其他好文   时间:2014-06-26 16:03:52    阅读次数:296
leetcode 题解:Binary Tree Inorder Traversal (二叉树的中序遍历)
题目:Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].N...
分类:其他好文   时间:2014-06-26 16:02:42    阅读次数:172
leetcode题解: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]...
分类:其他好文   时间:2014-06-26 15:59:16    阅读次数:207
EasyUI异步加载Tree实现(另类,简洁)
前言         前几天事情比较的多,回学校时候行李,邮寄包裹,归还图书准备毕业。之后又是入职体检,各种琐碎的小事,文章也停更了几次。今天正好有一些零碎的时间可以把之前的工作内容做一个总结整理。这篇文章就是关于EasyUI实现异步加载树的。 异步Tree         首先需明白的是这里所说的异步加载是一个宽泛的概念。以一个实际的树形菜单为例,一般情况下在数据量不大的时候,我们可以一次...
分类:其他好文   时间:2014-06-26 13:14:06    阅读次数:2054
hdu1671Phone List(字典树)
#include #include #include #include using namespace std; typedef struct Node { struct Node *next[10]; int flag; }Node,*Tree; int flag1; void Cre...
分类:其他好文   时间:2014-06-25 11:27:43    阅读次数:154
字符串后缀自动机:Directed Acyclic Word Graph
trie -- suffix tree -- suffix automa 有这么一些应用场景: 即时响应用户输入的AJAX搜索框时, 显示候选列表。 搜索引擎的关键字个数统计。 后缀树(Suffix Tree): 从根到叶子表示一个后缀。 仅仅从这一个简单的描述,我们可以概念上解决下面的几个问题: P:查找字符串o是否在字符串S中 A:若o在S中,则o必然是S的某个后缀...
分类:其他好文   时间:2014-06-25 08:47:36    阅读次数:165
LeetCode: Sum Root to Leaf Numbers [129]
【题目】 Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum of all root-to-leaf numbers. For example, 1 ...
分类:其他好文   时间:2014-06-25 07:32:27    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!