- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
生物资讯相关演算法文档资料
2003/10/21 Algorithms in Bioinformatics, Lecture 5 生物資訊相關演算法Algorithms in Bioinformatics 呂學一 (中央研究院 資訊科學所) .tw/~hil/ Today Applications of suffix trees Substring problem (暖身) “Exact string matching” revisited Linearization of circular string (挪移乾坤) Longest common substring (異中求同) Intermission – 小巨’s magic show The Lure of Queen (皇后的魅惑) Application One Substring Problem (recap as a warm-up) Substring Problem Input: two strings P and S, where S is allowed to be preprocessed in O(|S|) time. Output: an occurrence of P in S. Objective: done in O(|P|) time. S=bbabbaab S=bbabbaab S=bbabbaab Application Two Exact String Matching Exact String Matching Input: two strings P and S, where S is allowed to be preprocessed in O(|S|) time. Output: all occurrences of P in S. Challenge: solving this in O(|P| + k) time, where k is the number of occurrences of P in S. Idea Each internal node keeps the labels of all its descendant leaves. S=bbabbaab 123456789 S=bbabbaab$ Perhaps not… S = a a a a a $ An observation Consider the sequence L of leaves from left to right. The descendant leaves of each internal node has to be consecutive in L. 123456789 S=bbabbaab$ Application Three Circular String Linearization (挪移乾坤) Notation Let 挪(S, i) denote the string S[i…|S|] S[1…i – 1]. The problem Input a string S. Output an index i that maximizes the alphabetical order of 挪(S, i). 1 2 3 4 5 6 7 8 挪(S,1) = b b a b b a a b 挪(S,2) = b a b b a a b b 挪(S,3) = a b b a a b b b 挪(S,4) = b b a a b b b a 挪(S,5) = b a a b b b a b 挪(S,6) = a a b b b a b b 挪(S,7) = a b b b a b b a 挪(S,8) = b b b a b b a a Na?ve algorithm let j = 1; for i = 2 to |S| do { if (挪(S,i) 挪(S,j)) { let j = i; } } output j; Q: Can we beat O(|S|2)? Linear-Time Algorithm via Suffix Tree First attempt – going right Second Attempt Suffix tree for SS Key observation Each length-|S| substring of SS is a 挪(S, j) for some index j with 1≤ j ≤ |S|. Each 挪(S, j) wit
您可能关注的文档
最近下载
- 第3课+追求人生理想+第一框+第3目【中职专用】2024-2025学年中职思想政治《哲学与人生》(高教版2023基础模块).pptx VIP
- 2011年考研英语二真题及答案解析.pdf VIP
- 《建筑施工企业碳排放统计核算标准》.pdf
- 面向教学评价的情感分类.pptx VIP
- 人教A版必修第一册高中数学2.1等式性质与不等式性质【教学课件】.pptx VIP
- 《中药材炮制加工方法图解》.pdf VIP
- 小学残疾儿童送教上门教案(40篇).pdf VIP
- 羊群效应——一个班级最可怕的存在!--高一上学期班级凝聚力主题班会课件.pptx VIP
- Apple 环保系统操作说明FMD_Portal_TRM_Training.pdf
- 厄瓜多尔介绍PPT.pptx
文档评论(0)