|
|
|
|
|
by aminit
4189 days ago
|
|
I exaggerated a little with this randomness. Let me explain: Given the same input Prolog program and imperative (Pascal?) one will give the same results. Because Prolog is imperative. Non-imparative languages give estimated results (actually I don't know any of these). Why? Because for example data is too large to do simple things like counting all elements. Thats non-imperative. Result is no longer based on what is in the data space, but based on its characteristics. For example, you may calculate a number of helium atoms in a cubic inch, but you will never do such thing like counting them one by one (imperative way). |
|
Imperative programs have a state or virtual machine that is manipulated by the program. All programs, at heart, are imperative, but higher level constructs allow for procedural or declarative programming which abstracts away the lower-level imperative bits.
No I have not had lunch yet.