Given two binary trees, write a function to check if they are equal or not.
分类:
其他好文 时间:
2014-07-03 19:26:46
阅读次数:
213
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
其他好文 时间:
2014-07-02 22:13:23
阅读次数:
191
Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally i...
分类:
其他好文 时间:
2014-07-02 17:56:50
阅读次数:
205
还是读了很长时间的题,不过题本身很简单。可以把四棵树想象成正方形的四个顶点,已知两个相对顶点的坐标,求另外两个坐标。不过,原题可没直接这么说,中间需要一些小证明。题中说有一个平行四边形然后分别以四条边为边长向外作正方形,四棵树就在四个正方形中心的位置。这是我用几何画板画的图。下面证△FOE≌△HGO...
分类:
其他好文 时间:
2014-07-01 10:14:31
阅读次数:
316
DWR(Direct Web Remoting)是一个WEB远程调用框架.利用这个框架可以让AJAX开发变得很简单.利用DWR可以在客户端利用JavaScript直接调用服务端的Java方法并返回值给JavaScript就好像直接本地客户端调用一样(DWR根据Java类来动态生成JavaScrip代码).它的最新版本DWR0.6添加许多特性如:支持Dom
Trees的自动配置,支持Spring...
分类:
其他好文 时间:
2014-06-27 23:57:51
阅读次数:
543
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's...
分类:
其他好文 时间:
2014-06-27 18:22:07
阅读次数:
191
WpfDiagram是一款功能强大的流程图绘制控件,可以绘制工作流程图、对象层次和关系图、网络拓扑图、实体关系图、IVR、工业自动化、genealogy trees 、算法流程图、组织结构图、XML文档、类图等。杰出的功能、稳定的性能以及优雅的架构使它成为迄今为止MindFusion中最高级的编程控...
分类:
其他好文 时间:
2014-06-26 18:32:29
阅读次数:
195
凯莱公式:
spanning_trees_num( G ) = spanning_trees_num( G - e ) + spanning_trees_num( G · e )
矩阵树定理:
G 对应的拉普拉斯矩阵(度矩阵 - 邻接矩阵)L( G )
删除任意一行一列得到的行列式的值det( L*( G ) )
即生成树的个数,即spanning_trees_num( G...
分类:
其他好文 时间:
2014-06-24 22:05:54
阅读次数:
237
一、stanford trex 简介
http://nlp.stanford.edu/software/tregex.shtml
A java program for identifying patterns in trees
Like regular expressions for strings, b...
分类:
其他好文 时间:
2014-06-24 18:51:30
阅读次数:
344
题目:Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your...
分类:
其他好文 时间:
2014-06-22 13:49:21
阅读次数:
243