





Examples of recursion in nature
Geographic features are the most spectacular example of recursion. For example, similar to the aforementioned nesting dolls, islands in the middle of lakes, which in turn are located on the islands. Among such objects, the most famous is the Taal freshwater lake, located on Lawson Island in the province of Batangas, Philippines. On the lake is the volcanic island of Taal, in its crater there is another lake. And it, in turn, has its own small island, Vulcan Point.













Examples of recursion in linguistics and literature
A story from "Cyberiad" by Stanislav Lem about an intelligent machine that had sufficient intelligence and laziness to build a similar one to solve the task and entrust the solution to it. (infinite recursion - each new car built its own kind). N.V. Gogol in the story "Portrait" describes the dream of the artist Chertkov, who, waking up, falls into a dream again, waking up from this dream, he falls into the first dream, from which he will also have to wake up. The Master and Margarita is one of the most striking recursive novels. The theme of Yeshua and Pilate is recursively invoked from the theme of the Master and Margarita. In addition, the "book within a book" technique is also used here. The master writes a novel about Yeshua and Pilate, the text of which merges with the text of the book The Master and Margarita. Another example of the recursion "House, Or here is the shortest story by Isaac Asimov, written for a bet right in the studio while recording an interview.
"... Insert cotter pin A into socket B ..." Dave Woodbury and John Hansen, clumsy in their suits, watched in awe as the huge crate slowly separated from the transport ship and entered the airlock for re-atmosphere. They spent almost a year on the A-5 space station, and they were understandably fed up with rattling filtration plants, leaking hydroponics tanks, air generators that hummed hoarsely, and sometimes simply failed. “Everything is falling apart,” Woodbury sighed mournfully, “because we collected all this ourselves. “Following instructions,” Hansen added, “written by some idiot. There were certainly grounds for complaint. On a spacecraft, the most scarce place is the place reserved for cargo, which is why all the equipment, compactly packed, had to be delivered to the station disassembled. All devices and installations had to be assembled at the station itself with their own hands, using clearly the wrong tools and following vague and lengthy assembly instructions. Woodbury diligently wrote down all the complaints, Hansen provided them with the appropriate epithets, and an official request for urgent assistance in this situation went to Earth. And the Earth answered. A special robot was constructed with a positronic brain stuffed with the knowledge of how to assemble any conceivable mechanism. This robot was now in the unloading cage. Woodbury trembled nervously as the airlock doors finally closed behind her. |
Recursive Graphics Examples
Recursion techniques look advantageous in painting and photography. These can be the options "portrait in a portrait", "frame in a frame" or "the artist paints a picture in which he paints a picture in which he is depicted painting a picture":


Recursive humor
It's just tin. Programmers, epta, we live together, agreed as follows: the first one wakes up the second, the second the third, the third the first ... recursion =) as a result, we overslept the lecture. We have for lunch - salad "Recursive": tomatoes, cucumbers, lettuce. xxx: Do you remember Antokha lost his wish? so, I asked him: so that for 2 days he would stick a sticker with this action for 2 days on all objects with which he performed any actions yyy: I would definitely stick a sticker with the inscription “pasted” on the sticker. Small (son 10 months old) drove into recursion ... one nipple in his mouth. gave a second. spat out the first with joy. put in a second one. heard something fall. was delighted to see the first nipple. dropped the second one. put the first one in his mouth. I heard something fall ... has been changing them for 5 minutes. Today I worked with my father, he says to me like “do you want to show recursion?”, I’m like “come on”. He takes the plug of the drill into the extension cord, and he plugs the extension cord into a free outlet of the same extension cord, presses the button, the drill starts working ... Damn, I probably had a very funny face, he laughed until the evening, and I stuck it for a long time why it happens. The drill turned out to be battery operated. If you think that everything in life should have an applied application, then we suggest that you recall the acquired knowledge of programming and try to solve some of the well-known problems that are solved using recursive methods: finding Fibonacci numbers and factorial, as well as the Towers of Hanoi puzzle .
GO TO FULL VERSION