2009年2月26日 星期四

[EE_CSIE] 成績單

.
 今天收到學校寄來的成績單ㄌ ...  
5134 正規語言 3學分 成績 92  
5146 論文研究 2學分 成績90 

呵呵~ 真是太高興啦~~~ 
 回想碩二上學期修 正規語言,確實花了不少時間、精力, 幾乎每天就抱著那本書 ... 
每次上完課,都還不是很懂,大家頭上一堆問號 ... 
K完原文書,再看講義,才漸入佳境 ... 
每兩週還要想辦法 寫作業 交作業,有時候解個一題就花一個下午 ... ㄎㄎㄎ ... 
但是對 演算法(Algorithm) 有興趣的,一定要修這門 ... 
非常有趣 :D 聽說 交大博士班資格考 有考這門科目 ... 
就知道果然是 不簡單 ... 

 -------------------------------------------------------- 
目前的戰績是 24 學分,剩 0 學分: 
942 Embedded O.S. Design (嵌入式系統設計) 
951 Operating System (作業系統) 
953 Asynchronous Circuit Design (非同步電路設計) 
961 Computer Architecture (計算機結構) 
962 Advanced Database Management System (高等資料庫管理系統) 
962 Multimedia Information System (多媒體資訊系統) 
963 Computer Operations, Organization and Categorization (計算機運算與組織) 
971 Formal Language (Regular Language) (正規語言) -------------------------------------------------------- 
 就剩下畢業論文ㄌ ... 要加油!


2009年2月5日 星期四

[歌詞] 童話


.
=== 童話 ===

作詞:光良 / 作曲:光良 / 編曲:Taichi Nakamura(Bluesofa)
忘了有多久 再沒聽到妳 對我說妳最愛的故事
我想了很久 我開始慌了 是不是我又做錯了甚麼
妳哭著對我說 童話裡都是騙人的 我不可能是妳的王子
 也許妳不會懂 從妳說愛我以後 我的天空星星都亮了
我願變成童話裡 妳愛的那個天使 張開雙手變成翅膀守護妳
 妳要相信 相信我們會像童話故事裡 幸福和快樂是結局
Repeat *,#

我要變成童話裡 妳愛的那個天使 張開雙手變成翅膀守護妳
妳要相信 相信我們會像童話故事裡 幸福和快樂是結局
我會變成童話裡 妳愛的那個天使 張開雙手變成翅膀守護妳
妳要相信 相信我們會像童話故事裡 幸福和快樂是結局 一起寫我們的結局
.End.
獻給 我愛 與 愛我 的 ............ 人兒們 ^^~

2008年12月13日 星期六

[EE_CSIE] P, NP, coNP, NP-COMPLETE, NP-HARD

.
  P, NP, coNP, NP-COMPLETE, NP-HARD   
[ class P ] : 可以用 Polynomial 演算法解決的問題,亦即解決時間為 Polynomial time. 
DEFINITION : The class of languages that are Decidable in Polynomial time on a Deterministic single-tape Turing Machine. 
=> 在 Deterministic 單 tape TM 上, 所有多項式時間內可解的 Decidable 語言所成的集合. 
=> 多項式時間, 亦即 t(n), 也就是 n 的 k 次方   
Example:  
1. PATH(有向圖的路徑問題) ∈ P  
2. RELPRIME(互為質數問題) ∈ P  
3. CFL(Every Context-free language) ∈ P   

[ class NP ] : 可以用 Non-deterministic Polynomial 演算法解決的問題. 
DEFINITION : The class of languages that have Polynomial time Verifiers. THEOREM : A language is in NP iff it is decided by some Non-deterministic Polynomial time Turing Machine.
 => 在 Nondeterministic TM (NTM N) 上, 多項式時間內可解的 Decidable 語言所成的集合. 
=> Nondeterministic 就是 多管齊下 ! 而 Verifying is easy, Determinig is hard.   
Example :  
1. CLIQUE (k-clique : Graph裡有k個nodes, 是彼此相連的) ∈ NP   
亦即 CLIQUE = { G is an undirected graph with k-clique } ∈ NP     
(Proof : The clique is the certificate. )   
V = "On input < , c > :      
1. Test whether c is a set of k nodes in G      
2. Test Whether G contains all edges connecting nodes in c      
3. If both pass, ACCEPT; Otherwise, REJECT."    
(Proof : by NTM. )   
N = "On input , where G is a graph :      
1. Nondeterministically select a subset c of k nodes of G      
2. Test whether G contains all edges connecting nodes in c      
3. If yes, ACCEPT; Otherwise, REJECT."    

2. SUBSET-SUM Problem (子集之和) ∈ NP   
亦即 SUBSET-SUM = { S = {x1, ...,xk} and for some {y1,...,yk} ⊆ {x1,...,xk}, we have ∑ yi = t } ∈ NP   
( 比如說:S = < { 2, 3, 8, 31, 40, 44 }, 45 > 中, 因為 3 + 3 + 8 + 31 = 45 ... 
所以 S 就是 SUBSET-SUM )   
(Proof : The subset is the certificate. )   
V = "On input < , c > :      
1. Test whether c is a collection of numbers that sum to t      
2. Test whether S contains all the numbers in c      
3. If both pass, ACCEPT; Otherwise, REJECT."     
(Proof : by NTM. )   
N = "On input :      
1. Nondeterministically select a subset c of the numbers in S      
2. Test whether c is a collection of numbers that sum to t      
3. If the test pass, ACCEPT; Otherwise, REJECT."   

[ class coNP ] : which contains the languages that are complements of languages in NP. (NP的補數) 

 [ P vs NP ] :   
P = the class of languages for which membership can be DECIDED quickly.  
NP = the class of languages for which membership can be VERIFIED quickly.  
  [ P = NP ? ] 或是 [ P ≠ NP ? ] : This is the greatest unsolved problems in Theoretical Computer Science and Contemporary Mathmatics.   

[ NP-COMPLETE ] : DEFINITION : A language B is NP-complete if it satisfies two conditions :       
1. B is in NP, and       
2. every A in NP is polynomial time reducible to B. (此2.亦即 NP-Hard)   

[ Polynomial time mapping reducible ]
DEFINITION : Language A is Polynomial Time Mapping Reducible to language B, written A ≤p B ,        if a Polynimial time computable function f : ∑* -> ∑* exists, where for every w,        w ∈ A <=> f(w) ∈ B        
The function f is called the Polynomial time reduction of A to B. 
=> This is also called [ Polynomial Time Reducible ] or [ Polynomial Time many-one reducibility ]   

[ NP-Hard ]
Every A in NP is polynomial time reducible to B. 
=> 任何 Language in NP 問題, 都可 Polynomial time reducible to B 
=> 若一 Problem, 是 NP Problem, 又是 NP-Hard Problem, 則就是NP-Complete Problem.  

2008年11月26日 星期三

[KUSO] 自助式加油站工讀生 最怕遇到怎樣的人?

.
[KUSO] 自助式加油站工讀生 最怕遇到怎樣的人?
.
..
...
. ... ...
. ... ... ...
. ... ... ... ...
. ... ... ... ... ...
. ... ... ... ... ... ...

Ans : 油槍滑掉 (油腔滑調) 的人 XD

2008年11月16日 星期日

[EE_CSIE] 正規語言 AUTOMATA DECIDABILITY

. . 今天為了證明 Let T = {(i, j, k) i, j, k ∈ N}. Show that T is countable. 就花了我不少時間 ... XD 最後來是用 3D (Three-dimensional) infinite matrix 乖乖的證完ㄌ ... lol