Here is a class for binary trees that directly implements the recursive definition. By extending the AbstractCollectionclass, it remains consistent with the Java Collections Framework....
分类:
其他好文 时间:
2014-08-20 00:04:26
阅读次数:
307
[Definitions]
Here is the recursive definition of a binary tree:
A binary tree is either the empty set or a triple T = (x,L,R), where x is a node and L and R are disjoint binary trees, neither of wh...
分类:
其他好文 时间:
2014-08-18 01:34:43
阅读次数:
216
【Description】
At ree is a nonlinear data structure that models a hierarchical organization. The characteristic eatures are that each element may have several successors (called its “children”) and ev...
分类:
其他好文 时间:
2014-08-17 22:47:03
阅读次数:
275
Do you know how to init list in other way except for new object? The following will give you serveral tips. If having other great idea, you are welcome to share.
[java] view
plaincopy
...
分类:
编程语言 时间:
2014-08-14 01:30:37
阅读次数:
281
When learning the usage of map collection in java, I found serveral beneficial methods that was encountered in the daily life. Now I made a summary:
[java] view
plaincopy
i...
分类:
编程语言 时间:
2014-08-14 01:30:28
阅读次数:
207
In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the document of java api, the result is so satisfying that ...
分类:
编程语言 时间:
2014-08-14 01:30:17
阅读次数:
256
Faced with the upcoming exam, Some useful methods referred to file operation drew tremenous attention. Now I make a summary to reading file.
[java] view
plaincopy
import java...
分类:
其他好文 时间:
2014-08-14 01:30:09
阅读次数:
331
Statements: This blog was written by me, but most of content is quoted from book【Data Structure with Java Hubbard】
【Description】
Apolynomialis a mathematical function of the fo...
分类:
其他好文 时间:
2014-08-11 21:22:42
阅读次数:
308
Statements: This blog was written by me, but most of content is quoted from book【Data Structure with Java Hubbard】
【Description】
Alistis a collection of elements that are accessible sequential...
分类:
其他好文 时间:
2014-08-11 00:28:31
阅读次数:
221
【Description】
This problem is based upon a report by the historian Joseph ben Matthias (Josephus) on the outcome of a suicide pact that he had made between himself and 40 soldiers as they were besi...
分类:
其他好文 时间:
2014-08-11 00:27:51
阅读次数:
235