- Paradigm can also be termed as method to solve some problem or do some task.
- A programming paradigm is a style, or “way,” of programming.
- Main paradigms in scientific computation (many others for other fields):
- Imperative.
- Functional.
- Logical
- Object-Oriented.
- Imperative
- The language provides statements, such as assignment statements , which explicitly change the state of the memory of the computer.
- The basic idea is the command, which has a measurable effect on the program state.
“ First do this and next do that “
- Functional
- In this paradigm we express computations as the evaluation of mathematical functions.
“ Evaluate an expression and use the resulting value for something “
- Logic
- The logic paradigm fits extremely well when applied in problem domains that deal with the extraction of knowledge from basic facts and relations.
“ Answer a question via search for a solution “
- Object-Oriented
- In this paradigm we associate behavior with data-structures called “objects ” which belong to classes which are usually structured into a hierarchy.
“ Send messages between objects to simulate the temporal evolution of a set of real
world phenomena “