Send Close Add comments: (status displays here)
Got it!  This site "creationpie.org" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.  Note: This appears on each machine/browser from which this site is accessed.
Duality principles
by RS  admin@creationpie.org : 1024 x 640


1. Duality principles
Under development.

2. Duality principles
Yin yang Necker Cube
There are areas of study where there is more than one way to view things.
In ancient China, the yin and yang symbol represents a philosophy of how opposite ideas may be complementary or in some way connected.

The literal meaning of the Chinese symbol for yin yang is "陰陽" and is composed of "dark light".

Some of the same ideas or found in the writings of Greek philosophers including Aristotle.

A modern expression of this idea is a duality principle. A duality principle is two (or more) ways of looking at the same reality.

3. Aristotle: Topica
English: ... for example, in the case of clear and dim, for sound is said to be clear and dim and so is colour. Now there is no difference in the terms used, but the variation in kind is immediately obvious in their use; for clear is not used in the same sense as applied to colour and as applied to sound. (Loeb#391, p. 311)
Greek: … οἷον ἐπὶ τοῦ λευκοῦ καὶ μέλανος. Φωνὴ γὰρ λευκὴ καὶ μέλαινα λέγεται, ὁμοίως δὲ καὶ χρῶμα. Τοῖς μὲν οὖν ὀνόμασιν οὐδὲν διαφωνεῖ· τῷ δ´ εἴδει κατάδηλος ἐν αὐτοῖς εὐθέως ἡ διαφορά· οὐ γὰρ ὁμοίως τό τε χρῶμα λευκὸν λέγεται καὶ ἡ φωνή. Aristotle: Topica [106a]
Aristotle explains how words that are often translated as "white" and "black" have different meanings in different contexts.

4. Unclear, dark and black
*G3189 *3 μέλας (mel'-as) : apparently a primary word; black:--black.
Word usage per chapter Words: μελαιναν=1 μελας=2

The ancient Greek word "μέλας""dark, dim, indistinct" and, if the context is color, "black". It the source of the English word "melanoma" (dark skin spots), "melancholy" (dark bile) and "Melanie" which was a female name from ancient Greek.

Since this word appears only three times in the GNT (Greek New Testament) and once in this form, by Jesus, a play on words may be in play five verses later.
Greek: ... μελαιναν (dark, dim, indistinct)
Greek: ... μιλιον εν (mile one)
Greek: ... μυλιον εν (millstone one)
Both have the same consonants but somewhat similar vowel sounds. Both verses have to do with "communication" and "messages".

Information sign More: Matthew 5:41 Walk a mile for a camel
Information sign More: Matthew 5:33-37: Hairs of the head - yes no

5. Matthew 5:36 Hairs of the head
Matthew 5:36 Neither shalt thou swear by thy head, because thou canst not make one hair white or black. [kjv]
μητε εν τη κεφαλη σου ομοσης οτι ου δυνασαι μιαν τριχα λευκην ποιησαι η μελαιναν [gnt]


6. Perspective
Alan Kay (American computer scientist) . Talk at Creative Think seminar, 20 July 1982.
Kay uses the example of solving problems using polar coordinates rather than Cartesian coordinates. Each works better in certain circumstances. Kay developed (invented) object-oriented and user interface ideas that changed computer science and led to the modern window interface with icons, the mouse, etc.

Necker CubePrinciples of duality in many fields allow the same problem to be addressed from two seemingly different points of view.


Information sign More: Alan Kay

7. Duality in computation
There are two ways of looking at computation.
The good computer scientist needs to understand both views and how to switch between them as needed.

8. Duality in computer science
Computer science viewpoints
Machine Human
Turing machine Lambda calculus
How it works What it does
Bricklayer Architect
Engineering Mathematics
Efficiency Correctness
Run faster Run better
Save space Reduce redundancy
Small details Big picture
Programming language Pseudo‑code
Flow charts Pseudo‑code
Control flow Data flow
Code‑driven programming Data‑driven programming
Operational Denotational
Command Declarative
Imperative Functional
Procedures Functions
Bottom‑up Top‑down
Up the tree Down the tree
Synthesized Inherited
Inductive Deductive
Forward‑chaining Backward‑chaining
There are (at least) two ways of thinking about programming. A good computer scientist needs to use both ways.

Important developmental skills: cooking from recipes, making things in shop class, building with Lego's, playing from musical notations.


9. Colors and color models
Additive Colors RGB (Red Green Blue) additive model
light added to black/screen
black + red + green+ blue = white
Subtractive Colors CMYK (Cyan Magenta Yellow Black) subtractive model
pigments subtracted from white/paper
white - cyan - magenta- yellow = black

Two simple models (there are others), useful for depicting digital ideas, are the RGB and CMYK color models. Each model is correct. One way may be easier to work with for certain purposes.

Information sign More: Colors and color models

10. Views of the same thing

11. Optimism
Candle
An optimist may see a light where there is none, but why must the pessimist always run to blow it out? René Descartes (French philosopher, mathematician and statistician)

Information sign More: René Descartes

12. Duality in statistics
Statistics has two correct ways of looking at reality. Both are correct. One may work better in a given situation. Many statisticians disagree over both frequentist and Bayesian statistics being correct ways of looking at reality.

Information sign More: Bayesian statistics and models

13. Problem solving
In problem solving, a top-down design approach can be contrasted with a bottom-up design approach.

14. Counting
Point upThe English word "dozen" comes from French which comes from the Latin word "duodecim""twelve" which means, literally, "two ten" or "two" plus "ten".
The German word "dutzend""dozen" comes from Latin as does the Russian word "дюжина" (du-schi-na) ≈ "dozen".

Two ways of looking at the same thing. By the time I tell you 12 boring jokes about eggs you will be a "dozen".

15. Nothing but a future shadow
Colossians 2:17 Which are a shadow of things to come; but the body is of Christ. [kjv]
α εστιν σκια των μελλοντων το δε σωμα του χριστου [gnt]

Keyhole Donut and hole

Examples of "nothing" or "holes". A "shadow" is like a "hole" in that it cannot exist without some physical object and some "true light" source. A "false light" is "darkness". A "shadow" has philosophical connections with Plato.

The Cat Stevens song "Moon shadow" comes indirectly from the sun.

Information sign More: Colossians 2:1-23 Philosophy and false reasoning through subtle sermons

16. Heat and cold
Thermometer hot Thermometer hot
In temperature as a measure of energy, one can feel heat going out or in or could going out or in.

17. Electricity
Electricity can be viewed as electrons going one way or holes (no electron) going the other way.
Benjamin Franklin established the electrical conventions of negative and positive.

18. Longest common subsequence
nematode-knowledge empty-bottle

LCS example
emt-ole

The LCS = Longest Common Subsequence problem is a dual problem of the SED = Shortest Edit Distance problem.

The solution to these problems are used in open source file comparison tools such as WinMerge and DiffMerge.
In 1974, Hirschberg published a reasonably space and time efficient solution to these problems.

Information sign More: Longest common subsequence

19. Colors and color models
Additive Colors RGB additive model
light added to black/screen
black + red + green+ blue = white
Subtractive Colors CMYK subtractive model
pigments subtracted from white/paper
white - cyan - magenta- yellow = black

Two simple models (there are others), useful for depicting digital ideas, are the RGB and CMYK color models. Each model is correct. One way may be easier to work with for certain purposes.

Information sign More: Colors and color models

20. Wave particle duality in physics
Physics has two correct ways of looking at reality. Both are correct. One may work better in a given situation.
Heisenberg Uncertainty Principle applies. A good physicist needs to know and use either.

In programming, Heisenbugs are bugs in programs that do not appear when looking.

Electrons act as both waves and particles. It appears that only by going to a higher dimension can one resolve the paradox.

[Nobel Prize]

Information sign More: Geometry, dimensions and hyperspaces
Information sign More: Addition: mathematical dimensions of the Trinity

21. Waves and particles

Einstein's theories could not explain aspects of quantum mechanics that included electrons acting as both waves and particles, the forces of gravity, etc.

[photoelectric effect]

22. Particles and waves
If there are two slits open, single electrons exhibit a wave-like behavior.

If the electron is a particle, how does it know whether there are one or two slits open?

http://nanoatlas.ifs.hr/double_slit.html (as of 1972)

23. Kaluza
Kaluza Ten dimensions
Einstein received a letter from Theodr Kaluza in 1919 suggesting that some of the problems would be resolved if another space dimension were added, making four space dimensions and one time dimension.
As more dimensions were added, the concept of tiny vibrating strings was introduced. The matrix today consists of at least ten dimensions.

Much of this work culminated with the Yang-Mills theory (1954).

24. Objective function
Feasible region
To provide value, a business needs an objective function that can be maximized or minimized.

A simple objective function, such as with linear constraints, has a feasible region for which an optimum value of the objective function needs to be determined.
What might the objective function be for the following? What happens if the objective function of the person doing the work does not match the objective function of the institution?

Information sign More: Taking care of business

25. Optimization
Linear programming feasible region
Not every constraint can be maximized or minimized at the same time.

The idea of "optimization" means finding a solution that maximizes or minimizes the combined constraints.
Reality status bar Logic status bar
It is not all or nothing for each part, but both are needed. How well can you succeed if you provide just one value?


Information sign More: Matthew 13:45-46 KP6 Parable of the pearl of great price
Information sign More: Taking care of business

26. The primal problem
Primal problem Dual problem
linear program var x1 "Galaxy bars (lots)" x2 "Continental bars (lots)" max 2 x1 + 3 x2 "profit ($)" st 3 x1 + 1 x2 <= 18 "milk (tons)" 1 x1 + 2 x2 <= 12 "cocoa (tons)" 3 x1 + 3 x2 <= 21 "sugar (tons)" end

linear program var y1 "marginal value of milk" y2 "marginal value of cocoa" y3 "marginal value of sugar" min 18 y1 + 12 y2 + 21 y3 "cost" st 3 y1 + 1 y2 + 3 y3 >= 2 "profit of Galaxy bars (lot)" 1 y1 + 2 y2 + 3 y3 >= 3 "profit of Continental bars (lot)" end

Objective: maximize Objective: minimize
Every primal linear programming has a dual problem.

27. The dual problem
The dual of this problem is as follows.

Note the following. In intuitive terms, the primal approaches the optimum solution from one direction while the dual approaches the optimum solution from the other direction. It may be the case that one of them is easier to solve than the other. In this case, since the primal has only two variables, the primal can be easily solved graphically, while, since the dual has three variables, the dual is not easily solved graphically.

28. Statistics
Two ways of looking at statistics:
Each model is correct. In many cases, one way may be easier to work with or use than the other model.

Information sign More: Bayesian statistics and models
Information sign More: Bayes Rule: Cancer testing



29. The Art of Statistics
The good news is that the Bayesian approach opens fine new possibilities for making the most of complex data. The bad news is that it means putting aside almost everything you may have learned in this book and elsewhere about estimation, confidence intervals, P-values, hypothesis testing, and so on. David Spiegelhalter, The Art of Statistics: How To Learn From Data (p. 305)
Note: This comment is made on page 305 of a very interesting and popular book on statistics.

30. Business
The Bayesian approach is used, behind the scenes, by many top companies.

Those top companies do not talk about it much.

It is a competitive advantage, so, as someone once said (I have heard this from several people in different industries about cutting-edge techniques), If they tell you about it, it means that they are not using it any more.

31. Bible examples of duality
Good Not good
Kingdom of Heaven Kingdom of Air (same Greek words)
King queen (harlot)
Father mother (harlot)
vineyard vineyard (same word, need context)
wide area scattered path switched by the early church

The telling of jokes uses duality in that there are (at least) two ways to take what is said.

[literal meanings, Jesus]

[physical and logical abstraction]

32. Logical and physical views
Many ideas have both a logical and a physical view. Note: In more complex systems, there can be more than one logical view, but there is essentially only one physical view (that is, reality).

Information sign More: Genesis 1:1 Declarative models and causal reasoning
... more to be added ...

33. End of page

by RS  admin@creationpie.org : 1024 x 640