514-613-1276
contact@mengchenghui.com
工作时间:周一至周五10:00-17:00
热搜: 房产 留学 医疗

comp6651算法设计2012作业4

[复制链接]
10803 3
.Concordia百事通 发表于 2014-3-23 21:25:41 | 只看该作者 |阅读模式 打印 上一主题 下一主题 来自: 北美地区
Solve the following problems from your textbook (Introduction to Algorithms, second edition, by T.
Cormen, C. Leiserson, R. Rivest, C. Stein, McGraw Hill).

   Problem 1: 32.1-2
Suppose that all characters in the pattern P are different. Show how to accelerate NAIVE-
STRING-MATCHER to run in time O(n) on an n-character text T.

   Problem 2: 32.2-3
Show how to extend the Rabin-Karp method to handle the problem of looking for a given m × m
pattern in an n × n array of characters. (The pattern may be shifted vertically and horizontally,
but it may not be rotated.)

   Problem 3: 34.2-2
Prove that if G is an undirected bipartite graph with an odd number of vertices, then G is
nonhamiltonian.

   Problem 4: 34.2-7
Show that the hamiltonian-path problem can be solved in polynomial time on directed acyclic
graphs. Give an efficient algorithm for the problem.

   Problem 5: 34.3-1
Verify that the circuit in Figure 34.8(b) is unsatisfiable.

   Problem 6: 34.5-6
Show that the hamiltonian-path problem is NP-complete.
蒙城汇免责申明
本版块是提供给各类用户互动交流的非付费版块,蒙城汇不会对任何用户或商家发布的信息和服务问题负责,请各位用户自己做好交易方资质、服务内容审查等事宜。本网站中所载一切文字、图片、信息、广告、服务、或其他数据(以下简称“内容”),无论其为公开张贴或私下传送,若有不实、侵害他人权益或违法情况,均为“内容”提供者之责任,蒙城汇概不负责也不承担责任。

点评

游客
q/微信1922265079办毕业证成绩单、教育部学历认证、回国证明  发表于 2016-8-15 00:48
游客
q/微信2542395223办毕业证成绩单、教育部学历认证、回国证明  发表于 2016-5-8 10:26
收藏
收藏0
评分
评分
支持/赞
支持/赞0
反对/踩
反对/踩0

精彩评论3

跳转到指定楼层
沙发
mrbear 发表于 2014-4-20 15:17:17 | 只看该作者 来自: 江苏泰州
{:1_158:}
回复 支持 反对

使用道具 评分 举报

发布主题
推荐阅读更多+
广告位
加拿大蒙特利尔蒙城汇华人微博Montreal weibo    加拿大蒙特利尔蒙城汇华人Montreal Facebook    加拿大蒙特利尔蒙城汇华人Montreal twitter    加拿大蒙特利尔蒙城汇华人Montreal Youtube    加拿大蒙特利尔蒙城汇华人Montreal linkedin

QQ- Archiver小黑屋手机版 加拿大蒙特利尔蒙城汇网

© 2014-2024  加拿大蒙特利尔蒙城汇网 版权所有   技术支持:萌村老王