码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
C++实现算法常用的STL---整理
algorithm sort快排 binary_search二分查找 stack queue set/multiset multiset/set使用平衡二叉树的数据结构,插入和查找时间复杂度都是log n。 multiset和set的用法相同,只有一个区别: 1、multiset中可以出现重复的元素 ...
分类:编程语言   时间:2018-08-08 12:06:17    阅读次数:153
几种加密算法
Base64加密: 1.org.apache.commons.codec,加密后没有换行 package util; import java.io.UnsupportedEncodingException; import org.apache.commons.codec.binary.Base64; ...
分类:编程语言   时间:2018-08-07 23:59:20    阅读次数:331
LeetCode之 insertion-sort-list && insertion-sort-list
尝试着刷刷一些经典LeetCode题练练手感,随手做了两道看起来不起眼但还是需要一些细节的题: 1. 题目描述 Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the ...
分类:其他好文   时间:2018-08-07 17:28:18    阅读次数:161
创建二叉树( 二叉排序树(Binary Sort Tree))
二叉排序树(Binary Sort Tree),又称二叉查找树(Binary Search Tree),亦称二叉搜索树 二叉排序树或者是一棵空树,或者是具有下列性质的二叉树: (1)若左子树不空,则左子树上所有结点的值均小于或等于它的根结点的值;(2)若右子树不空,则右子树上所有结点的值均大于或等于它的根结点的值;(3)左、右子树也分别为二叉排序树; 创建时先给根结点复制,左右孩子为空,创建孩子节点时, 1.先判断当前的孩子结点属于根的 左子树还是右子树(当前结点已经确定是左子树还是右子树)判断时会创建当前结点的父节点 2.再判断当前的孩子结点时父节点的左孩子还是右孩子
分类:编程语言   时间:2018-08-07 13:04:06    阅读次数:117
MySQL show
show authors;show {binary | master} logs;show binlog events [in 'log_name'] [from pos] [limit [offset,] row_count];show character set [like_or_where]; ...
分类:数据库   时间:2018-08-07 00:37:28    阅读次数:179
Leetcode ——Lowest Common Ancestor of a Binary Tree
Question Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “ ...
分类:其他好文   时间:2018-08-06 13:42:25    阅读次数:110
第十四届华中科技大学程序设计竞赛决赛同步赛 Beautiful Land
It’s universally acknowledged that there’re innumerable trees in the campus of HUST.Now HUST got a big land whose capacity is C to plant trees. We hav ...
分类:其他好文   时间:2018-08-05 20:29:40    阅读次数:153
计算机中的进制和编码
计算机中的进制和编码 古时候,人们是如何来传递消息的? 当年周幽王为博褒妃一笑,不顾众臣反对,竟数次无故点燃边关告急用的烽火台,使各路诸侯,长途跋涉,匆忙赶去救驾。结果,被戏而回。周幽王从此便失信于诸侯,最后,当边关真的告急之时,他点燃烽火却再也没人赶来救他了!不久,便死于刀下,亡了西周。西周第九代 ...
分类:其他好文   时间:2018-08-05 19:38:35    阅读次数:168
PL_SQL学习
打印输出: dbms_output.put_line('AA'); 显示服务器输出信息 set serveroutput on; 打印出eid=1的员工姓名: 抛出异常: 使用%type进行目标类型赋值(若表字段类型改变时变量的类型也会实时更改) 常用变量类型 1. binary_integer:: ...
分类:数据库   时间:2018-08-05 14:15:42    阅读次数:191
评估指标:ROC,AUC,Precision、Recall、F1-score
ROC(Receiver Operating Characteristic)曲线和AUC常被用来评价一个二值分类器(binary classifier)的优劣 。 ROC曲线一般的横轴是FPR,纵轴是FPR。AUC为曲线下面的面积,作为评估指标,AUC值越大,说明模型越好。如下图: Precisio ...
分类:其他好文   时间:2018-08-04 23:24:25    阅读次数:630
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!