freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

編譯原理課程設(shè)計--nfa轉(zhuǎn)化為dfa的轉(zhuǎn)換算法及實現(xiàn)-其他專業(yè)-在線瀏覽

2025-03-24 02:55本頁面
  

【正文】 FA轉(zhuǎn)化為 DFA的轉(zhuǎn)換算法及實現(xiàn) 二級學(xué)院: 數(shù)學(xué)與計算機科學(xué)學(xué)院 專 業(yè): 計算機科學(xué)與技術(shù) 班 級: 計科本 091班 姓 名: 林玉蘭 學(xué) 號: 0904402102 指導(dǎo)老師: 梁德塞 日 期: 2021年 6月 摘要 確定有限自動機確定的含義是在某種狀態(tài),面臨一個特定的符號只有一個轉(zhuǎn)換,進入唯一的一個狀態(tài)。不確定的有限自動機則相反,在某種狀態(tài)下,面臨一個特定的符號是存在不止一個轉(zhuǎn)換,即是可以允許進入一個狀態(tài)集合。這種不確定性給識別過程帶來的反復(fù),無疑會影響到 FA 的工作效率。 對于任意的一個不確定有限自動機( NFA)都會存在一個等價的確定的有限自動機( DFA),即 L(N)=L(M)。 關(guān)鍵詞: 有限自動機;確定有限自動機( DFA),不確定有限自動機( NFA) Abstract Finite automata is determinate and indeterminate two class. Determine the meaning is in a certain state, faces a particular symbol only one conversion, enter only one state. Not deterministic finite automata is the opposite, in a certain state, faces a particular symbol is the presence of more than one conversion, that is to be allowed to enter a state set. Non deterministic finite state automata NFA, because of some state are transferred from a number of possible followup state are chosen, so a NFA symbol string recognition must be a trial process. This uncertainty to the recognition process brought about by repeated, will undoubtedly affect the efficiency of the FA. While the DFA is determined, converting NFA to DFA will greatly improve the working efficiency, thus converting NFA to DFA is its necessary. For any a nondeterministic finite automaton ( NFA ) can be an equivalent deterministic finite automaton ( DFA ), L ( N ) =L ( M ). This paper mainly introduces how to convert NFA to equivalent simplified DFA, through concrete examples, bined with graphics, a detailed description of the algorithm principle of conversion. Keywords: : finite automata。 有限自動機( Finite Automate)是用來模擬實物系統(tǒng)的數(shù)學(xué)模型,它包括如下五個部分: ? 有窮狀態(tài)集 States ? 輸入字符集 Input symbols ? 轉(zhuǎn)移函數(shù) Transitions ? 起始狀態(tài) Start state ? 接 受狀態(tài) Accepting state(s) 實踐目的 ( 1)設(shè)計、編制、調(diào)式一個有窮自動機程序,加深對 NFA 轉(zhuǎn)換為 DFA的原理的理解。 課程實踐的意義 通過本課程設(shè)計教學(xué)所可以使我們充分理解和掌握 NFA, DFA 以及 NFA 確定化過程的相關(guān)概念和知識,理解和掌握子集法的相關(guān)知識和應(yīng)用,編程實現(xiàn)對輸入 NFA 轉(zhuǎn)換成 DFA 輸出的功能。用雙箭頭 =標(biāo)明初態(tài);否則第一行即是初態(tài),相應(yīng)終態(tài)行在表的右端標(biāo)以 1,非終態(tài)標(biāo)以 0. U S V Q a b a a a,b b b 第 5 頁,共 22 頁 狀態(tài) 字符 a b S U V 0 U Q V 0 V U Q 0 Q Q Q 1 3.從 NDF 到 DFA 的等價變化步驟 事 實已經(jīng)證明了不管是非確定的有限自動機 M 還是具有ε 轉(zhuǎn)移的非確定的有限自動機,都可以找到一個與之等價的確定有限自動機,使得 L( M) =L( M’)。該 DFA 使用它的狀態(tài)去記錄在 NFA 讀入一個輸入符號后可能到達(dá)的所有狀態(tài),也就是說,在讀入符號串 a1a2a3? an 之后,該 DFA 處在這樣一個狀態(tài),該狀態(tài)表示這個 NFA 的狀態(tài)的一個 子集 T,而 T是從 NFA 的開始狀態(tài)沿著某個標(biāo)記為 a1a2a3? an的路徑可以到達(dá)的那些狀態(tài)。 狀態(tài)集合 I 的 a 弧轉(zhuǎn)換 Ia:定義為一狀態(tài)集,是指從狀態(tài)集 I出發(fā)先經(jīng)過 a弧后再經(jīng)過若干條 ε 弧而能到達(dá)的狀態(tài)的集合。 第 6 頁,共 22 頁 s 表示 NFA 的狀態(tài), T 表示 NFA 的狀態(tài)集合, a表 示一個 input symbol ε transition(ε轉(zhuǎn)換 )就是說 input symbol 為ε時的 transition(轉(zhuǎn)換 ) 操作(operation) 描述 (description) εclosure(s) 從 NFA 的狀態(tài) s出發(fā),只通過ε transition 到達(dá)的 NFA 的狀態(tài)集合 εclosure(T) NFA的集合 T中的狀態(tài) p,只通過ε transition 到達(dá)的 NFA的狀態(tài)集合,再求這些集合的交集。 以下面的基于字母表 Σ ={a,b}上的具有ε 轉(zhuǎn)移的非確定
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1