Slashdot Mirror


Solving Feynman's Unsolved Puzzle?

An anonymous reader asks: "In The Feynman Lectures on Computation, Richard Feynman poses an interesting little puzzle involving the synchronization of finite state machines acting as generals and soldiers. While he was able to find an answer to the problem, the minimum time solution apparently eluded him, and he ended his description of the puzzle with the following Fermat-like declaration: 'Somebody has actually found a solution with this minimum time. That is very difficult though, and you should not be so ambitious. It is a nice problem, however, and I often spend time on airplanes trying to figure it out. I haven't cracked it yet.' My best attempt performs at about 3N, not quite the minimum time of 2N-2. So I'm asking Slashdot: Has anyone ever come across the minimum time solution to this puzzle? Or maybe someone here can figure it out!"

"Here is the full description of the problem, in Feynman's own words. Please remember that these are finite state machines, so you can't use any methods that involve counting the number of soldiers or assigning a number to each soldier.

Problem 3.4: Before turning to Turing machines, I will introduce you to a nice FSM problem that you might like to think about. It is called the 'Firing Squad' problem. We have an arbitrarily long line of identical finite state machines that I call 'soldiers'. Let us say there are N of them. At one end of the line is a 'general', another FSM. Here is what happens. The general shouts 'Fire'. The puzzle is to get all of the soldiers to fire simultaneously, in the shortest possible time, subject to the following constraints: firstly, time goes in units; secondly, the state of each FSM at time T+1 can only depend on the state of its next-door neighbors at time T; thirdly, the method you come up with must be independent of N, the number of soldiers. At the beginning, each FSM is quiescent. Then the general spits out a pulse, 'fire', and this acts as an input for the soldier immediately next to him. This soldier reacts as in some way, enters a new state, and this in turn affects the soldier next to him and so on down the line. All the soldiers interact in some way, yack yack yack, and at some point they become synchronized and spit out a pulse representing their 'firing'. (The general, incidentally, does nothing on his own initiative after starting things off.)

There are different ways of doing this, and the time between the general issuing his order and the soldiers firing is usually found to be between 3N and 8N. It is possible to prove that the soldiers cannot fire earlier than T=2N-2 since there would not be enough time for all the required information to move around. Somebody has actually found a solution with this minimum time. That is very difficult though, and you should not be so ambitious. It is a nice problem, however, and I often spend time on airplanes trying to figure it out. I haven't cracked it yet."

2 of 90 comments (clear)

  1. phirst poast pissing frost tsarkon piss frost by Anonymous Coward · · Score: -1, Troll
    The Future of SLASHDOT.

    2002. Slashdot publishes 1,000,000th rumor passed off as actual story. The story generates 480 comments, 263 of which agree with the article, and 107 of which point out it's a rumor and are modded down as redundant. The remaining comments are all "first posts." or posts that contain any rational insight are modded "troll."

    2002. CmdrTaco married to a human female, reports are that she does not have 46 chromosomes, however. Fent does display tendency to retardation.

    2002. Slashdot parent corporation VA Research^W Linux^W Software stock worth 35 cents. Rumors that AOL, Microsoft, or even Jimmy the hobo who lives under the Longfellow Bridge may buy it.

    2003. VA Software bought by Microsoft for a cup of coffee and a donut. All Microsoft-critical articles mysteriously disappear from Slashdot. Bill Gates as Borg logo replaced with Bill Gates as God. (Taco suggested that in order to be "God," or his vision of God, Gates would have to be seen in a NAMBLA T-shirt. Luckily good taste prevails in favor of the old man image in glowing aura)

    2004. CmdrTaco loses virginity, well, not sex with men virginity, that's long since gone, and not sex with anime blow up dolls, this time, real sex.

    2004. The WIPO Troll returns again, showering Slashdot in 45,000 copies of the same post: "Lick my crotch hairs." Slashdot, despite
    running on 18 redundant IIS/8.0Beta6 servers, buckles under the load. The term "Slashdotted" is replaced with "WIPO-Trolled."

    2004. Slashdot officially shut down. Millions of screaming, unwashed geeks invade Redmond campus and lynch Bill Gates.

    2005. Linus Torvalds and Anal Cox found dead along with six penguins, a tub of crisco and several used condoms. FreeBSD users are glad the insanity is dying.

    2005. CmdrTaco rumored to have had sex again, even with constant Viagra therapy, it took this long. He complains, I can be ready to go again in five minutes if I was looking at a nude man, to the dyslexic Fent.

    2006. CowboiKneel found dead in hotel room with 56 pizza boxes covering his bloated corpse. Three suffocated gay prostitutes are extracted from beneath his body as police remove it with a backhoe.

    2007. CmdrTaco actually has sex again, this time plugging Fent in the ass for a more manlike feel.

    2007. BSD is still officially "dying." No word on when its demise will take place. FreeBSD 9 is delivered in perfect working order in a coherent superior, commercially viable and useable fashion with real documentation, the same practice followed since inception. Linux lunatics, after the death of Cox, are still trying to perfect the Trident driver while ignoring the existence of the GeForce 9. Netcraft dies along with all the surveys they held on Microsoft and Linux servers are lost as well.

    2007. CmdrTaco starts new weblog to replace Slashdot, creatively named Dotslash. Remainder of Linux users flock to the site and immediate WIPO-Troll it out of existence.

    2007. Box running FreeBSD for 6 years sets world record for Unix uptime on consumer hardware.

    2008. CmdrTaco has sex with his wife for the first time without thinking of men. He has dawned on the extra sexual pick me up for his twisted mind, small children.

    2010 Marcelo Tosatti finally releases a version of the 2.4 Linux Kernel that is useable 2.4.29-RC2099.alpha.stage.99 (not -STABLE!). Fuck you Marcelo, YOU SUCK as a MAINTAINER.

    Is genital-too, I mean Gentoo fixed yet? Last time it made me perform all these stupid, fucking easily scriptable mindless tasks to get it installed, with everything installed perfectly the stupid thing didn't work. Death to OS X, death to lame Linux distributions, I want a COHERENT Linux distribution and FREEBSD or DIE, baby.

    A long long fucking time from now. Malda, fat, poverty-stricken, unrespected and unremembered and living in an appliance box in Michigan with a pickle jar for a toilet comes to a series of epiphanies. The 8.3 file system that made him truncate his nick to an 8 letter series of characters has long been forgotten, and he finally realizes he looks like a fag using it. He also realizes that men's asses look like tacos, especially with the beef pouring out and that his name sounds more like Commander of Ass, since one can command asses because the belong potentially to sentient or living things, it is difficult to command inanimate objects such as food , so one can only conclude he was commanding ass.

    He also realized his site was a lame, fad, he sold out, he needed to refactor his shit code and never did it. He also realized that communites such as Fark don't have this complete asshole running it with gay lameness and compression filters and lame IP blocking bullshit and cheating, pissing and whining and barely anyone trolls it.

    We hate you, Fucking Robbie;

    he remembers as reams of pages of trolls cry for his expulsion. He also realizes he cant have a computer anymore because he hates the RIAA and MPAA but ran out and gave George Lucas and other shit media companies tons of money to ruin the laws in favor of the omnicorps. He also realizes his socialist and fascist fucking moderation system squelched all the real comments out of view. He also realizes that a full time crew "working" at Slashdot did a shittier job than anyone thought possible.

    He also realized he didn't do SHIT for subscribers and punished them as he would anyone else with page limits, IP blocks, compression and lameness filters. He also realizes Signal 11 is a better man than him and that he is a fucking loser for throwing out S11. He realizes despite being an Open Source advocated, his horrible, unusable unreadable pile of shit called Slashcode was one of the worst projects ever. He realized that retarded journalists are better at reporting the news than Slashdot, that Slashdot news was often inaccurate and unverified.

    He also realizes that Aprils fools jokes were really stupid and everyone hated them. He realizes bitchslapping, banner ads, ^H and ^W to show deletion and moderation $rtbl are fucking gay and lame. He realizes this all in a flash as the totalitarian regime he was a small part of constructing (through teaching mobocracy, populism as a rule, hordes of untrained and meritless swarms of people allowed to crucify those who would oppose the thinking of the state) determines his body is a waste of government resources and that he needs to be expelled to a concentration area of the worthless. I figures he would have been the first resident in the camp of the beings deemed worthless to society, along with Jon Katz, but the government, even as a fascist totalitarian regime takes a while to getting around to things.
  2. Stop looking for a solution and come to my country by Anonymous Coward · · Score: -1, Troll

    Because in soviet russia, Feynman's puzzle solves YOU!