• 2022-06-16
    What's the time complexity for brute-force matching of a text string of size n and a patter of size m?文本串T的长度为n,模式串P的长度为m,蛮力匹配算法的最坏时间复杂度为
    A: O(m)
    B: O(n)
    C: O(mn)
    D: O(m/n)