← 回題庫

卷別

資料結構與演算法(A)

選擇

國立臺灣大學 2021 · 考試 · 第 18 題

考科演算法

(5 points) Many string-matching algorithms build a finite automata. Below is a partially-completed state transition function δ\delta for a string ss of length 10 over the alphabet {A,B,C}\{A, B, C\} (columns are states 0…90\dots9; a blank means unspecified). It is possible to reconstruct ss from the partial table. How many A's does the string ss have?

δ\delta0123456789
A452
B0073
C00010
  • (A)
    4
  • (B)
    5
  • (C)
    6
  • (D)
    7

標準解析

AI 已複查