
算法
文章平均质量分 77
happysalay
这个作者很懒,什么都没留下…
展开
-
循环赛问题
源于论坛一个帖子,从一个各元素不同的偶数个元素数组(比如[1 2 3 4 5 6])中任取两个元素的组合,然后将这些所有两个元素的组合分成若干组,每组都能重新组成新数组,而这个新数组正好与原来数组相同,问当这个偶数数组是1-100时,一共能排列成多少种,并一一列举出来。论坛回复有两种比较好的方法,我只看懂了一种,发下:比如数组1-6,[1 2 3 4 5 6],任意取两个元素一共有12,13,原创 2009-09-20 10:15:00 · 970 阅读 · 0 评论 -
LL parser From Wikipedia, the free encyclopedia
An LL parser is a top-down parser for a subset of the context-free grammars. It parses the input from Left to right, and constructs a Leftmost derivationof the sentence (hence LL, compared with LR p原创 2010-02-10 23:31:00 · 844 阅读 · 0 评论 -
Lookahead From Wikipedia, the free encyclopedia
Lookahead in search problemsIn artificial intelligence, lookahead is an important component of combinatorial search which specifies, roughly, how deeply the graph representing the problem is explo原创 2010-02-10 23:16:00 · 568 阅读 · 0 评论