All posts tagged: Monday

Monday Micro Softy 82: When Bugs Break Up Fights…

Monday Micro Softy 82: When Bugs Break Up Fights…

A fascinating branch of computational intelligence is swarm intelligence — inspired by how simple creatures in nature achieve complex goals together. Individually, these “dumb bugs” perform only basic tasks. Yet collectively they create intricate structures like beehives, hornet nests, and termite mounds. Their coordinated activity gives rise to what’s known as emergent behavior — complex outcomes arising from simple individual actions. Last Monday’s Micro Softy was about termites. The solution is below. Today’s puzzle is about how bugs can break up fights. Picture a large swarm of crawling insects, represented by the dots in Figure 1. Each bug eyes two other bugs that he thinks are going to fight. As a peacemaker, he moves to place himself between these two.  Meanwhile, every bug in the swarm eyes two different bugs and does the same thing. Each bug is moving trying to place itself between two other bugs chosen at random. So the question: What happens to this swarm of bugs in the long run? Solution to Micro Softy 81: Termites are Surprisingly Smart Last week’s …

Monday Micro Softy 81: Termites Are Surprisingly Smart

Monday Micro Softy 81: Termites Are Surprisingly Smart

Artificial intelligence isn’t just large language models or image-generating transformers. Another rich vein of AI is swarm intelligence — lessons from nature on how dumb bugs do smart things collectively. Dumb bugs, each doing a simple task, work together to build bee hives, hornet nests and termite villages. Their collective effort is called the emergent behavior of simple actions. Ants, for example, use chemical communication to find the shortest path between food and their nest. When a scout ant discovers something desirable — say, a Snickers bar — it heads back home, all the while laying down a trail of pheromones, chemicals that trigger behavior in other ants. The other ants pick up this scent and follow it. They reinforce the trail with their own pheromones if they reach the food successfully. At first, ants may explore multiple routes, but shorter paths allow them to make more trips in less time, which means those trails receive pheromone reinforcement more frequently. Over time, the shorter route becomes much stronger in scent and more heavily trafficked, while …

Monday Micro Softy 80: The Digits of Least Significance

Monday Micro Softy 80: The Digits of Least Significance

Engineers, mathematicians, and computer scientists need to know some number theory, the branch of mathematics that studies the way numbers behave. Number theory is needed to understand modern data encryption, for example. This week’s Micro Softy is about number theory and least significant digits (the last digit of a large number is its least significant one). It builds on the solution of last week’s puzzle. So let’s reveal that solution first. Solution to Micro Softy 80: The Last Digits in Fermat’s Last Theorem It’s a tough puzzle. My mathematics friend Professor Dave Johns texted me that he believed Wiles’ celebrated proof of Fermat’s Last Theorem was incorrect. Here’s the math behind the theorem again: Remember, one counter example is all that is needed to disprove Fermat’s theorem. Johns said he had found a counter example. He provided three numbers. (All math variables should be in italics) x = 321,232,430,786,123,860 y = 487,367,975,876,123,125 z = 4,534,432,154,871,543,981 But poor Professor Jones lost his memory before he announced the value of n in the equation above, where n>2 …

Monday Microsofty 79: The Last Digits in Fermat’s Last Theorem

Monday Microsofty 79: The Last Digits in Fermat’s Last Theorem

I get irritated when somebody multiplies two numbers and gets the wrong answer, and then says, “I’m bad at math.”  That’s an overstatement that gives them undeserved status. They are bad at arithmetic, which is a very specialized area of math. Adding two numbers incorrectly and saying, “I’m bad at math” is an insult to mathematicians everywhere. With this in mind, let’s talk about the arithmetic in Fermat’s Last Theorem. Suppose I have some number x and multiply it by itself n times. n is an arbitrary number. It can be 2, 3, 7, 10, or 22. We then choose another number and also multiply it by itself n times. Let’s call this second number y. We do the same thing for a third number z. Fermat’s theorem in mathematics says that you cannot find an x and a y, multiply each number by itself n times, and have it equal to a third number z multiplied by itself n times. It only works for n is equal to 2, but it does not work …

Monday Microsofty 78: Card Sharks That Bite Harder

Monday Microsofty 78: Card Sharks That Bite Harder

If you go to a gambling establishment and play the one-armed bandit, the outcome for each of your turns is determined by computer software. To write good code for that, you need to know how to generate random numbers. I once consulted for a gaming establishment  involved in a lawsuit. I examined the software for a number of machines and became an expert in generating them. But interestingly, computer code can’t generate truly random numbers. The best it can do is generate pseudo-random numbers. To make sure that the pseudo-random number generator works, those who write software for gambling or sweepstakes must have their code analyzed by a third party to make sure that the pseudo-random number generator is working accurately. To win at gambling, you need probability on your side. In pure chance games like roulette, craps, and one-armed bandits, the house edge guarantees you’ll lose over time. In probability theory, this is guaranteed by the Law of Large Numbers. That’s right. It’s the law: You lose. On the other hand, skill does matter …

Another Manic Monday Coming

Another Manic Monday Coming

Submtted By Peter Tchir of Academy Securities I expect that we will see a lot of “green dots” on the Bloomberg Terminal Sunday night, as there was almost no asset (other than energy) up on Friday. I do know that my Monday will start bright and early, at 5am on CNBC. Away from that everything is a bit up in the air. There are headlines that can push us in either direction. Some developments that seem good, some that seem bad, some that seem weird, and some that are just downright confusing and/or contradictory. Transiting the Strait There seem to be three possibilities to transiting the Strait: Please see Thursday’s SITREP U.S. Expected to Conduct Strait Transit This Month. On Saturday morning Admiral Cooper, in a video on X, said “Iran’s ability to threaten freedom of navigation in and around the Strait of Hormuz is degraded.” The report went on to list other actions being taken to knock out the capability of Iran to target ships in the Strait. This fits Academy’s view that the …

Monday Micro Softy 61: Take Five

Monday Micro Softy 61: Take Five

I’m always surprised how many nerds play musical instruments. There’s a lot of math in music. The western scale is based on natural acoustic harmonics from the physics of vibrating strings and resonant acoustics from sound columns. The ratio of the frequency of two adjacent notes on the piano or guitar is the twelfth root of 2. The spacing of the bridge to adjacent frets on a guitar has the same ratio. Changing frequencies forms melodies. There’s also rhythm. I’ve heard it said that our fondness of rhythm comes from listening to Mommy’s beating heart as a baby. (I read this on the internet, so it must be true.) The most common rhythm is 4/4, also called common time.  Then there’s the waltz in 3/4. Other common rhythms are 2/4 and 6/8. But rarely is music written in 5/4. Keeping time in 5/4 takes some time to get used to. Try repeatedly saying 1-2-3-4-5 and snapping your fingers to the rhythm. It’s not natural. Dave Brubeck broke with convention by recording “Take 5” in the …

Monday Microsofty 60: Here’s a Puzzle From Gunsmoke

Monday Microsofty 60: Here’s a Puzzle From Gunsmoke

Are you sharp enough to solve clever puzzles? To interpret clues beyond their apparent meaning? Doing so shows you have a high IQ on the nerd scale and might be a good computer programmer, mathematician or engineer. We offer puzzles each Monday here at MindMatters.ai. Good ones are often surrounded by obfuscations meant to derail thought trails and otherwise distract. Sharp minds can see through these distractions, focus on the problem and offer solutions. We call these puzzles Micro Softies after the ones Microsoft used to use to select programmers. Last Monday’s Micro Softy was inspired by an old CBS television show, Alfred Hitchcock Presents (1955‒1962), which premiered on October 2, 1955. We’ll give the answer to that puzzle below, after presenting this week’s Micro Softy which also deals with old time television. Gunsmoke (1955‒1975), the first adult TV western, also premiered on CBS a month earlier on September 10, 1955 as a continuation of a highly successful weekly radio drama. The weekly episodes have aged well. Gunsmoke has recently been showing up today on …

Monday Microsofty 59: Alfred Hitchcock’s Low-Pressure Tire

Monday Microsofty 59: Alfred Hitchcock’s Low-Pressure Tire

Editor’s note: Due to seasonal travel issues, the Monday Microsofty could not be published until today. To be a good computer scientist or engineer, you have to be a nerd. Nerds like me are offended by flawed portrayals of mathematics and physics in movies and television.  For example, in the classic 1939 Wizard of Oz Movie, when the Scarecrow got his brain, he said “The sum of the square roots of any two sides of an isosceles triangle is equal to the square root of the remaining side.” This mistake ruins what is an otherwise wonderful movie for me. I can accept flying monkeys, witches riding brooms and Lollipop Guild Munchkins. But not bad math. The Scarecrow was trying unsuccessfully to quote Pythagoras’s theorem: “In a right triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.” By contrast, the TV series The Big Bang Theory and its spin-off Young Sheldon, are fairly accurate in their math and physics. (Their treatment of Christianity is embarrassingly shallow.) …

Monday Microsofty 58: Is a Famous Bassist His Own Grandfather?

Monday Microsofty 58: Is a Famous Bassist His Own Grandfather?

Are you sharp enough to code for a top software company? Our Monday puzzles are based on the types of questions they are known to ask, hence the name of the series. Some of these questions include topics like “relativity.” It’s not math, exactly, but you need to be able to figure out relationships. Because last week’s Micro Softy was also about figuring out relationships, we will depart from our usual practice by presenting its solution before we ask this week’s question: Solution to Micro Softy 57: My Mother’s Mother-in-law     My boss, Ms. Sterno, asked me the identity of a man named Ben, whom I was just talking to. I told her “Ben is a valued friend and source of information. His mother is my mother’s mother-in-law.”  So who is Ben in relation to me? Take a look at  Figure 2: Ben is my father. His mother is my mother’s mother-in-law.   Or, with the same logic, instead of Ben, it could be one of Ben’s brothers I was talking to. In other words, one …