MPMSolutions: Avoid the Square!

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

Комментарии • 155

  • @AgentM124
    @AgentM124 4 года назад +55

    I love how everytime you pronounce 'solutions', you say it in a tone that makes me think you're not quite sure if it really is solutions.

    • @ShaunCockerill
      @ShaunCockerill 4 года назад +1

      It's unfortunate, but most Australians speak with an upwards inflection. In this case though it's completely deliberate and I love it every time.

    • @veggiet2009
      @veggiet2009 4 года назад +3

      They are "Parker 'solutions'"

  • @U014B
    @U014B 4 года назад +34

    Łukasz = WOO-käsh
    Moshe = MO-sheh
    Xu = Shoo
    Aloysius = æl-oh-ISH-us
    Something something Parker Pronunciations

    • @PhilBagels
      @PhilBagels 4 года назад +2

      Yeah! Moshe and Aloysius especially shouldn't be that hard. Aloysius is one of the many longer forms of Al (Allen, Alex, Albert, Algernon, Alfred, etc.)

    • @daanwilmer
      @daanwilmer 4 года назад +10

      Matt mispronouncing Łukasz makes me think of a bit of maths/computer science history. In 1924, Jan Łukasiewicz invented prefix notation for operations. For example, you would write "2 + 3" as "+ 2 3", and "4 + (5 - 2)" would be "+ 4 - 5 2" - you see, if you know how many things to with each operator, this notation is completely unambiguous.
      Now, where many inventions get named after their inventor (see "Turing machines" after Alan Turing, or "Dijkstra's algorithm" after Edsger Dijksta), with Łukasiewicz... not so much. Instead, this notation is most commonly referred to as "Polish notation", as people couldn't be bothered with learning how to pronounce "Łukasiewicz".

    • @U014B
      @U014B 4 года назад +2

      @@PhilBagels To be fair, I'd heard the name Aloysius before I saw it written out, and I was really surprised to see it was spelled that way.

    • @U014B
      @U014B 4 года назад +1

      @@daanwilmer You watched that Computerphile video too, didn't you?

    • @lewismassie
      @lewismassie 4 года назад +3

      @@daanwilmer Well that solves a 4 year mystery of why it was called polish notation in my comp sci class

  • @simonschey196
    @simonschey196 4 года назад +20

    Hey Matt, thanks for mentioning my spreadsheet, I love that you call it an "honorable mention" :) But I think, you forgot to link to the spreadsheet in the description 😬 Kind regards, Simon

  • @dieb7843
    @dieb7843 4 года назад +30

    A 8x8 grid contains 7x7 grids, but those do not necessarily contain 25 red and 24 green tokens. So, you have to show that there are no square-free solutions for any combination of red and green tokens. (Luckily, there are none)

    • @t71024
      @t71024 4 года назад +3

      I was going to say the same thing!

    • @mattparker2
      @mattparker2  4 года назад +14

      Excellent point!

    • @EumelHugo
      @EumelHugo 4 года назад +1

      An 8x8 has 15 fields more than a 7x7. Even if they are all red there are at least 17 red fields in the 7x7 subgrid for the 8x8 to be balanced.
      So you only need to check if there are no solutions in a 7x7 for the number of tokens of one color between 17 and 24 in order to proof that there is no balanced 8x8 solution.
      However this is not a proof that there is no "balanced" 9x9 solution.

  • @nazgul4220
    @nazgul4220 4 года назад +15

    "Oh, it appears in the little window with me!"
    This part had me laughing a lot ^^

  • @emulateiam
    @emulateiam 4 года назад +4

    I feel like this series is genuinely really enjoyable for Matt cause it's like having a classroom of 2000+ attentive students and no actual curriculum to stick to besides "do some fun maths things"

  • @SPACKlick
    @SPACKlick 4 года назад +41

    11:19 - That's not a solution there is a square, pieces 2, 4, 12 and 14 are all blank and form a medium 90. Also 8, 15, 17, 24 form a small right windmill with pieces.

    • @PhilBagels
      @PhilBagels 4 года назад +4

      I noticed that too. No bonus points for using LEGO when your solution isn't even correct!

    • @calli371
      @calli371 4 года назад +3

      And 3, 10, 12, 19 are blank as well (1 row above the small right windmill with pieces)

  • @HagenvonEitzen
    @HagenvonEitzen 4 года назад +69

    9:21 This is not correct with the original puzzle: There you demanded (by the nature of a two player game) the same number of red and green tokens (give or take one for odd sizes). That way, a balanced 8x8 need not have a balanced 7x7 in it!
    However, it is in fact true that there does not even exist a 7x7 solution if we ignore balance (at least two fields will need to be left empty). This then indeed shows that no larger square (or rectangle) can be solved woth or without balancedness condition.

    • @andymcl92
      @andymcl92 4 года назад +3

      I was wondering that myself. For example in the 4x4 case, you can have:
      xxxx
      oooo
      oxxo
      ooxx
      In this case, the bottom left 3x3 isn't balanced (though the other 3 are). I could imagine a case where there is a valid n*n containing no balanced (n-1)*(n-1) grids.

    • @MrDowntownjbrown
      @MrDowntownjbrown 4 года назад

      That's an interesting question. If the grid is balanced, can you always find a balanced subgrid of any size. Maybe some type of argument with mean value theorem would work, although this is discrete not continuous

    • @aaronthompson2827
      @aaronthompson2827 4 года назад +3

      @@MrDowntownjbrown You don't have to go very far to find a counterexample:
      [1 1 1]
      [1 2 1]
      [2 2 2]

    • @screwaccountnames
      @screwaccountnames 4 года назад +2

      If there is no balanced solution (or "as near to balanced as possible" for odd n), there cannot be an unbalanced solution either, because you have to add more tiles of a color that already has some squares.

    • @andymcl92
      @andymcl92 4 года назад +2

      @@screwaccountnames I believed you for a second, but I'm not sure I'm convinced. Suppose (wlog) there is a balanced 7x7 grid with 24 white tiles and 25 black tiles. Suppose that this grid contains a single square of 4 white tiles. One could substitute a single white tile for a black tile and potentially remove that square, leading to a 7x7 grid with 23 white and 26 black tiles, i.e. a valid but unbalanced grid.

  • @alcesmir
    @alcesmir 4 года назад +29

    I picked this option, because it looked like a smiley face
    xxxxx
     x x 
         
    x x x
     xxx

    • @tomkeith8853
      @tomkeith8853 4 года назад +4

      Alcesmire If you ask me, this deserves just as many bonus points as a Lego solution!

  • @gobbel2000
    @gobbel2000 4 года назад +3

    I made my life easy by using a randomized algorithm which simply generates random placements until one without squares is found. Worked very well for 5x5 at least.

  • @seanm7445
    @seanm7445 4 года назад +16

    Lego gets an honourable mention?
    Well guess I’ll need to attempt the next one in Minecraft!

    • @oliverdunk_
      @oliverdunk_ 4 года назад +1

      Please do!

    • @JNCressey
      @JNCressey 4 года назад +1

      "Sean M programmed this solution in Minecraft command blocks"

    • @ShaunCockerill
      @ShaunCockerill 4 года назад +1

      Or we could wire up a contraption using hoppers, comparators and locked repeaters.

    • @orangeninjaMR
      @orangeninjaMR 4 года назад

      There were at least two square in the Lego one though :')

  • @Huntracony
    @Huntracony 4 года назад +1

    I wrote a program (in Haskell) that would've found all of them... it was just really, really slow. I wanted to try and optimize it a bit first, then send it in, but I forgot.
    It first calculated all of the potential squares for that size, then generated every possible game (with a balanced number of stones), then checked all of the games against those potential squares, filtered out those that had none, and printed them out. It spit out a size 5 solution every few seconds (after you gave it a while to get going), but it never got a size 6 solution. I gave it like 30 minutes.

  • @thatdude_93
    @thatdude_93 4 года назад +10

    I like to play the game "avoid the perfect square", also known by its other name "construct the parker square". very much fun :)

  • @rotflmaopmpqxyz
    @rotflmaopmpqxyz 4 года назад +10

    lol there's a square in the lego one (a small right windmill). I think Matt wanted us to see mistakes in squares to have us forget about his

    • @Tfin
      @Tfin 4 года назад +1

      Also an empty (green) square!

  • @WarMage
    @WarMage 4 года назад +3

    So, I entered this one, and did it free-hand right on the submission, didn't write anything down, just winged it, thought I had checked my answer thoroughly, and would be interested in seeing what I put in, after this solutions video came out so I could see where I went wrong, as it has been a little while... but I can't as far as I can tell.

  • @TheKingOfToast
    @TheKingOfToast 4 года назад +1

    The only problem I have with the puzzles us that theirs not enough of them. Keep it up, I love these videos.

  • @HagenvonEitzen
    @HagenvonEitzen 4 года назад +5

    Replacing trendy "hip" by "square" is groovy!

    • @andymcl92
      @andymcl92 4 года назад +1

      My aunt's just had a square replacement

  • @danielchodnicki3632
    @danielchodnicki3632 4 года назад +9

    7:07 It's Wookash

    • @U014B
      @U014B 4 года назад +3

      Good ol' Polish: writing a Slavic language with the Latin alphabet, and using none of the conventions of either.

  • @damientonkin
    @damientonkin 4 года назад +7

    Matt's little rectangle needs sound effects as it is driving around tje screen.

  • @Tyranisaur
    @Tyranisaur 4 года назад +20

    "This person did it with [insert programming language]" says nothing at all about how it was solved.

  • @rmsgrey
    @rmsgrey 4 года назад +1

    The 24 solutions for 6x6 looks suspiciously like the 18v18 case with no duplicate-cancellation, ignoring the 16 solutions for 17v19. In which case, the 0 solutions for the 7x7 board isn't conclusive for the 8x8 board - there being no 24v25 solutions doesn't immediately guarantee the absence of 23v26 solutions (it may be possible to prove that any solution with unequal numbers of the two colours can be turned into another solution by flipping a token of the majority colour, but it's not obvious that it's even true, let alone provable). So it would need to be shown in some way that you couldn't get a balanced 8x8 solution (32v32) by overlapping unbalanced (23v26 or more extreme) 7x7 solutions.
    Presumably at some point the situation arises where you can't fit enough of one colour onto an NxN board even before considering the second colour - if you could prove that you can't fit 25 counters on a 7x7 in a square-free fashion, that would immediately prove that 7x7 and all larger boards are impossible.

  • @stevethecatcouch6532
    @stevethecatcouch6532 4 года назад +2

    The puzzle was to fill a 5x5 grid and form no squares. A solution confirms that cooperating players can engineer a tie game. But can a tie come about in normal play? In other words, does neither player have a winning strategy?

    • @tomkeith8853
      @tomkeith8853 4 года назад +1

      Steve the Cat Couch If my computer analysis is correct, the player who goes second can force a win; i.e., they can force the first player to eventually make a square. First player’s best hope is to make his first move to a corner. If second player does not also play to a corner, first player can then force a tie.

    • @nathanshirley8931
      @nathanshirley8931 4 года назад +1

      @@tomkeith8853 careful! If the second player does not play to an adjacent corner, it is a tie!

  • @zoltansnarf4862
    @zoltansnarf4862 4 года назад +1

    I love solutions. They are the best.

    • @scoutskylar
      @scoutskylar 4 года назад

      I love puzzles. They are better.

  • @AndreasEldhSweden
    @AndreasEldhSweden 4 года назад +1

    11:07 Thanks for the honourable mention, even though my solution was faulty! This is the square I missed: flic.kr/p/2jneLin

  • @PowasaurusRex
    @PowasaurusRex 4 года назад +3

    The Lego one has two small right windmills

  • @JamesExplains
    @JamesExplains 4 года назад +1

    I vote that LEGO should be worth a bonus point!

  • @kane2742
    @kane2742 4 года назад

    The "windmills" (2:27) made me think I might not have submitted a valid answer - I had checked for squares where the corners are "knight move" away from each other (the small windmills), but I don't remember checking for the large windmills. Fortunately, according to the Java widget and spreadsheet, my submission WAS a valid answer.

  • @ariel_haymarket
    @ariel_haymarket 4 года назад +2

    As I stated in the puzzle video - I conjecture that a g(64) by g(64) grid will never have a draw in the game of hip.
    GNU Ron Graham.

    • @aaronthompson2827
      @aaronthompson2827 4 года назад

      the entire universe would collapse before the game ends. surely that counts as a draw.

  • @freddiepage6162
    @freddiepage6162 4 года назад +3

    Łucasz is pronounced Woo-cash

  • @stuartbassett8129
    @stuartbassett8129 4 года назад +4

    Whatever happened to the scrabble solution?

  • @daniellebarker7205
    @daniellebarker7205 4 года назад

    Thanks for the mention!

    • @mattparker2
      @mattparker2  4 года назад +1

      Thanks for doing the maths!

  • @danieltaber4924
    @danieltaber4924 4 года назад +2

    I wonder what the solutions are for avoiding Equilateral Triangles on a Triangular/Hex grid.

  • @aaronthompson2827
    @aaronthompson2827 4 года назад +2

    8:56 typo, 5x5 is 2704. I also got 24 for 6x6. I'm not sure what Matt means by duplicates?

    • @rilesmcgiles1145
      @rilesmcgiles1145 4 года назад +2

      He means reflections and rotations. A valid solution could be identical to another except they are rotated 90 degrees. Many people would prefer to remove those "duplicates" as they don't bring a new unique answer, just the same logic turned on its head.

    • @aaronthompson2827
      @aaronthompson2827 4 года назад +1

      @@rilesmcgiles1145 I see. He said "there *are* fewer than 24" which I thought implied there's no correct way to count 24, and they must've counted the same square twice.

    • @jayware6155
      @jayware6155 4 года назад +1

      @@aaronthompson2827 I got 24 as well including both symmetries and swapping the counter colours round. Matt might have been counting solutions that just exchange counter colours as duplicates. Similarly, the 2704 for 5x5 includes symmetric but not solutions that have 12 green counters as opposed to 13 green (or vice versa) - including both give 5408 for 5x5

    • @scoutskylar
      @scoutskylar 4 года назад

      @@rilesmcgiles1145 If a solution could be rotated by 90 degrees, it would have to have a lot of squares. Of course, reflections and 180-degree rotations are still valid.

  • @mattfeeder18
    @mattfeeder18 4 года назад +1

    I knew my messing about with Excel at age 6 in ICT was worth it.

  • @twojuiceman
    @twojuiceman 4 года назад +1

    I was watching a calculator unboxing video when this popped up in my subscriptions

  • @LincolnChamberlin
    @LincolnChamberlin 4 года назад +1

    You could do a single bonus point for those who do in novel ways
    (a single bonus point is fun as an honorable mention it but not really worth much)

    • @mattparker2
      @mattparker2  4 года назад

      The trivial point of recognition.

  • @GuanoLad
    @GuanoLad 4 года назад

    I had not considered the windmill squares, but I got it right anyway.

    • @robqg
      @robqg 4 года назад

      Same, except I failed on a small windmill, sadly.

  • @Jaojao_puzzlesolver
    @Jaojao_puzzlesolver 4 года назад +1

    4:13 So is 340 the exact number of solutions for 5x5 if we consider reflections and rotations duplicates as one ?

  • @Jrakula10
    @Jrakula10 4 года назад +2

    didnt even know windmill was a type of square i was supposed to avoid angwy face

  • @SourceOfBeing
    @SourceOfBeing 4 года назад +2

    Dammit, I didn't think about the windmills.

  • @alexbeerling1048
    @alexbeerling1048 4 года назад +1

    Has Matt ever published the results for the Scrabble puzzle yet? I still got it wrong, and still have no idea why, and really want to know!!

    • @loreleihillard5078
      @loreleihillard5078 4 года назад

      No, we're all still waiting on it

    • @kane2742
      @kane2742 4 года назад

      Nope, and that's the only one I've gotten wrong so far, so I really want to see what the right answer is. (But I misplaced my answer, so I guess I won't really be able to see how close I was. Maybe I'll try again.)

  • @jeffreyblack666
    @jeffreyblack666 4 года назад

    No, an 8 by 8 does not necessarily contain a 7 by 7.
    For a 7 by 7 grid, there are 49 cells and each player must thus make 24 or 25 moves.
    An 8 by 8 grid has 64 squares and thus each player must make 32 moves, however 15 of these can be by one player along the 2 edges. In fact, they could place 28 squares all around the edge.
    Thus any corner of the grid to make a 7 by 7 grid will have only 17 of their squares while it has 32 of the others players squares.
    Sure, this wont produce a valid solution, but that doesn't mean that it is a trivial case of an 8 by 8 must have a 7 by 7 in it.

  • @AgentM124
    @AgentM124 4 года назад

    Now, how many solutions are there for a 7x7 BUT, there are 3 colors of tokens now. Now how big can you make the grid. and what if there are 4 players, or 5. If we take the sequence of the largest n×n square possible for 1, 2, 3, ... amount of tokens: {n_1, n_2, n_3 ...} what is that sequence? (we know it starts with i=1, n=1. then i=2, n=6, {1, 6, ...} but then?)

  • @Jaojao_puzzlesolver
    @Jaojao_puzzlesolver 4 года назад +1

    I only found 5 solutions for 5x5 by myself, and I was happy about that until I know that there are 2704 solutions in total. 😥

  • @BL3446
    @BL3446 4 года назад

    Idk why but i just completely forgot to check for the Small Windmills entirely. I almost got them all covered up by accident too even. It's a shame too, because I remember having "extra" tokens left and thinking, "aha, the trick is that you HAVE to place these extras and they might be forced to make a square. But sadly, no..

  • @Fogmeister
    @Fogmeister 3 года назад

    That Lego picture had a small right windmill in it.

  • @d0pomein
    @d0pomein 4 года назад +1

    Lego had a windmill in it

  • @MrConverse
    @MrConverse 4 года назад +1

    10:28, I believe you meant 5 x n, not 5 x 5.

  • @pdpgrgn
    @pdpgrgn 4 года назад

    I noticed what he calls the windmills while solving, but somehow I calculated them to be rhombuses and my submission included them 😒😒
    Btw, what is the formula for weighted points ? I got 2000 on puzzle 9 and 500 (I think) on this, and my weighted score is 2100. Apparently the weight of the most recent is 100% and the immediate previous puzzle is 80%, but I don't have enough data to confirm

  • @kashgarinn
    @kashgarinn 4 года назад +1

    Lego should get all the bonus points.

  • @Grimlock1979
    @Grimlock1979 4 года назад

    8:43 The 5x5 has 2704 solutions, not 2074 but I assume that's not a math error..

  • @sudhenduahir802
    @sudhenduahir802 4 года назад +1

    Damn Matt, I was really hopeful I'd get included in the video.. I'll try again maybe..

  • @jellomochas
    @jellomochas 4 года назад +2

    Is that Danielle Barker the Scrabble player?!
    Hi

  • @veggiet2009
    @veggiet2009 4 года назад

    But they didn't call them hipsters, there were hippies, but then I'm not sure it was the hippies that used the word 'square' in this manner exclusively, there were also the beatniks, and other subcultures

  • @zetacrucis681
    @zetacrucis681 4 года назад

    Came to check out the sheet acid tabs in the thumbnail...

  • @louisng114
    @louisng114 4 года назад

    What if there are three players?

  • @pingnick
    @pingnick 4 года назад

    Wow! 5Xinfinity nice... I like the idea of toy LEGO Danish nationalism or whatever hahaha... anyway playing the game against someone with some weird set of rules on the 5Xinfinite board would be interesting perhaps to pursue with game theory etc

  • @minirop
    @minirop 4 года назад +1

    if Łukasz is Polish (which he probably is) it's pronounced like "wukass". (the L with stroke is a /w/ sound)

    • @pepkin88
      @pepkin88 4 года назад +1

      ...and sz is close to a sh sound

  • @samus88
    @samus88 4 года назад

    LOL, I got 500 points and thought that meant I solved the puzzle. I don't even know what I did wrong. I think I didn't think about squares at angles, that screwed me over.

  • @itisALWAYSR.A.
    @itisALWAYSR.A. 4 года назад

    Shucks, I didn't even consider the windmill type squares

  • @mashmachine4087
    @mashmachine4087 4 года назад

    4:07 no-one tell him facecams are in the corner generally

  • @benmagistris6428
    @benmagistris6428 4 года назад

    The windmills got me...

    • @robqg
      @robqg 4 года назад

      Me too :'(

  • @toddbiesel4288
    @toddbiesel4288 3 года назад

    Ironic that the number of square-free solutions for 5×5 is 52 squared.

  • @Kyrelel
    @Kyrelel 4 года назад +3

    New puzzle suggestion:
    How many different ways can Matt (mis)pronounce someone's name ;)

  • @endrawes0
    @endrawes0 4 года назад +1

    I don't think it was clear (or I want paying attention) that those other "squares" were to be avoided. I certainly didn't look. Shucks

  • @invidious07
    @invidious07 4 года назад

    I tried for like 5 minutes in excel, no luck. Should have tried lego.

  • @fozzzyyy
    @fozzzyyy 4 года назад +1

    smh didn't mention my program that requires 2.5TB of RAM

  • @cyrilpeter1958
    @cyrilpeter1958 3 года назад

    How did I end up here.

  • @bjornmu
    @bjornmu 4 года назад +1

    Dang, I got 500 points, I must have overlooked a square! :-(

    • @leefisher6366
      @leefisher6366 4 года назад +1

      How do you check your points? (I don't do facebook, twitter, or anything like that).

    • @msclrhd
      @msclrhd 4 года назад

      @@leefisher6366 Follow the "All details about Matt Parker's Maths Puzzles are on the Think Maths website" link in the description. Click on the "League Table And Scoring System" link. In the "Search by name..." field in the table, type the name you used in the submission form for the puzzle. The points are in the given week column, but only the past 6 weeks contribute to your total, so earlier weeks are not displayed.

    • @leefisher6366
      @leefisher6366 4 года назад +1

      @@msclrhd Thanks. (goes to check)
      Yeah, I got 500 points too. Drat.

    • @Tfin
      @Tfin 4 года назад +1

      Gah! I wish I could see what it was I missed. I was sure I got all of them. I even went through and looked for every square from each coin that could make that square.

    • @mattparker2
      @mattparker2  4 года назад

      A lot of people missed squares formed by the other player’s tokens (aka: the blank squares) which would mean it is not a draw.

  • @owensilberg2966
    @owensilberg2966 4 года назад

    93 like and 930 views, nice!

  • @ijeremyoliver
    @ijeremyoliver 4 года назад +33

    I just noticed that Matt only uses the pronouns "they, them, their" to refer to participants.

    • @iamdigory
      @iamdigory 4 года назад +7

      Makes sense, since he can't really know their gender, but he also does it with his assistants, which is strange (did his assistants all ask for they pronouns? Unlikely)

    • @djedg10
      @djedg10 4 года назад +5

      Oliver is obviously male though. Why not just say “he”?

    • @TrueLegoXman
      @TrueLegoXman 4 года назад +4

      Yeah it's kind of annoying.

    • @austinnar4494
      @austinnar4494 4 года назад +14

      It's honestly nice, in situations where the gender of someone is useless information (most times), especially when the person is someone you don't personally know, I much prefer they pronouns. It's less presumptuous

    • @arirahikkala
      @arirahikkala 4 года назад +15

      Hey, he's a mathematician. If he can choose to use an abstraction that's always correct, instead of a guess that looks correct but has hidden exceptions, you know he's going to go for it.

  • @TheSpacecraftX
    @TheSpacecraftX 4 года назад

    Flood of Lego submissions incoming.

  • @rewrose2838
    @rewrose2838 4 года назад +1

    So 2 minutes in and I'm 2nd comment
    Woohoo!