Standford的一个算法作业题
Maximum sum of increasing subsequence
Given an integer array, how will you find out the increasing subsequence which gives the largest sum. For example,
50,23,1,67,30 in this subsequence a few possible increasing subsequences are
1) 23,30
2) 23,67
2) 50,67
3) 1,67
4) 1,30
5) 67
6) 30
but50, 67 gives the maximum sum. How to find it?
我只能想到n^的算法,在网上搜索heaviest increasing string,有现成的解法,复杂度为nlgn,但没看明白.....
Given an integer array, how will you find out the increasing subsequence which gives the largest sum. For example,
50,23,1,67,30 in this subsequence a few possible increasing subsequences are
1) 23,30
2) 23,67
2) 50,67
3) 1,67
4) 1,30
5) 67
6) 30
but50, 67 gives the maximum sum. How to find it?
我只能想到n^的算法,在网上搜索heaviest increasing string,有现成的解法,复杂度为nlgn,但没看明白.....
...全文
相关推荐
Coursera_Standford_Algorithm:Standford算法编程问题的解决方案
Coursera Standford Algorithm 斯坦福大学教授Tim Garden的算法课,学英语、学算法的必备良课。 该项目是我在学习这门课时的编程习题。总共包括partone和parttwo两部分,每部分各有6周的习题。
Standford NER(
Standford NER(Stanford Named Entity Recognizer )是斯坦福大学提供开源命名实体识别库,使用Java语言实现, 可以用来识别文本中的人名、地名、组织名称等实体
standford_cars.zip
standford_cars.zip
局部敏感哈希,standford 课件
这个是standford 关于局部敏感哈希的课件。主要就是介绍了什么是局部敏感hash,minhash 的主要思想,以及相应的算法,怎么生成signature matrix 的基本算法,以及相关的运用。
standford nlp class pdf2
standford nlp class pdf


