码迷,mamicode.com
首页 >  
搜索关键字:InnoDB search    ( 16851个结果
Recover Binary Search Tree
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:其他好文   时间:2014-05-17 11:30:21    阅读次数:247
Oracle的decode、sign、trunc函数
原文http://knowyouknowme.iteye.com/blog/574974一、decode在Oracle/PLSQL中,decode具有和 IF-THEN-ELSE 一样的功能。decode函数语法如下:decode( expression , search , result [, s...
分类:数据库   时间:2014-05-16 20:41:51    阅读次数:540
MySQL 5.5: InnoDB Change Buffering
To speed up bulk loading of data, InnoDB implements aninsert buffer, a special index in the InnoDB system tablespace that buffers modifications to sec...
分类:数据库   时间:2014-05-16 18:26:09    阅读次数:532
Leetcode 二分查找 Search a 2D Matrix
题意:在一个二维矩阵中找到给定的值。矩阵从上到下从左到右有序 思路:二维空间的二分查找 先在一维里找中间位置,再将该位置转为二维空间里的下标 注:下标比较难弄,得注意点 复杂度: 时间O(log n),空间O(1) 相关题目: Search Insert Position...
分类:其他好文   时间:2014-05-15 07:24:42    阅读次数:253
leetCode解题报告5道题(七)
5道题目分别是:【Interleaving String】、【Validate Binary Search Tree】、【Sqrt(x) 】、【Recover Binary Search Tree 】、【Climbing Stairs 】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录。...
分类:其他好文   时间:2014-05-15 06:30:55    阅读次数:301
BFS/DFS算法介绍与实现(转)
广度优先搜索(Breadth-First-Search)和深度优先搜索(Deep-First-Search)是搜索策略中最经常用到的两种方法,特别常用于图的搜索.其中有很多的算法都用到了这两种思想,比如:Dijkstra单源最短路径算法和Prim最小生成树算法都采用了和宽度优先搜索类似的思想。BFS...
分类:其他好文   时间:2014-05-14 12:29:53    阅读次数:544
学习mysql存储过程,并且用到游标
定义一个存储过程,用到游标,从一个表中取值,插入到另外一个表中。drop procedure if exists search_test;create procedure search_test(in id int,out out_min_id varchar(200))begindeclare f...
分类:数据库   时间:2014-05-14 07:41:31    阅读次数:361
数据库索引设计的几个常用算法
参考:http://blog.csdn.net/yangbutao/article/details/8372511B+、B- Tree(mysql,oracle,mongodb)主要用在关系数据库的索引中,如oracle,mysql innodb;mongodb中的索引也是B-树实现的;还有HBas...
分类:数据库   时间:2014-05-14 02:13:08    阅读次数:398
Leetcode 树 Unique Binary Search Trees
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Unique Binary Search Trees  Total Accepted: 13478 Total Submissions: 37858 Given n, how many structurally unique BST's (bin...
分类:其他好文   时间:2014-05-13 15:21:22    阅读次数:291
InnoDB全文索引停止词(stopwords)设计的缺陷
全文索引FULLTEXT首次运用在了InnoDB引擎上,最近在研究过程中发现停止词(stopwords)设计的缺陷。何为停止词?就是指不想用户在搜索的时候能搜到‘李洪志大师’、‘法轮大法’等词汇,需要事先定义好停止词,这样就不会被搜索到。但设计的缺陷是,你必须事先就定义好,假如日..
分类:数据库   时间:2014-05-13 01:11:29    阅读次数:388
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!