摘要:
1、What is AVL tree? AVL tree 是一种特殊的二叉查找树,,首先我们要在树中引入平衡因子balance,表示结点右子树的高度减去左子树的高度差(右-左),对于一棵AVL树要么它是一棵空树,要么它是一棵高度平衡的二叉查找树,平衡因子balance绝对值不超过1 非平衡的二叉查找 阅读全文
摘要:
1. Definiation What is Binary Trees? Collection of node (n>=0) and in which no node can have more than two children. 或为空集,或为有一个根节点和两棵互不相交的二叉树组成 左子树与右子 阅读全文
摘要:
String Matching Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 4074 Accepted: 2077 Description It's easy to tell if two words are identica 阅读全文
摘要:
1. Definiation A Tree is a collection of nodes. The collection can be empty; otherwise, a tree consists of a distinguished node r, called root and zer 阅读全文
摘要:
We have a lot of ways to solve the maximum subsequence sum problem, but different ways take different time. 1、Brute-force algorithm 2、a little imporve 阅读全文