手机扫码访问

导航
您当前的位置:首页 > 高教类 > 工学类
问题:

[单选题]How to measure the efficiency of a given algorithm for string matching? 给定一个进行串匹配的算法,如何衡量它的效率?Dcy答案窝(daanwo.com)-大学作业答案分享平台
ABy generating large amount of random inputs and measure the run time empirically Dcy答案窝(daanwo.com)-大学作业答案分享平台
随机生成大量的文本串T和模式串P作为输入,通过实验的方法进行测量Dcy答案窝(daanwo.com)-大学作业答案分享平台
BBy assuming uniform probability distribution for text strings and patterns, and calculating the expectation accordingly Dcy答案窝(daanwo.com)-大学作业答案分享平台
认为所有不同文本串T和模式串P出现的概率是相等的,依此计算时间复杂度的期望Dcy答案窝(daanwo.com)-大学作业答案分享平台
CBy analyzing the different cases when the match succeeds and fails Dcy答案窝(daanwo.com)-大学作业答案分享平台
对于成功匹配和失败匹配两种情况分别讨论其时间复杂度Dcy答案窝(daanwo.com)-大学作业答案分享平台
DBy calculating the expectation assuming a fixed text string and random patterns Dcy答案窝(daanwo.com)-大学作业答案分享平台
选取固定的文本串T,随机选取模式串P,计算时间复杂度的期望
答案解析:

相关问题
关于我们 | 用户指南 | 版权声明 | 给我留言 | 联系我们 | 积分商城 | 答案求助 | 网站地图
Copyright © 2020 www.daanwo.com All Rights Reserved