Posted in Science & Nature

Cryptography: Frequency Analysis

A cipher is a message that has been encoded using a certain key. The most common and basic type of ciphers are encrypted using letter substitution, where each letter represents a different, respective letter. For example, the message may be encoded in a way so that each letter represents a letter three values before it on the alphabet (e.g. if a=0, b=1… “a” becomes “d”, “b” becomes “e” etc.). This creates a jumble of letters that appears to be indecipherable.

However, the characteristics of substitution ciphers make them the most decipherable type of encryptions. As each letter can only represent one other letter, as long as the key is cracked (i.e. what letter is what), the message and any future messages can be cracked. The most important tool in decrypting substitution ciphers is pattern recognition and frequency analysis.

Frequency analysis relies on the fact that every language has certain letters that are more used than others. In the English language, the letters that are most used, in order, are: E, T, A, O, I, N, S, H, R, D, L, U (realistically, only E, T, A, O are significant and the rest are neither reliable nor useful in frequency analysis).

For example, if Eve intercepted a long, encrypted message that she suspects to be a simple substitution cipher, she will first analyse the text for the most common letter, bigram (two letter sequence) and trigram. If she found that I is the most common single letter, XL the most common bigram and XLI the most common trigram, she can ascertain with considerable accuracy that I=e, X=t and L=h (“th” and “the” are the most common bigram and trigram respectively). Once she substitutes these letters into the cipher, she will soon discover that certain patterns arise. Eve may notice words such as “thCt” and deduce that C=a, or find familiar words and fill in the blanks in the key. The discovery of each letter leads to more patterns and the vicious cycle easily breaks the code.

Frequency analysis is extremely useful as it can be used to attack any simple substitution ciphers, even if they do not use letters. For example, in Sir Arthur Conan Doyle’s Sherlock Holmes tale The Adventure of the Dancing Men, Sherlock Holmes uses frequency analysis to interpret a cryptogram showing a string of hieroglyphs depicting dancing men.

To reinforce this weakness in substitution ciphers, many cryptographers have devised better encryption methods such as polyalphabetic substitution, where several alphabets are used (e.g. a grid of two alphabets – also called a tabula recta).

Posted in Science & Nature

Red Queen’s Hypothesis

In Lewis Carroll’s Through the Looking-Glass, there is a scene where the Red Queen says to Alice: “It takes all the running you can do, to keep in the same place”. Essentially, it means to spend all the effort you can just to keep the status quo. In life, there are so many times when it seems like you’re frantically running just to realise that no progress has been made. Interestingly, the same rule is seen in biology and evolution.

The simple rule of natural selection is that the best adapted species wins. Unfortunately, this means that no matter how well you are doing in the environment, as soon as another species becomes better adapted to a new change, you become the lesser species and eventually destroyed. To prevent this, a species must continuously evolve and adapt just to stay in the same position. Nature despises stagnancy and loves progress. For example, a predator always strives to evolve to better catch the prey while the prey evolves to avoid the predator. This cat-and-mouse arms race allows for continuous evolution and ever-improving fitness. This is the Red Queen’s Hypothesis.

A fascinating extension of the hypothesis is that it may be a cause for having sex. Sex is one of the most intuitive inventions of Mother Nature that allows for massive genetic variation. The Red Queen Hypothesis has been used to suggest that this may have evolved to speed up the process of evolution so that hosts could beat parasites in the ongoing arms race. The greatest act of love may simply be a mechanism for us to stay competent in this ever-changing world.

Posted in Science & Nature

Fighting Fire With Fire

On a hot summer’s day, one tends to drink cold drinks and eat cold foods to try cool their body down. But an old Korean proverb states that one should control fire with fire (yiyul-chiyul, 이열치열, 以熱治熱). In other words, instead of drinking cold drinks, it is better for your health if you eat hot soup to combat the heat. When the temperature becomes hot, the body redirects blood flow to the skin to cool itself, meaning there is less blood flow to the organs and causing the internal temperature to drop. Although cooling yourself is good, having a cold drink rapidly on a hot day can suddenly cause a large temperature difference between the surface and the organs, leading to digestive problems. In severe cases, it can cause abdominal pain and diarrhoea, with a vicious cycle where the heat is trapped on the surface and you feel even hotter. Ergo, having a hot food like samgyetang (a Korean chicken soup with many nutritious foods to revitalise your health in the summer) warms the organs and allows for better communication between the organs and the skin to effectively overcome the heat.

The philosophy of yiyul-chiyul can be extended beyond the scopes of medicine. Just as the proverb defeat savages with savages (yiyi-jeyi, 이이제이, 以夷制夷) says, one can control a certain force by using the same force on it. A great example is backfires. A forest fire tends to be too large in area to be extinguished with water. But if you deliberately start a fire just beyond its trajectory, it will burn everything as it moves towards the forest fire. Eventually the two fires will meet and without any fuel to consume, both will be extinguished.

Posted in Science & Nature

Typical Person

What is the typical look of a human being? The following is a character bio using data of the most common traits and average statistics from the world population.

The typical model of Earth is a 28 year old Han Chinese male called Mohammed Lee. His height is 1.75m, weight 80kg, he has black hair and brown eyes and he is right-handed. He speaks Mandarin Chinese and his religion is Christianity. He works in a factory earning less than USD$12,000. He owns a cellphone but not a bank account. The following is the most typical face constructed using a composite of 190,000 faces of people fitting the above description.

Posted in Science & Nature

Diamond

The hardest object on the Earth is diamond. A diamond is famous not only for its hardness but also its luxuriousness and unique lustre. One might call it the king of all jewels. Would you believe then that such a beautiful, tough gemstone is made of the same thing as charcoal and graphite? Diamond is crystallised carbon where the carbon atoms are neatly arranged in a pyramid lattice. Charcoal and graphite are also made of carbon but the carbon atoms are placed in a different configuration, giving them a different look and characteristics. This unique lattice shape can only be achieved under extreme pressure (such as in the mantle of the Earth or in a meteorite). Thus, a diamond is just carbon that has endured stress well.

If diamond is the hardest material, then how can one cut it? The answer is simple – use a diamond. As it is near impossible to polish or cut without knowing this, diamonds were only used in the form of ores until the modern age. In 1919, a mathematician named Marcel Tolkowsky calculated the optimum proportions of a diamond cut to obtain the best lustre. The first time he struck the diamond with a nail, he fainted from the shock. He succeeded the second time and devised the round brilliant cut used most popularly nowadays.

Diamond is especially used in engagement rings. About 80% of all engagement rings sold in the United States are diamond rings. This may be because the toughness of diamond symbolises undying love, but another key reason is due to diamond syndicates and their marketing campaign. Even until the 1930’s, there was a tradition of women keeping their virginity until their engagement. Thus, if a man proposed to a woman, took her virginity and broke off the engagement, the woman had a legal right to sue the man. Diamond syndicate De Beers thought that this tradition was an excellent money-making scheme. They planted the idea that offering a diamond ring when proposing put a price on the woman’s virginity and encouraged men to buy more expensive rings to show their love and respect for the woman. This manipulative advertising campaign was a great success and the price of diamond skyrocketed very quickly. Now, a diamond ring is almost an essential item when proposing. Thanks to these companies, there are still many African children who are being slaved in diamond mines.

Posted in Science & Nature

Alex The Parrot

Alex (Avian Language EXperiment) was the name of an animal psychology experiment that ran for 30 years starting from 1977. The experiment was designed to see if birds could undertake complex problem solving and learn languages like primates. For this, Dr Irene Pepperberg bough an African grey parrot, named him Alex and started teaching him how to speak. Before Alex, scientists believed that animals needed a large enough brain like a primate to handle the complex problems related to language. But Alex proved otherwise.

Before Dr Pepperberg, scientists failed to establish any two-way communication with parrots. She used a new training technique called the model/rival technique, where two trainers act in front of the parrot to teach it things. The method is as follows. One trainer (the rival) shows the other trainer the desired student behaviour they want the parrot to learn. The other trainer then compliments the trainer and shows attention. The parrot sees that the behaviour gets the trainer’s attention and learns it to compete with the rival. This technique was extremely successful and Alex began picking up words at a very fast rate (technically it was more of a two-way communications code than “language”).

Once communication was possible, Dr Pepperberg taught Alex many different concepts. Over the course of his life, Alex learnt 150 words, how to differentiate between seven colours and five shapes and also understood the concept of numbers and sizes. If you showed Alex two objects, he could answer many questions regarding one object (thus showing that his response was not a conditioned one). For example, if you showed him a small blue key and a large green key, he could answer what colour the larger key was, or which one was the green key. Furthermore, if a plate full of objects of different colours and shapes was presented to him, he could correctly count how many green blocks (or any other shape or colour) there was among the objects. The important point here is that he could pick out just the green blocks, excluding green balls or blue blocks from his answers (showing he fully understood the question and could attribute more than one characteristic to one object). He knew how to express himself, such as saying “Wanna go back” when he was tired, and would give playful, incorrect answers when bored of the repetitious experiments. According to Dr Pepperberg, Alex had the intelligence equal to a dolphin, a great ape or a five year-old child. He also knew how to attain knowledge by asking questions, such as when he asked what colour he was to learn the word “grey”.

Alex, who told us so much about the intelligence of a parrot, unfortunately died in 2007. The night before he died, he said the following last words to Dr Pepperberg: “You be good. I love you”.

Posted in Science & Nature

Pitch Drop Experiment

When you refine crude oil, you get a black by-product called pitch, which looks like a sticky solid. However, two scientists of University of Queensland, Professors Thomas Parnell and John Mainstone, designed an experiment to prove that pitch is actually a liquid. They simply poured pitch into a funnel and placed a beaker under it to see if it will drip. Eight years after the experiment started, the first drop fell and it was found that pitch is a (extremely viscous) liquid. For the second drop to fall, another nine years had to pass, and by the time the third drop fell another nine years later, Professor Thomas Parnell had already passed away. This experiment began in 1927 and is still ongoing (the longest experiment in history) and so far eight drops of tar have fallen. The experiment is now recorded via a webcam for better observation, but in 2000, the eighth drop was never recorded due to a very untimely camera malfunction.

Posted in Science & Nature

Giant Monster

A gigantic dinosaur monster of 50m height and 20000t weight appears in the centre of Tokyo! The invasion of giant spiders! These are common scenarios in science fiction films. Mankind has always been fascinated by giant creatures. Whether it be a child or an adult, no one passes by the skeleton of a Tyrannosaurus rex without being awestruck. Thus, it is very easy to use such creatures in movies. But the key point of every monster movie is the “stats”. A height taller than a high-rise building and a weight nearing one of a battleship excites people before the movie even starts. The problem is that this is very unscientific (considering it is a “science fiction”).

Let us look at the dinosaur monster first. The moment the monster steps on to land, it will be crushed like tofu. Every structure in its body will collapse and the skeleton will give way, causing 20000t of meat to crash to the ground. Simply put, the monster is just too heavy. Let us hypothesise that the monster is the shape of a gigantic T-rex. Tyrannosaurus rex was 15m tall and weighed 7t. If a 15m dinosaur is stretched to the height of 50m, the height becomes 3.3 times the original. But as the width and depth need to be expanded by 3.3 times as well, the weight becomes 37 times the original. The question is whether the monster can support its own weight. Just as the volume increased by a factor of 37, the cross-sectional area of every part of the body increases by a factor of 3.3 x 3.3 = 11. As muscle strength is directly proportional to the cross-sectional area, the strength only increases by 11 times. Thus, the load on a creature’s body is the same as the factor of expansion (e.g. there is 3.3 times the load on the monster’s muscles). But this is only when the T-rex was simply stretched. According to the stats, the monster weighs 20000t – 2800 times the weight of a T-rex. To support 2800 times the weight with 11 times the muscle, the load on the bones and muscle is 250 times. This is equivalent to having 249 people the same weight as you on your back. Of course, the monster cannot support this and its bones will become crushed and its internal organs will all burst, causing instant death.

Similarly, a giant insect monster also receives the same load as its expansion. But unlike an animal, insects have an exoskeleton instead of a skeletal system. This structure cannot support the load caused by the expansion (also, if you stretch an ant that is not even 1cm to just 10m, the load becomes over a thousand times). Ergo, the monster will collapse instantly. A giant monster is an unscientific creature that can only exist in our imagination.

Posted in Science & Nature

Northern White-Faced Owl

The northern white-faced owl, found in the Sahara Desert of Africa, is a small, cute bird of about 22~24cm length. It is famous for a very unique defence mechanism. As shown in the photo, it normally has a round, puffy appearance, but when faced with a fearsome predator like a hawk, it undergoes a drastic transformation. The owl shrinks itself as much as possible to avoid the enemy’s attention, while looking like a sick bird that has lost a lot of weight. This appearance gives the predator the impression that the owl is not worth the effort of hunting and lowers the chance of it attacking. The ability to shrink to half its original width is achieved through elongating its body and pulling in its feathers as much as possible. Also, when assuming this shape, the owl always faces the predator and poses at an angle to minimise its exposure.

This transformation is only seen when the owl is placed in front of a large predator like a hawk or a much larger owl. When in front of a similarly-sized owl, it exhibits a different transformation where it flares up its wings to make itself look much larger, intimidating the opposition. But this behaviour is common in many other species of owls, whereas the shrinking performance is a rare behaviour only seen in the northern white-faced owl.

(Video showing transformation: http://www.youtube.com/watch?v=gFwgblszf6s)

Posted in Science & Nature

Three Laws Of Robotics

The Three Laws of Robotics are a set of rules devised by the science fiction author Isaac Asimov regarding the functioning of robots as discussed in his novels about robots.

  1. A robot may not injure a human being or, through inaction, allow a human being to come to harm.
  2. A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law.
  3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.