问题:
[单选题]We are search a pattern of size m in a text string of size n using the BM algorithm with BC+GS strategy. What's the time complexity for the best/worst case?HFs答案窝(daanwo.com)-大学作业答案分享平台
在长度为n的文本串中查找长度为m的模式串HFs答案窝(daanwo.com)-大学作业答案分享平台
使用BC+GS策略的BM算法,最好和最坏情况下的时间复杂度分别为:HFs答案窝(daanwo.com)-大学作业答案分享平台
AO(n), O(m+n)HFs答案窝(daanwo.com)-大学作业答案分享平台
BO(n/m), O(m+n)HFs答案窝(daanwo.com)-大学作业答案分享平台
CO(n+m), O(mn)HFs答案窝(daanwo.com)-大学作业答案分享平台
DO(m), O(mn)