博客 / 列表

codists - 《自動機理論、語言和計算導論》閲讀筆記:p428-p525

《自動機理論、語言和計算導論》學習第 14 天,p428-p525總結,總計 98 頁。 一、技術總結 1.Kruskal's algorithm(克魯斯克爾算法) 2.NP-Complete Problems p434, We say L is NP-complete if the following statements are true about L: (1)L is in NP。 (2)

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p402-p427

《自動機理論、語言和計算導論》學習第 13 天,p402-P427總結,總計 26 頁。 一、技術總結 無。 二、英語總結 1.elude e--,assimilated form of ex-(out, away) + ludere(to play, see ludicrous)。vt. if sth you want eludes you, you do not succeed in achi

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p352-P401

《自動機理論、語言和計算導論》學習第 12 天,p352-P401總結,總計 50 頁。 一、技術總結 1.Turing Machine(TM) 2.undecidability ​ a.Ld(the diagonalization language) 3.reduction p392, In general, if we have an algorithm to convert instance

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p261-p314

《自動機理論、語言和計算導論》學習第 10 天,p261-p314總結,總計 48 頁。 一、技術總結 1.generating reachable 2.Chomsky Normal Form(CNF) 喬姆斯基範式。 3.pumping lemma 泵作用引理。引理:引理是數學中為了取得某個更好的結論而作為步驟的已證明命題,其意義並不在於自身已完成證明,而在於其為了達成最終目的而做出貢獻。 4

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p225-p260

《自動機理論、語言和計算導論》學習第 9 天,p225-p260總結,總計 26 頁。 一、技術總結 1.pushdown automation(PDA,下推自動機) 2.DPDA Deterministic PDA(確定性下推自動機)。 二、英語總結 1.instantaneous (1)instant: adj. happing immediately。n. an extremely shor

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p172-p224

《自動機理論、語言和計算導論》學習第 8 天,p172-p224總結,總計 53 頁。 一、技術總結 1.Context-Free Grammar(CFG) 2.parse tree (1)定義 p183,But perhaps more importantly, the tree, known as a "parse tree", when used in a compiler, is the

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p139-p171

《自動機理論、語言和計算導論》學習第 7 天,p139-p171總結,總計 33 頁。 一、技術總結 1.reversal p139, The reversal of a string a1a2...an is the string written backwards, that is anan-1...a1. 2.homomorphism A string homomorphism is a f

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p115-p138

《自動機理論、語言和計算導論》學習第 6 天,p115-p138 總結,總計 24 頁。 一、技術總結 1.associativity and comutativity (1)commutativity(交換性): Commutativity is the property of an operator that says we can switch the order of its operan

編譯原理

codists - 《自動機理論、語言和計算導論》閲讀筆記:p49-p67

《自動機理論、語言和計算導論》學習第4天,p49-p67總結,總計19頁。 一、技術總結 1.Deterministic Finite Automata(DFA) vs Nondeterministic Finite Automata(NFA) (1)DFA定義 (2)NFA定義 A "nonedeterministic" finite automata has the power to

編譯原理

codists - Programming Abstractions in C閲讀筆記:p338-p346

《Programming Abstractions in C》學習第80天,p338-p346,總計9頁。 一、技術總結 棧的實現包括入棧、出棧、判斷棧是否為滿,判斷棧是否為空等。作者結合RPN計算器來實現,稍顯無聊。 /* * File: rpncalc.c * --------------- * This program simulates an electronic calculato

數據結構與算法 , c

codists - Programming Abstractions in C閲讀筆記:p306-p307

《Programming Abstractions in C》學習第75天,p306-p307總結,總計2頁。 一、技術總結 1.Quicksort algorithm(快速排序) 由法國計算機科學家C.A.R(Charles Antony Richard) Hoare(東尼.霍爾)在1959年開發(develop), 1961年發表(publish)。 這裏吐槽下維基百科的中文介紹:"在平均狀況

數據結構與算法

codists - Programming Abstractions in C閲讀筆記:p72-p75

《Programming Abstractions In C》閲讀P72-p75,每次閲讀其實都有很多內容需要總結,這裏摘抄其中一部分。 一、技術總結 1.字符串數組 學習《Programming Abstractions in C》第75頁的時候,遇到一段代碼: static string bigCities[] = { "New York", "Los An

數據結構與算法 , c

codists - 翻譯:《實用的Python編程》04_04_Defining_exceptions

目錄 | 上一節 (4.3 特殊方法) | 下一節 (5 對象模型) 4.4 定義異常 用户可以通過類實現自定義異常: class NetworkError(Exception): pass 異常類始終繼承自 Exception 它們通常是空類。空類內部使用 pass 表示。 你也可以對異常進行分層: class AuthenticationError(NetworkError):

exception , Python