我對這個東西真的很陌生,所以我爲這裏的無所不在而道歉。 構建一個Deterministic Finite Automaton DFA識別下列語言: L= { w : w has at least two a's and an odd number of b's}.
的自動執行此(at least 2 a's, odd # of b's)的每一部分都容易使分開......任何人都可以請解釋一個系
我想創建一個基於應用函數的結果的索引,我必須提取一個數字。 Example String: ...someText...&idDocunet=799493...someText...
[799493] <- Note the number
The function: replace(regexp_substr(parametros, '&idDocunet=\d+'),
我是學生,在編程課程中我們必須學習Haskell。所以我是新手,並沒有那麼多的經驗。此外,我不熟悉在論壇中發佈問題。 所以首先我將張貼在圖書館,我有工作。 (DA:確定性自動機) type State = Integer
type DA = (State, State -> Char -> State, State -> Bool)
type ListDA = (State, [((State