Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Sunday September 26 2021, @05:36PM   Printer-friendly
from the n-queens-problem dept.

Mathematician Answers Chess Problem About Attacking Queens:

If you have a few chess sets at home, try the following exercise: Arrange eight queens on a board so that none of them are attacking each other. If you succeed once, can you find a second arrangement? A third? How many are there?

This challenge is over 150 years old. It is the earliest version of a mathematical question called the n-queens problem whose solution Michael Simkin, a postdoctoral fellow at Harvard University's Center of Mathematical Sciences and Applications, zeroed in on in a paper posted in July. Instead of placing eight queens on a standard 8-by-8 chessboard (where there are 92 different configurations that work), the problem asks how many ways there are to place n queens on an n-by-n board. This could be 23 queens on a 23-by-23 board — or 1,000 on a 1,000-by-1,000 board, or any number of queens on a board of the corresponding size.

"It is very easy to explain to anyone," said Érika Roldán, a Marie Skłodowska-Curie fellow at the Technical University of Munich and the Swiss Federal Institute of Technology Lausanne.

Simkin proved that for huge chessboards with a large number of queens, there are approximately (0.143n)n configurations. So, on a million-by-million board, the number of ways to arrange 1 million non-threatening queens is around 1 followed by about 5 million zeros.


Original Submission

This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
  • (Score: 0) by Anonymous Coward on Sunday September 26 2021, @07:00PM (9 children)

    by Anonymous Coward on Sunday September 26 2021, @07:00PM (#1181647)

    The pattern is flipped/mirrored and 90 degree rotation.

    If they made the same mistake in their math. 1M x 1M would be 25 followed by 5M-1 zeros

    • (Score: 0) by Anonymous Coward on Sunday September 26 2021, @07:36PM

      by Anonymous Coward on Sunday September 26 2021, @07:36PM (#1181652)

      There are many mirror patterns. I've played with this and even wrote some very optimized code about 20 years ago. I must dust that off again now that CPUs are blazing fast, maybe add multi-core capability to it. It was seriously fun running it back then, and I was getting N up into the high 20s on a desktop.

    • (Score: 2) by vux984 on Sunday September 26 2021, @08:43PM (5 children)

      by vux984 (5045) on Sunday September 26 2021, @08:43PM (#1181668)

      No mistake. A reflection or rotation is a different configuration. It's an equivalent configuration, but its still a different arrangement, the queens are all on a different set of squares.

      • (Score: 1, Interesting) by Anonymous Coward on Sunday September 26 2021, @08:49PM (4 children)

        by Anonymous Coward on Sunday September 26 2021, @08:49PM (#1181672)
        Not really. As soon as all the pawns are gone and it's no longer possible to castle (king or both rooks have been moved) the board is now thematically symmetrical and flippable with nothing changing. There's no more "forward or back" etc.
        • (Score: 4, Insightful) by FatPhil on Sunday September 26 2021, @09:11PM (2 children)

          by FatPhil (863) <reversethis-{if.fdsa} {ta} {tnelyos-cp}> on Sunday September 26 2021, @09:11PM (#1181676) Homepage
          This is a mathematical problem. It has nothing to do with the game of chess. That it borrows one concept from the game as an analogy, and for a catchy name, doesn't mean it's anthing to do with the game.

          The dining philosophers problem is nothing to do with philosophising. The busy beaver problem involves no rodents.
          --
          Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
          • (Score: 1, Touché) by Anonymous Coward on Sunday September 26 2021, @10:22PM (1 child)

            by Anonymous Coward on Sunday September 26 2021, @10:22PM (#1181689)
            And yet the ideas of symmetry, rotation, mirroring, and flipping reduce the number of tic-tac-toe boards to only a few hundred, not the 9#8*7*6*5 … etc that people initially think.

            For example, there are only 3 possible openings corner, side, center … not the 9 most people guess. The travelling salesman is similarly affected. Doesn't matter the absolute compas direction, just the relative direction and distance between each point. So flipping the map, rotating it, or mirroring it makes no difference. Point A is still point A, and the distance to point B is still the same.

        • (Score: 2) by vux984 on Monday September 27 2021, @01:03AM

          by vux984 (5045) on Monday September 27 2021, @01:03AM (#1181718)

          Your not wrong about that.

          Nevertheless suppose I were to ask you: "Given a chess board and one queen, how many places can you put that queen on the board so that it is in a corner?".

          The board still has 4 corners, and even though all 4 solutions are symmetrical to the others, the correct answer is still 4.

    • (Score: 2) by FatPhil on Sunday September 26 2021, @09:05PM (1 child)

      by FatPhil (863) <reversethis-{if.fdsa} {ta} {tnelyos-cp}> on Sunday September 26 2021, @09:05PM (#1181674) Homepage
      You wanna play smarty-pants? Let's play smarty-pants.

      Up to symmetry, there are 12 unique solutions, not 23. Why? Because 92 = 88 + 4.

      I win.
      --
      Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
      • (Score: 1, Touché) by Anonymous Coward on Sunday September 26 2021, @10:43PM

        by Anonymous Coward on Sunday September 26 2021, @10:43PM (#1181694)

        You do have to appreciate pedantically calling out the mathematicians that study this problem by saying they didn't factor in reflective symmetry and rotational symmetry while simultaneously not factoring in reflective and rotational symmetry and missing that some solutions are symmetrical.

  • (Score: 2) by Opportunist on Sunday September 26 2021, @07:12PM (1 child)

    by Opportunist (5545) on Sunday September 26 2021, @07:12PM (#1181648)

    What if you also introduce the additional rule that a queen can only move up to m spaces. Does that allow for more than n queens on an n*n field, and if, what relationship would m and n have to have?

    • (Score: 1, Interesting) by Anonymous Coward on Sunday September 26 2021, @10:50PM

      by Anonymous Coward on Sunday September 26 2021, @10:50PM (#1181697)

      There is a related Kings puzzle and other fairy pieces. But like many derivative/variant puzzles, they don't usually get the same amount of attention until the fundamental problem is "solved" or hits a dead end.

  • (Score: 2) by vux984 on Sunday September 26 2021, @08:28PM (3 children)

    by vux984 (5045) on Sunday September 26 2021, @08:28PM (#1181664)

    If you have a few chess sets at home...

    One chess set is fine. You need 8 pieces to represent 8 queens, the white pawns will do fine.

    • (Score: 3, Funny) by FatPhil on Sunday September 26 2021, @08:47PM (1 child)

      by FatPhil (863) <reversethis-{if.fdsa} {ta} {tnelyos-cp}> on Sunday September 26 2021, @08:47PM (#1181671) Homepage
      This friendly relaxed approach welcomes draughts players to participate in the puzzle, and should be applauded.
      Go players can go get bent, of course.
      --
      Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
      • (Score: 0) by Anonymous Coward on Sunday September 26 2021, @11:56PM

        by Anonymous Coward on Sunday September 26 2021, @11:56PM (#1181710)

        Go players will be totally uninterested. Nothing move on the board, only in the mind of the players.

    • (Score: 0) by Anonymous Coward on Monday September 27 2021, @01:22AM

      by Anonymous Coward on Monday September 27 2021, @01:22AM (#1181720)

      Hey now! Some of the black pawns might dig the transgender scene as well. Just sayin' ;-)

  • (Score: 1, Funny) by Anonymous Coward on Monday September 27 2021, @01:32AM (3 children)

    by Anonymous Coward on Monday September 27 2021, @01:32AM (#1181722)

    It's that a hate crime now?

    • (Score: 0) by Anonymous Coward on Monday September 27 2021, @03:47AM (1 child)

      by Anonymous Coward on Monday September 27 2021, @03:47AM (#1181758)

      Mate, you wouldn't last 30 seconds in Windsor Castle.

      Liz II would deploy the battle corgies and you'd be toast. They look cute but they're deadly killing machines.

      • (Score: 0) by Anonymous Coward on Tuesday September 28 2021, @12:18AM

        by Anonymous Coward on Tuesday September 28 2021, @12:18AM (#1182050)

        Put me in the Iron Maiden!

    • (Score: 0) by Anonymous Coward on Monday September 27 2021, @10:08PM

      by Anonymous Coward on Monday September 27 2021, @10:08PM (#1182017)

      What kind of asshole is moderating this shit down??! Fuck you people! You're turning just as sour as those idiots at Slashdot! Go over there and bitch! Let us have our bit of fun

  • (Score: 2) by deimtee on Monday September 27 2021, @03:04AM (3 children)

    by deimtee (3272) on Monday September 27 2021, @03:04AM (#1181740) Journal

    Anyone want to bet that approximately 0.143 turns out to be approximately 0.142857142857 ?

    --
    If you cough while drinking cheap red wine it really cleans out your sinuses.
    • (Score: 0) by Anonymous Coward on Monday September 27 2021, @04:07PM (1 child)

      by Anonymous Coward on Monday September 27 2021, @04:07PM (#1181892)

      You are suggesting that the solution involves 1/7.

      I'm intrigued as to why THAT fraction. At first it made sense to be as 7=8-1 (that is after placing the first queen you now have 7 more to place). But since they were talking about the generalize case, that doesn't make any sense, it could be a matter of the number of directions that a queen can travel (8), but I'm just not convinced that that makes sense either.

      • (Score: 2) by deimtee on Tuesday September 28 2021, @04:42AM

        by deimtee (3272) on Tuesday September 28 2021, @04:42AM (#1182100) Journal

        Those were the two reasons I thought of too, but I had absolutely no backing for it. I was just intrigued that the constant was so close to 1/7 (while still being described as "approximately", which would give it enough wriggle room to be exactly 1/7).

        --
        If you cough while drinking cheap red wine it really cleans out your sinuses.
    • (Score: 0) by Anonymous Coward on Tuesday September 28 2021, @01:29AM

      by Anonymous Coward on Tuesday September 28 2021, @01:29AM (#1182071)

      You can do the math yourself, if you'd like. Q(n)=((1±o(1))ne−α)n where α=1.942±3×10−3

  • (Score: 0, Troll) by Acabatag on Monday September 27 2021, @03:23AM (1 child)

    by Acabatag (2885) on Monday September 27 2021, @03:23AM (#1181746)

    There are only two queens on a chess board. Isn't chess an interesting enough game, with enough possibilities, that totally impossible scenarios need not be considered for discussion?

    • (Score: 2) by FatPhil on Monday September 27 2021, @05:04AM

      by FatPhil (863) <reversethis-{if.fdsa} {ta} {tnelyos-cp}> on Monday September 27 2021, @05:04AM (#1181769) Homepage
      There are games recorered with 5 *simultanious* queens. 6 queen games have also occured, maybe more.
      --
      Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
  • (Score: -1, Offtopic) by Anonymous Coward on Monday September 27 2021, @05:23AM

    by Anonymous Coward on Monday September 27 2021, @05:23AM (#1181777)

    narcotics, drugs, 9/11, nine, eleven, planes, plane, jet, city, state, county, nuke, icbm, cocaine, you, forgot, your, briefcase, nuclear, war, fbi, nsa, dhs, cia, linux, tails, journal, flash, bomb, stink, laser, flir, missile, guidance, mo, objective, complete, mission, final, game, stages, plot, plotting, plotted, thanks, for, the, cake, grandma, you're, welcome, dea, snow, candy, angel, dust, black, mamba, wikileaks, wiki, leak, leaks, leaking, leaked, c4, thermite, blow, up, explode, implode, thrash, chicken, goat, barn, pharmacy, target, targeting, targeted, individual, individuals, smart, dust, cocaine, pcp, marijuana, cannabis, bump, inject, injection, injected, exposure, time, half, life, multiplayer, online, whip, Taliban, middle, east, free, freedom, war, wars, warring, liquid, solid, gas, ferment, fermenting, fermentation, cooperation, stranger, strange, mustard, gas, agent, orange, muscle, muscles, build, building, built, erect, erecting, erected, penis, cow, pig, two, weeks, pussy, vagina, penis, anus, robot, robotic, blood, bloody, lust, shower, napalm, skin, skinned, skinning, primary, lock, locked, good, to, go, extreme, xtreme, caffeine, overdose, heroin, poppy, opium, codeine, morphine, snort, snorting, snorted, needle, needles, fire, firing, fired, location, qr, code, gps, sat, comsat, com, comm, hack, hacking, hacked, pwn, pwned, 31337, 1337, computer, computing, computed, computation, computations, cock, sucker, just, the, tip, cmon, mang, wash, washing, washed, tower, towering, towered, ditch, hole, Korean, Vietnam, Vietnamese, Chinese, rice, noodles, supreme, there, can, only, be, one, Japan, Iraq, big, bada, boom, nigger, niggers, niggerlicious, cracker, ass, mother, fucker, fuck, fucking, fucked, mines, ied, ieds, dig, trench, bazooka, tank, ammunition, ammo, ninja, popular, terror, terrorism, freddy, who, gives, a , fuck, what, you, think, nightmare, on, elm, street, part, three, monkey, monkeys, twelve, army, of, flaccid, van, sex, vanned, extradite, extract, arab, arabic, muslim, islam, islamic, the, dog, is, getting, rapid, king, terry, davis, built, his, own, compiler, what, have, you, done lately

    Thanks, Grandma!

(1)