由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 看到一个longest increasing subsequence挺有意思的算法
相关主题
Longest Increasing Subsequence O(NLOG(N)) 解法longest increase subsequence
longest increasing subsequence O(NlogN)算法中数组 P 是否必find all longest increasing subsequence 谁有源码?
一道 facebook 电面题Longest Increasing Subsequence要掌握nlogn的解法吗?
nlogn for longest increasing subsequenceMaximum Sum of Increasing Sequence
g公司面试问Longest increasing subsequence,意义在哪里?面试题count # of increasing subsequences of String求解
Longest Increasing Subsequence用binary还能输出结果数组吗?一朋友被Google的电面干掉了 (转载)
求Longest_Increasing_Subsequence JAVA O(nlgn) 代码数组里找最大集合,该集合排序后是序列,有漂亮解法么?
帮忙看个题被简单题给虐了。
相关话题的讨论汇总
话题: longest话题: use话题: dp话题: common
进入JobHunting版参与讨论
1 (共1页)
C***U
发帖数: 2406
1
1 Make a sorted copy of the sequence A, denoted as B. O(nlog(n)) time.
2 Use Longest Common Subsequence on with A and B. DP(O(n^2)时间)
是O(n^2)时间了 比最优的要差一些了
刚才搞错了
f*********i
发帖数: 197
2
2 Use Longest Common Subsequence on with A and B. DP(O(n)时间)
how to do that in O(n)?
C***U
发帖数: 2406
3
第二个是O(n^2)时间
构造那个路径是O(n)时间 看错了
不过想想也是O(n^2)时间 要构造那个table么
刚才没仔细想

【在 f*********i 的大作中提到】
: 2 Use Longest Common Subsequence on with A and B. DP(O(n)时间)
: how to do that in O(n)?

1 (共1页)
进入JobHunting版参与讨论
相关主题
被简单题给虐了。g公司面试问Longest increasing subsequence,意义在哪里?
Google onsite问题Longest Increasing Subsequence用binary还能输出结果数组吗?
google题求Longest_Increasing_Subsequence JAVA O(nlgn) 代码
Facebook interview 面经帮忙看个题
Longest Increasing Subsequence O(NLOG(N)) 解法longest increase subsequence
longest increasing subsequence O(NlogN)算法中数组 P 是否必find all longest increasing subsequence 谁有源码?
一道 facebook 电面题Longest Increasing Subsequence要掌握nlogn的解法吗?
nlogn for longest increasing subsequenceMaximum Sum of Increasing Sequence
相关话题的讨论汇总
话题: longest话题: use话题: dp话题: common