刚看到堆排序,顺便记录一下关于树的一些基本概念:前言前面介绍的栈、队列都是线性结构(linear structure)。而树是非线性结构(non-linear structure)。因此,树中的元素之间一般不存在类似于线性结构的一对一的关系,更多地表现为多对多的关系。直观地看,它是数据元素(在树中称...
分类:
其他好文 时间:
2014-11-02 00:30:06
阅读次数:
258
What is a high-performance data structure? To answer that question, we're used to applying normal considerations like Big-Oh complexity, and memory ov...
分类:
其他好文 时间:
2014-10-31 20:32:41
阅读次数:
153
10、结构体(Structure) 10.1结构体的定义 打印:12 10.2结构体的构造函数 打印:21 10.3结构体是值类型 打印:"HuaHua",说明myTV的值没有改变,说明是值类型 10.4了解结构体和类的选择 11、协议(Protot...
分类:
编程语言 时间:
2014-10-31 20:28:30
阅读次数:
195
一、进入IDE界面cd ~/Downloads/idea/binidea.sh二、建立scala项目Step 1:导入Spark-hadoop对应的包,次选择“File”–> “Project Structure” –> “Libraries”,选择“+”,将spark-hadoop 对应的包导入:...
分类:
系统相关 时间:
2014-10-29 23:29:50
阅读次数:
335
Objective-C与C++、Java等面向对象语言类似,不过很多方面有所差别。若是用过另一种面向对象语言,那么就能理解Objective-C所用的许多范式与模板了。然而语法上也许会显得陌生,因为该语言使用“消息结构”(messaging structure)而非“函数调用”(function c...
分类:
移动开发 时间:
2014-10-28 23:40:47
阅读次数:
374
container_of宏剖析//该宏位于include/linux/kernel.h1.定义格式/** * container_of - cast a member of a structure out to the containing structure * * @ptr: th...
分类:
其他好文 时间:
2014-10-28 19:33:33
阅读次数:
255
和JSswitch的语法一样?Switch Statements and the Ternary Operator are alternatives to if-else control structures for making decisions. The basic structure of ...
分类:
其他好文 时间:
2014-10-28 15:31:00
阅读次数:
286
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:
编程语言 时间:
2014-10-25 22:57:35
阅读次数:
480
http://acm.whu.edu.cn/land/problem/detail?problem_id=1047
Description
Recently, Flymouse reads a book about Algorithm and Data Structure. The book reads: there are two types of LCS Problems. One...
分类:
编程语言 时间:
2014-10-25 21:33:28
阅读次数:
291
AndroidStudio导入现有的项目:
打开File--Project Structure...
点击左上角的绿色加号:
选择Import Existing Project(导入现有项目);
选择现有项目的目录:
然后就是Next--Finish;
导入完成就可以在Project中看到;...
分类:
移动开发 时间:
2014-10-23 16:28:36
阅读次数:
247