Skip navigation.

The Stripy Strudel's Journal

Posts tagged with "mathematics"

All Absentees Assume Formation

,

In a boring lecture, only three students are in the classroom. While the professor turns to the blackboard to write a long formula, five students slip away. The professor turns to the class and says disappointedly: “If two latecomers walk in, there'll be nobody left!”

This joke was funny the first time I heard it. But why is it funny, indeed? Common sense tells us that it's impossible that there are −2 students in a room. But the professor was somehow not surprised; to him −2 easily adds up with two latecomers and yields “nobody”. The problem is that we have no idea what negative two students look like and what properties they have, but it's natural for us to assume that they annihilate with positive two students.

Where does our “common sense” regarding to quantities come from? Natural numbers have properties (such as the possibility to increase any natural number by one) defined by a set of axioms, but why are these axioms exactly what they are? Natural numbers are called natural for the very reason that human invented, or, to be precise, apprehended them directly from the properties of the environment. One doesn't have to know math even at elementary school level to perceive empirically certain properties of natural numbers, for example, that 2 > 1.

For a long time, negative numbers were thought to not exist (and even zero took time to come into use), but as soon as at the dawn of Common era, such an extension to the set of numbers was first mentioned. It's not that somebody actually saw −2 students, but in bookkeeping of debts negative amounts of money or goods turned out to be quite conceivable. But if negative two swords, oxen or even slaves are possible, negative two students shouldn't seem something incomprehensible either.

The setting in the joke still seems absurd because nobody has ever witnessed a pair of positive one and negative one students being produced from nothing. But the very existence of a negative one student, or, to put it that way, lack of a student, is not absurd. One can even imagine that whole galaxies exist with negative quantities of stars, planets, universities and students. They probably call their half of the numeber axes “positive” and theorize about our existence, or, to be precise, the lack of us. (This is not the same as antimatter, despite some similarity. Antimatter exists in positive quantities, but this is rather about negative amounts of matter.)

By the way, while we're telling existential jokes, physicists shamelessly use negative quantities of electrons. A lack of electron, or −1 electron, is called an electron hole and used in analysis of semiconductors on par with an electron. Unfortunately, the number of studies of this kind in other areas of physics is negative with a large absolute value.

See also: Is logic empirical?

По-русски: Всех отсутствующих построить в одну шеренгу

Thoughtful Fantasizing Club

, , ,

In an imaginary, ideal and pitch abstract world live people who don't give a damn about being trapped in our thought experiment: they're people, too, and try to get their human fun from life. Just like us, they meet, make friends, mix and give each other simple pleasures. And just like in our world, they have social obstacles, having grown up in somewhat different cultures and then gotten mixed together. That's why what's natural for some is unthinkable for others.

For example, some people love massage of the head so much that they're willing to spend hours scratching, stroking and massaging each other's heads — if they find someone like them. But here's the catch: for some others touching the scalp is a taboo that can't even be mentioned. Because nobody knows whether it's disgusting or delightful for someone, you can't really offer this to a person: what if they get offended? So two head massage lovers don't dare to offer it to each other because each one of them is afraid that it's unacceptable for the other. Same thing with nose-rubbing, round dances, riding horses together, pat-a-cake and numerous other ways in which our speculative poor things bring enjoyment to each other.

Here is the problem the society is facing: invent a way for fans of various pleasure to recognize each other. It seems trivial: why not introduce conventional signs? For example, a red T-shirt could mean a round dance devotee. But it's not that easy: a round dance lover wouldn't like those for whom round dances are a taboo to know about their devotion. Hey, there are places where they won't let you in if you wear that! Therefore, a signaling system has to be more selective.

Let us call the whole range of ways to please each other acceptable for a person their easiness, as in “he's an easy (uncomplicated) person”, “she's easy to be with”. An easiness is a mathematical set. Let us designate the easiness of a person X as EX. Then the requirement to a signaling system should be stated as follows: for every person Y, conventional signs worn by Y should suffice for X to derive EXEY. Consequently, for each of his devotions X will only find out whether it's shared by Y, but he won't find out about those of Y's passions that X himself dislikes. He'll find out what he can what he shouldn't try with Y, but won't know anything shocking or destructive to their friendship.

A solution to this problem can be a variety of signs with limited knowledge of them. For every questionable pastime A enthusiasts establish a club, society or some other kind of community for A-doers. To become a member, one needs to do A with any current member. For lovers of A it's not a problem but rather a pleasure, but those for whom A is unacceptable won't even think about joining the community. Of course, the lists of community members are kept in secret. Because the world is ideal, everyone knows about every such community, and can and will join all the relevant ones. In a closed meeting, members of the A-doers society decide on a sign by which fans of A will recognize each other. It can be anything: an item of clothing, an accessory, a feature of speech or gait, a code word or gesture. Different communities pick essentially different signs, so that it's impossible to tell by the look of how many communities a person is a member. This way, everybody only knows the signs of belonging to those communities one is oneself a member of, and when X and Y meet, they instantly see what their common easiness, the intersection of EX and EY, is, and within that intersection they feel at ease with each other.

The problem and the solution have been found in brainstorming together with Wheezle, for which I'm thankful to her. This way, we have determined by experiment that joint brainstorming is included in our common easiness. And if you, my dear readers, also love head massage — welcome to the club!

По-русски: Общество любителей фантазировать с умным видом

Theory of Immensity

, ,

Primitive people who couldn't count beyond two or three, called any greater number “many”. Even though modern first-grade pupils operate numbers up to a hundred, and an adult understands what a billion is, human's ability for direct perception of quantities hasn't improved in a qualitative sense. We have ten fingers on our hands, fifty matches in a box, a hundred centimeters in a meter (both units are comparable to the sizes of body parts and therefore are available for direct perception). Starting with about a thousand, it becomes problematic to compare a number to something familiar. Your screen probably has several millions of pixels, each of which an acute-visioned person can discern. This seems like the biggest order for a number that can be directly matched against the environment. Because even secondary school education allows one to operate on numbers of greater orders, our perception lags behind the abilities of abstract thinking. Values that are orders of magnitude greater than the perception threshold feel immense.

Even though 1 000 000 000 < 1 000 000 001, the increase of one doesn't “make a difference”, and both numbers feel equally immense. However, both of them are more immense than a million. Basing on these intuitive assessments, one can say that the immensity of a number is a measure of psychological perception of its magnitude. In a similar manner to the other sensations (brightness, volume, smell or taste intensity), immensity is measured on a non-linear scale where every next equal interval corresponds to a bigger difference in input. The scale should also have a saturation threshold after which no increase of input can increase the psychological evaluation.

It would be naïve to assume that the sensation of immensity, just like vision or hearing, follows the logarithmic Weber–Fechner law. However, 10103 is hardly as much more immense than 10100 as a million is more immense than a thousand. To make as significant a leap from 10100 as the leap between a thousand and a million, one would need a value like 10200. After that, the leaps become even more drastic: to give a “worthy increase” to 1010100, it takes something like 101010100. It seems that, with even increase of immensity, the numbers have to grow faster than any arithmetic function comprehensible to the subject.

I suppose that the feeling of immensity is related to description of a method to obtain a given value from numbers below the perception threshold. For example, a billion is a thousand of thousands of thousands, 264 is 2 doubled 64 times. The more qualitatively different steps it takes to reach the goal, the more immense is the number. For example, squaring a a number is a step, and squaring a number an immense number of times is two steps (“square a number” and “repeat the last step many times”). In this regard, the Graham's number is particularly interesting: it is so big that it requires a special notation to transcribe. To reach from non-immense numbers to the Graham's number g64, it takes five qualitative transitions. The immensity of this number seems to approach the saturation threshold, and even though one could continue along the lines of gg64, it's practically impossible to increase the sense of immensity compared to the Graham's number. However, the range of perceived immensities probably depends on the subject's mathematical grounding. A fourth grade pupil's saturation threshold is hardly above two or three steps, while Ronald Graham can probably appreciate numbers even more immense than g64.

See also:
The original entry in Russian features a poll: How immense are these numbers? It is possible to vote in the poll after logging in to LiveJournal; registration of LiveJournal accounts is free.

Please assess how immense these numbers are. It's your psychological sensation that is important, not the encyclopedic knowledge of the magnitudes. The left end of the immensity scale corresponds to “modest” numbers like a million, while the right end is for numbers so inconceivably big that you cannot imagine numbers that feel significantly bigger.

The number of atoms in the Universe (1…6)

The number of possible chess games without repeating positions (1…6)

The number of cells in all living organisms on Earth (1…6)

The number of people ever born (1…6)

The number of possible texts the length of “War and Peace” (1…6)

The number of seconds having elapsed since the Big Bang (1…6)

Please don't vote if you haven't read all of the above.

По-русски: Теория громадности

Factors for Reproduction of Social Viruses

, ,

Note: This has been initially posted as a comment in a discussion about a recent epidemic of a social virus about a little girl needing blood for transfusion. The fake message has been started by a LiveJournal user, and contained a plea to forward it to as many people as possible.

During the recent epidemic, I've got the message saying that someone needs B group blood dozens of times, and the shocking thing about it was that some of the people I got it from were:

  1. Smart people, and I've got no doubt about it. I can warrant that some of the people whom I got the message from are smart, I've been studying together with them and I know them rather well. They are capable of complex mental activity both at work and in private life (so that it's not “common idiocy” when a professional outside of his workplace is helpless and naïve like a child).
  2. People we haven't talked with for quite a while. If those people decided to send the message to me, it means they were sending it to everyone in the contact list, and maybe even outside the contact list.
The most scaring is that the first and the second groups have non-empty intersection.

A little analysis.

None of the forwarders tried to change the text or at least add something to it like “Do you think it's true? What if it is?” to express their degree of trust for this information. Does it mean everyone trusted it for 100%? Of course not. Maybe the hoax got them convinced for 60%, and they decided to forward it. But forwarding or not forwarding is discrete, it's either 0 or 100%. This way, 60% is rounded up to 100%, so we end up with stable reproduction of the worm. If every forwarder expressed their degree of trust, after three or four hops the information would “fade out” and turn into a tale that nobody is going to believe. It's this “rounding” that ensures the reproduction of the worm: the forwarded message looks exactly the same as the original. No gossip transferred the traditional way, through mouth and ears, achieves such steady reproduction as an electronic rumor gets nowadays when text can be copied and forwarded without distortion (experiments show that oral rumors, even when the forwarders are actively trying to reproduce the information exactly, get distorted to full loss of content after ten hops, and after three or four they loose half of the meaningful content).

Why does spam about this subject get reproduced the most steadily? One could build a mathematical model of gossip reproduction with the following parameters:

  1. Persuasion threshold — the degree of belief necessary for the reader to take the information seriously.
  2. Eloquence coefficient — the factor (usually less than one, but may as well be greater) expressing how the persuasiveness of the message changes when it's forwarded once. For electronic messages forwarded by verbatim copying, the factor equals to one.
  3. Distribution factor — the number of recipients that a single participant decides to forward the information to when 100% convinced.
  4. Connectedness characteristic — a property of the acquaintance graph (the average number of common contacts that two people in contact have).
Because the connectedness characteristic is a property of the medium and doesn't depend on the message content, this leaves us with the remaining three values. All of them affect the process of message distribution. When the persuasion threshold is high, the eloquence factor is low, or the distribution factor is low, the process fades out after some predictable number of links. This is what happens to most of the lucky mails: you usually get them from a contact or two, but no real epidemic begins. However, when the aggregate attenuation factor (the ratio of the number of active forwarders on the current iteration to that number on the previous iteration) that depends on the aforementioned parameters is greater or equal to one, the process doesn't fade out but instead continues until all closely-linked part of the acquaintance graph is informed. In practice, that means informing close to all potential forwarders in the Russian part of the Internet.

The persuasion threshold, the eloquence factor and the distribution factor depend on the message content. What made the aggregate attenuation factor exceed one in this case? The persuasion threshold, as it seems, is lowered for messages of this type because people prefer to be safe than sorry: “I'm only 25% convinced that it's true, but if it is, I could save someone's life by forwarding this”. However, the potential forwarders in LiveJournal are gullible enough already, one just has to remember this: “They're going to make ICQ a paid service. To not let it happen, please forward this to all your friends”. So I don't think it was the persuasion threshold that played the crucial role. The eloquence factor of one is also typical for electronic communication (though in some cases the forwarders decide to retell the message in their own words, which usually makes the eloquence factor less than one). This leaves us with the distribution factor. An indirect confirmation to this is that I received the message from some people I rarely talk to. It's for this specific kind of information that the distributors feel it especially important to maximize the number of recipients by all means because they think that someone's life depends on it. (The latter might not be exactly true. For the most, as it seems to me, it's more important to ease their own conscience than to save the little girl's life, and to ease the conscience, one has to perform the ritual of forwarding the message to everyone possible, so that one can say: “I did for the unfortunate wretch everything I could”.)

По-русски: Факторы воспроизводства социальных вирусов

On Interpretation of Results and Quotation out of Context

,

You have most probably read someone's recommendations on interviewing job candidates, or, conversely, on attending interviews as a candidate. Starting from year 2000, when Joel Spolsky published “The Guerrilla Guide to Interviewing”, these recommendations often include the advise to to ask an impossible question. The numerous advisers reprinting this recommendation from each other's articles offer various ways to pose such a question, but Spolsky has several examples in his article, including this: “How many piano tuners are there in New York?” (I think if I hear this in an interview, I'll reply “Just as many as there are cliche users in Novosibirsk”.)

It turns out that the author of this question is Enrico Fermi. Here is the original version of the problem as well as the solution: Fermi's Piano Tuner Problem. The solution is similar to what Spolsky describes, and the answer comes out to be 150. I'll quote the last paragraph from Fermi's solution.
This method does not guarantee correct results; but it does establish a first estimate which might be off by no more than a factor of 2 or 3 — certainly well within a factor of, say, 10. We know, for example, that we should not expect 15 piano tuners, or 1,500 piano tuners. (A factor of 10 error, by the way, is referred to as being ‘to within cosmological accuracy.’ Cosmologists are a somewhat different breed from physicists, evidently!!!)
In my opinion, this last paragraph about interpretation of results is the most important. Without realizing what such a solution is and what it is not, the solution turns into guesswork, and the problem becomes something like a test for quick wit. Joel says that a candidate who starts solving such a problem is a good candidate; I'd rather say that one who immediately starts estimating how many gas stations there are in Moscow and cheerfully answers, say, 2500, is either self-assertive (you can't verify if the result is correct anyway) or reads too much Joel Spolsky.

Quotation out of context is a powerful tool indeed. If only for the well-known Lenin's pronouncement: “The most important of all arts for us is cinema”, the full context of which is: “While the nation is illiterate, the most important of all arts for us are cinema and circus.” Seems like Joel isn't a stranger to it as well.

Thanks to rimpocha for the food for thought.

See also:
UPDATE: Mr. Spolsky has left the advise to ask an impossible question out of the third revision of his article.

По-русски: Об интерпретации результатов и о выдёргивании из контекста

Three Levels of Multidimensional Insanity

, ,

When a programmer has nothing better to do, or he just needs an exercise for the brain, he starts having these weird ideas. Like Esoteric programming languages.

All our boring programs are grossly one-dimensional. The memory is linear, the stack is sequential, the program is transcribed in a serialized form. Even things that are naturally two-dimensional, such as the on-screen picture, are reduced to linear for computer processing. The idea of taking programming beyond the one-dimensional space isn't new and has already generated a whole family of esoteric programming languages called fungeoids after the first of the kind, Befunge. The common feature of these languages is transcription of the program as a two-dimensional matrix containing the operation codes. The interpreter moves proceeds from one cell to another in one of the several possible directions. This way, a loop in Befunge can indeed have a loopy look. Some of these languages use memory registers isolated from the program storage space and are addressed by one-dimensional indices; others use the Von Neumann architecture and store data in the same two-dimensional memory as the code, which also creates interesting possibilities for writing self-modifying programs.

The reader might ask why anyone would need any of it, whether someone indeed has nothing better to do, and what kind of mild drugs the author uses, so I'll have to answer. No particular reason. Simply put, it's for fun. Hey, ask some solid scientists specializing in pure mathematics why they have to study objects like… well, not just an algebra, and not even en algebra of algebræ, but an nth order algebra, an algebra of algebræ of algrebræ… n times. I suppose their elaborate answers can be effectively reduced to something like: “Hey, it's fun!” So is an esoteric programming language fun. It's an original joke, and a complicated mathematical abstraction to study, and a puzzle. Taking something to the point of absurdity is fun in itself, so today I've taken it to my hand to carry the idea of multidimensional programming to absurdity. Let's do it in three nonsensical steps. I'll be writing about the two-dimensional case, but it's trivial (?) to generalize for the case of n dimensions.

First level. Here lie the “arrow programming” languages of the fungeoid family. The memory is two-dimensional. In a more interesting variation, the memory is shared between code and data. On this level, each memory cell stores an ordinary number, such as one byte. Let's call the data unit stored in one cell a word, as in traditional computing. Two-dimensional memory uses two-dimensional addresses, such as (i, j). The current instruction pointer (IP) also looks like this. Most fungeoids allow to change the direction in which IP is incremented to one of the four ways, but it's not necessary for Turing completeness: a single direction and a conditional jump to a two-dimensional address is enough. However, the changeable direction of execution flow is the fungeoids' zest which makes programming in them especially unlike the traditional and allows transcribing of loops as rings and linear programs as spirals. Two-dimensional memory organization inspires thoughts of measurement units such as square kilobytes (Kb2), makes you think about what the operating system should do when it gets a request to allocate a wide memory block while only tall and narrow areas are available, and gives rise to an interesting problem of defragmentation of rectangular files in two-dimensional mass storage. The compiler could optimize code not only for speed but also for the area taken, and storage of raster images would be natural as never before. Finally, programming languages can be described by two-dimensional grammars specified in BNF2.

Second level. Unlike the first level represented by numerous fungeoids, I've never encountered anything that would fit my second or third level. In the second level, something strange happens to the very numbers: they are not simple bytes anymore but rather complex values. Addressing a cell of the two-dimensional memory becomes natural. Addition and subtraction are straightforward, multiplication and division are slightly more complicated, and there is a new operation: complex conjugation. One could even go further and say that the cells contain two-dimensional matrices of bits. For example, a word can be comprised of 16 square bits (4×4), which, of course, spawns a new set of arithmetical operations. With regular addition, the overflow bits are carried in one direction — to the left; with two-dimensional addition, bits can be carried both to the left and up. This makes at least two types of addition and subtraction. Shifts and rotations can be done in four instead of two directions, and new operations are possible, such as turns and transposition. When multiplying, shifts are made in both directions. It's not obvious, though, how a two-dimensional word should be interpreted as a regular number for purposes of addressing and counting. Speaking of data exchange in networks, instead of two possible bit orders (little-endian or big-endian) we get eight equally reasonable ways to serialize a word.

Third level. At the third level of absurdity, time becomes two-dimensional. Who cares that it doesn't apply to our Universe? The model is interesting anyway. A moment of time is described with two variables (t, u) rather than one. With regard to a single moment, there isn't just something that happens before or after; there are some moments to the right from this moment in time, some below, and some both to the right and below. The causality spreads in both directions, and what happens in a moment of time is a consequence of both what happened to the left and above in time. Clock frequency is measured in square Hertz, and the state of the machine at clock (t, u) is derived from its states at clocks (t – 1, u) and (t, u – 1). The program stored in the two-dimensional memory runs both horizontally and vertically. In the next clock by t the CPU proceeds to the command to the right of the current, and in the next clock by u it moves to the command below. A bicyclic algorithm can have toroidal topology. In a square second, a communication channel can be used to transfer a number of square bits, therefore the throughput is measured traditionally, in bits per second. The task of optimizing the speed of an algorithm can be defined more accurately: which of the time dimensions is more important to optimize.

Fourth level. If someone comes up with a fourth level to complement the three above, I'd like to discuss it with you before they come to take both of us away.

По-русски: Три уровня многомерного безумия

Let us Consider a Spherical Horse in a Vacuum

,

Note: This entry is based on a joke well known in Russia; here is the English version of it that I could find.

  • A spherical horse has absolutely black body.
  • A spherical horse breathes ideal gas.
  • The neighing of a spherical horse is a simple harmonic and spreads without dispersion.
  • A spherical horse pastures in uniform fields.
  • When a spherical horse prances, its trajectory is parabolic.
  • The hooves of a spherical horse come into elastic collisions with a flat horizontal surface.
  • A spherical horse has a non-zero probability to get out of a potential well it has fallen into.
  • Mounting a spherical horse involves finding the saddle point. The resistance of the horse in this case is negligible.
  • Looking from an infinitely remote stand, a spherical horse appears as a point mass.
  • You can't comb the hair on a spherical horse.
UPDATE: The ideas have been used for an article in the Russian edition of Uncyclopedia.

По-русски: «На сегодняшний день у нас есть только модель победы сферического коня в вакууме»