deterministic VS non-deterministic algorithm

[***以下為個人理解,如有錯誤歡迎指證***]
[***This article may contain mistakes and thus any correction is greatly appreciated***]

今天在複習 apriori algorithm 時,由於書上說 association rule mining 的結果是唯一性的,讓我想到個問題:這個演算法是 deterministic 還是 non-deterministic ?
唯一性的直覺是 deterministic,只是當下無法說出 deterministic、non-deterministic、NP的定義,所以趕緊來複習一下。(慚愧...)

[non- deterministic]
(1) an algorithm exhibits different behaviors in different runs.
(2) WIKI 的例子:若用從 1 input 到 1 outcome 的 1 1path 表示 deterministic algo.,則 non-deterministic algo. 表示 1 input 到 N outcomes 的 M paths 的其中一條.
(3) 在 computational theory 中,我們所講的 algorithms 大多都是屬於 deterministic algo.。
(4) 似乎一些研究都是透過 deterministic algo 加上一些手法 ex. approximation、probabilistic random 來解決現實中 non-deterministic 的問題。

[NP] non-deterministic and polynomial
*記得P = NP 問題已經在前一年被 Stamford 的學生證明了。


[參考]
1. wiki

Comments

Popular posts from this blog

股票評價(Stock Valuation) - 股利折現模型

openwrt feed的使用

How to convert Markdown into HTML