A visibility problem, how many guards are enough?

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 778

  • @ailiscatach3108
    @ailiscatach3108 5 ปีที่แล้ว +7212

    Simple solution: stop using weirdly shaped museums

    • @Alucard-gt1zf
      @Alucard-gt1zf 5 ปีที่แล้ว +93

      Ailis Catach then the museum would be empty

    • @nyesimpson8774
      @nyesimpson8774 5 ปีที่แล้ว +13

      Alucard how exactly?

    • @Alucard-gt1zf
      @Alucard-gt1zf 5 ปีที่แล้ว +140

      Nye Simpson would be a really boring museum without any large exhibits that don’t block the view

    • @KrisMcCool
      @KrisMcCool 5 ปีที่แล้ว +17

      Sounds about right

    • @dfferentpoint
      @dfferentpoint 5 ปีที่แล้ว +1

      It's atr

  • @Devlin20102011
    @Devlin20102011 5 ปีที่แล้ว +8915

    “Assuming your guards have 360 degree vision and can only be place in corners” why? Why would I assume any of that?

    • @Blox117
      @Blox117 5 ปีที่แล้ว +1293

      be silent comrade, we do not discuss such unimportant matters here.

    • @antimatter2376
      @antimatter2376 5 ปีที่แล้ว +606

      well he did mention it'd be better to use 360 degree cameras but that he was sticking with guards. and hes saying only at corners so that the proof is a lot easier and to just have a solution

    • @d0nnyr0n
      @d0nnyr0n 5 ปีที่แล้ว +160

      @@somerandomguyontheinternet9100 He said "at once" as in: they have to be able to see everything at any moment.

    • @kuhmuh2357
      @kuhmuh2357 5 ปีที่แล้ว +201

      welcome to math

    • @RedFox-dj7di
      @RedFox-dj7di 5 ปีที่แล้ว +10

      @@kuhmuh2357 ya bro

  • @sipinosapa
    @sipinosapa ปีที่แล้ว +612

    No matter how many guards you put in a room. Nothing can stop a four man ECM rush.

    • @miraijfish
      @miraijfish ปีที่แล้ว +25

      Just watch the lazers

    • @Lopeped-Cring
      @Lopeped-Cring ปีที่แล้ว +46

      Except for that one guy that gets meleed by a guard, instantly killing them and launching them halfway across the gallery

    • @skell6134
      @skell6134 ปีที่แล้ว +20

      @@Lopeped-Cring Just have one guy with Inspire for that case,lol
      You dont exactly need low concealment build to do ECM rush XD

    • @EEEEEEEE
      @EEEEEEEE ปีที่แล้ว +2

      E‎‎‎‎‎‎‎‎‎‎‎‎‎‎

    • @samuellinn
      @samuellinn ปีที่แล้ว +7

      @@skell6134 Inspire doesn't work during stealth btw. Me and my friend learnt that the hard way trying to defy gravity.

  • @rexinkognito2740
    @rexinkognito2740 5 ปีที่แล้ว +2907

    one operating the cameras

    • @fernando47180
      @fernando47180 5 ปีที่แล้ว +123

      I'm not sure a single guard would be able to pay attention to, say, 50 cameras simultaneously, though

    • @rexinkognito2740
      @rexinkognito2740 5 ปีที่แล้ว +283

      @@fernando47180 give him cocaine

    • @tdoubledub1
      @tdoubledub1 5 ปีที่แล้ว +100

      @@fernando47180 who said 50? just =>n/3

    • @teancrumpets5685
      @teancrumpets5685 5 ปีที่แล้ว +43

      One operating cameras and one on the ground to respond quickly, using radios

    • @akashchoudhary8162
      @akashchoudhary8162 5 ปีที่แล้ว +34

      @@fernando47180 One guard operating 50 cameras with shape detection software

  • @centro.4k
    @centro.4k 5 ปีที่แล้ว +2203

    "My job gets me really dizzy."
    "What? What do you do?"
    "Oh, I'm just a 360° security guard."
    "How is that possible?"
    "I spin."
    "How does spinning... Oh.. That must suck."
    "No not really I love my job, it spins in the family."

    • @x_sphinz2982
      @x_sphinz2982 4 ปีที่แล้ว +69

      This comment not having a reply after months is completely understandable.

    • @thelizardpalace4597
      @thelizardpalace4597 4 ปีที่แล้ว +14

      You really threw a spin on that

    • @thefierypaladin126
      @thefierypaladin126 4 ปีที่แล้ว +15

      Gyro be all

    • @espressocookie8965
      @espressocookie8965 4 ปีที่แล้ว +10

      *Spins rapidly*

    • @chrishansen1842
      @chrishansen1842 4 ปีที่แล้ว +4

      @@x_sphinz2982 look at what you've created.

  • @evank3718
    @evank3718 5 ปีที่แล้ว +878

    Really thought you were going to triangulate that triangle into a Triforce. Missed opportunity

    • @selectivepontification8766
      @selectivepontification8766 4 ปีที่แล้ว +17

      That would be cute but that goes against the principles shown in the video

    • @Anikin3-
      @Anikin3- 3 ปีที่แล้ว +29

      @@selectivepontification8766 YoU mUsT bE fUn At PaRtIeS

    •  ปีที่แล้ว +9

      ​@@selectivepontification8766Not sure. The induction would still work. It would just be needlessly complicated.

    • @EEEEEEEE
      @EEEEEEEE ปีที่แล้ว

      E‎‎‎‎‎‎‎‎‎‎‎‎‎‎

  • @airmanon7213
    @airmanon7213 ปีที่แล้ว +395

    This makes me wonder how different the problem would be if the guards could be placed in places other than the vertices, *but* they have a limited range of vision of a given radius.

    • @ifroad33
      @ifroad33 ปีที่แล้ว +9

      Im guessing you could draw imaginary intersections points by extending all vertices to a huge length, and look at where each and every one of these lines intersect. These would be the new points of interest since they tell us where we can get more information.
      For the radius thing I have no idea where to start lmao

    • @airmanon7213
      @airmanon7213 ปีที่แล้ว +4

      @@ifroad33 Good point.

    • @EEEEEEEE
      @EEEEEEEE ปีที่แล้ว

      ‎‎‎‎‎‎E

    • @daniellucas5522
      @daniellucas5522 ปีที่แล้ว +1

      Very - even just the question of how many you need to cover a circle is quite complex for small vision ranges.

  • @zachstar
    @zachstar  5 ปีที่แล้ว +931

    Something I didn't mention but wanted to at least say here is that for galleries in the shape of an 'orthogonal polygon', where every corner makes a 90 degree angle (or 270 if we're talking internal angles) then the upper limit is n/4 (rounded down) instead of n/3. The proof is very similar so if you want a challenge you can give that a try.

    • @Leyrann
      @Leyrann 5 ปีที่แล้ว +36

      I'd say that's pretty simple.
      Instead of making triangles, you make rectangles. Instead of 3 colors, you use 4 colors. You apply the same proofs used here - and you get n/4 rounded down.

    • @sugar2000galaxy
      @sugar2000galaxy 5 ปีที่แล้ว +2

      you smart

    • @EEEEEEEE
      @EEEEEEEE ปีที่แล้ว

      E‎‎‎‎‎‎‎‎‎‎‎‎‎‎

    • @MsTwissy
      @MsTwissy ปีที่แล้ว

      Can you design a room made of mirrors that has a space that doesn’t get light?

    • @popeallahsnack-bar9804
      @popeallahsnack-bar9804 ปีที่แล้ว +2

      @@MsTwissy Yeah, a room full of mirrors with the lights off

  • @randomdude9135
    @randomdude9135 5 ปีที่แล้ว +471

    This reminds me of the illumination problem discussed in Numberphile

    • @aidarosullivan5269
      @aidarosullivan5269 5 ปีที่แล้ว +40

      Maybe because these two problems are basically isomorphic (same)? lol

    • @martiddy
      @martiddy 5 ปีที่แล้ว +2

      Me too, I thought it was the same problem

    • @planetdesign4681
      @planetdesign4681 5 ปีที่แล้ว +4

      They are kind of the same

    • @Scratchmex
      @Scratchmex 5 ปีที่แล้ว +6

      @@aidarosullivan5269 they aren't "isomorphic" they are equivalent.

    • @mhilmihamka
      @mhilmihamka 4 ปีที่แล้ว +33

      @@aidarosullivan5269 it is similar, but not the same. Illumination problem defines walls (sides of polygon) as mirrors; it reflects light, whereas art gallery problem define its walls to be non-reflective.

  • @cd.s.82
    @cd.s.82 ปีที่แล้ว +185

    I watched this video twice 3 years apart, before taking a college-level discrete maths course and right after. Now, being able to understand the terminology and logic just made me appreciate this video that much more.

    • @MykhailoBazalii
      @MykhailoBazalii ปีที่แล้ว +4

      So, I guess there is something much deeper in the video than what I saw in it. Because I did not take a course in mathematics

    • @EEEEEEEE
      @EEEEEEEE ปีที่แล้ว +2

      E‎‎‎‎‎‎‎‎‎‎‎‎‎‎

    • @Jetpans
      @Jetpans ปีที่แล้ว +1

      Yea, im watching this after taking discrete maths aswell and it is nice to see all the proofs which I once did used in a problem. The induction explanation in the video feels backwards because formaly you first make a conjecture and then use the trivial case to proove the conjecture.

  • @Some__Guy
    @Some__Guy 4 ปีที่แล้ว +83

    The thing with Ocarina's stealth section, is that it could have been easily been done with *one* single guard, who just guards any single choke point that you HAVE to go. Like, with that first square with the two fountains, just have someone lean against the wall in the left corner. Boom, no way to get through without being seen. If you want to assume that they're preparing for an intruder who could actually attack them, just add a second guard in the same spot. The only reason you would need the entire area in LoS, would be if you wanted to... I don't know, stop some weird kid from vandalizing the fountains?

    • @EEEEEEEE
      @EEEEEEEE ปีที่แล้ว +2

      E‎‎‎‎‎‎‎

  • @sketchyth0ughts399
    @sketchyth0ughts399 5 ปีที่แล้ว +450

    You can have 10, 15 or even 20 guards in a room, cameras, sensors, tripwires and mines.
    But Snake will always find a way.

    • @jo_nm9484
      @jo_nm9484 5 ปีที่แล้ว +6

      😂

    • @catchara1496
      @catchara1496 4 ปีที่แล้ว +5

      SketchyTh0ughts da box

    • @notme8232
      @notme8232 ปีที่แล้ว +13

      Just don't put a cardboard box in the museum, and you'll be fine.

    • @drm.himself
      @drm.himself ปีที่แล้ว +2

      Because he can reload saves

    • @catboy6451
      @catboy6451 ปีที่แล้ว +5

      Snake sneaking in and seeing 4 well dressed men with clown masks

  • @polishedpebble4111
    @polishedpebble4111 5 ปีที่แล้ว +233

    Zero.
    Because it's a closed room.

    • @Osama-Bon-Jovi-01
      @Osama-Bon-Jovi-01 5 ปีที่แล้ว +2

      th-cam.com/video/k-oVuQpjG3s/w-d-xo.html
      th-cam.com/video/ar0xLps7WSY/w-d-xo.html

    • @LiterallyRain
      @LiterallyRain 4 ปีที่แล้ว +7

      If there's no light source it is indeed very difficult to observe the entire room when it's closed off from the outside. That aside, the question was how many guards was required to observe the entire room at once, so whether or not a break-in is plausible is besides the point.

    • @LineOfThy
      @LineOfThy ปีที่แล้ว

      when did it ever mention that?

    • @dumb214
      @dumb214 ปีที่แล้ว +2

      No, the entire room has to be observed since they forgot to install a roof, so thieves can drop in and land at any location in the gallery from their helicopters.

    • @skell6134
      @skell6134 ปีที่แล้ว

      @@dumb214 Wouldnt be able to do that without breaking their legs tho ? Unless someone conviniently place stuff for them to land on tho

  • @CarlJohnson-cb9xm
    @CarlJohnson-cb9xm 5 ปีที่แล้ว +370

    10:33 Minimum 2 guards are required here

    • @aasyjepale5210
      @aasyjepale5210 5 ปีที่แล้ว +27

      right-most blue and top-most red or green

    • @skylark.kraken
      @skylark.kraken 5 ปีที่แล้ว +62

      @@aasyjepale5210 We don't know for sure if the blue is able to see all of the bottom triangle (there may be a slither missing) as we aren't told exact lengths of the sides of the bottom right corner.
      Top green and the red below is a solution we know can be correct, also they're close enough to chat to each other.

    • @Banzybanz
      @Banzybanz 5 ปีที่แล้ว +4

      Prove it.

    • @CarlJohnson-cb9xm
      @CarlJohnson-cb9xm 5 ปีที่แล้ว +2

      @@skylark.kraken hmmm

    • @jackkilduff4104
      @jackkilduff4104 5 ปีที่แล้ว +2

      No shit sherlock

  • @bwpbwp9613
    @bwpbwp9613 4 ปีที่แล้ว +32

    4:06 can definitely be done with 2 guards...just dont only place them at verticies. The figure can be adjusted slightly to make your point, but as it currently is shown you can put a guard on the bottom line between 2 of the upper point’s angles and the last guard where they can see the other point.

  • @Glue_Eater06
    @Glue_Eater06 ปีที่แล้ว +5

    This being called The Art Gallery problem made me think this was about the hiest in Payday 2

  • @TugiDeg
    @TugiDeg ปีที่แล้ว +10

    I go too far calculating the perfect preplanning of a heist in PAYDAY 2.

  • @cubiccalico5019
    @cubiccalico5019 4 ปีที่แล้ว +53

    my first thought of triangulating a triangle was to use the bisector of one of its angles (splitting it into two, smaller triangles) until you mentioned that it's already a triangle and doesn't need to be split up.
    thank you brain for wanting everything to be complicated.

  • @xeogillis3666
    @xeogillis3666 4 ปีที่แล้ว +8

    4:07: In this case two guard are enough because of simple mathematical solutions. Since it is true you only need one guard for a normal surface you can start looking for them. So instead of seeing this as some kind of rectangle with three triangles, you can extend the legs of the triangles and if the legs overlap you can use that specifik region to place a guard. This guard will be capable of seeing the left triangle as well as the right.

  • @jayxi5021
    @jayxi5021 4 ปีที่แล้ว +14

    4:07 You only need to, the line of the right side of the left triangle and the line of the left side of the middle triangle touch eachother inside of the polygone. Just put 1 guard at the intersection to watch over both the triangles.

    • @maxx-er3fj
      @maxx-er3fj ปีที่แล้ว +1

      Came here to say that, good spot

    • @noodle67
      @noodle67 ปีที่แล้ว +1

      The only issue is that they have to be placed on the corners :/

  • @simonwillover4175
    @simonwillover4175 5 ปีที่แล้ว +20

    Look at triangles that are covered by multiple guards in a color and in different colors. I think you could use patterns with shared triangles to optimize guard placement (by minimizing triangle sharage).

  • @C0nstellati0ns
    @C0nstellati0ns 5 ปีที่แล้ว +89

    4:00 you can observe everything with 2 guards if they weren't in the corners

    • @jamesliu3295
      @jamesliu3295 5 ปีที่แล้ว +11

      Some of the middle triangle would be out of view (draw straight lines from corners)

    • @sugar2000galaxy
      @sugar2000galaxy 5 ปีที่แล้ว +5

      actually no and i have proof
      *i got none but pretty sure im right my brain say so*

    • @Ahmet12345.
      @Ahmet12345. 5 ปีที่แล้ว

      true

    • @ringkichard
      @ringkichard 5 ปีที่แล้ว +6

      This can be done with 2 guards in this case. Proof by example:
      Lets divide the room into a large rectangular area at the bottom of the picture, and the three triangular bumps at the top.
      Imagine three friends, each one standing at the top of a bump and looking down at the far wall. They see most of the gallery, but not all of it, and cannot see each other.
      Just to help with the explanation, imagine that the room is dim and the center friend turns on a flashlight, illuminating the center cone of view.
      The left friend, standing at the top of the left bump, can see part of the flashlight's beam. If the left friend turns on a flashlight, too, there will be a bright patch illuminated by both flashlights. That is the area that those two friends share and can both see.
      The same thing happens on the right. There is an area that the center and right friend share.
      If you put a guard in a shared area, the guard can see both of the friends that share the area.
      If you put one guard on the left and one guard on the right, those guards will be able to see all three friends and also the whole rest of the room.
      QED

    • @connorabraham3474
      @connorabraham3474 5 ปีที่แล้ว +2

      Even if they were in the corners u could still use 2

  • @yukkahiro
    @yukkahiro ปีที่แล้ว +2

    Creating perfect camera/guard system with no blindspots:
    Payday gang with loud approach:

  • @zsivkovicsmate8747
    @zsivkovicsmate8747 4 ปีที่แล้ว +37

    1:16
    "The art gallery problem is both easy, by easy I mean understandable, and also hard, I'll explain what that means later."
    We know what hard means it means hard

  • @earavichandran
    @earavichandran 5 ปีที่แล้ว +56

    I am very jealous about you. You have potential and excellent explaining skills.
    Heartly congratulations. Your videos are awesome.

    • @metametodo
      @metametodo 5 ปีที่แล้ว +3

      Replying just to stress this more. Since the very first time I watched you I felt something different, more clear and objective explanations. Congratulations.

    • @zachstar
      @zachstar  5 ปีที่แล้ว +6

      Thank you!

  • @vinfamous9226
    @vinfamous9226 5 ปีที่แล้ว +14

    This has quickly become one of my favorite channels! Continue what you are doing, its awesome content!

  • @EelcoWind
    @EelcoWind 5 ปีที่แล้ว +40

    Shows shape: How many guards?
    Me: Two!
    Explains a lot of theory: We can prove at least 10/3 rounded down, thus 3.
    Me: ...Two!
    Informs: There's no algorithm that can prove the exact amount yet.
    Me: TWO! ... Two, 2... TWO! Z! [in Roman] II... TWO, dangit!
    Me disappointed...

    • @jacobjones7015
      @jacobjones7015 4 ปีที่แล้ว +3

      There is no efficient algorithm. There are algorithms that can solve it, but they start to take a very long time as the shapes get complex. Complex meaning you have no chance of solving them just by looking at them.

    • @jacobjones7015
      @jacobjones7015 4 ปีที่แล้ว +3

      @@Satheo05 Probably (long time since I watched the video), but that isn't the point. As the shapes become more complicated, they quickly are impossibly difficult to solve.
      Another example of a problem that seems simple but isn't is factoring primes. For example, can you figure out what two prime numbers multiplied together give you 10? It's pretty simple - 2 and 5. But we don't have an efficient algorithm to solve those problems. We can do it easily for small numbers, but not for large numbers. If you had a way to efficiently factor large numbers, you could easily make millions of dollars by showing the NSA or a large bank how.

  • @ZekuChanU
    @ZekuChanU 4 ปีที่แล้ว +5

    Guard: “Why am I spinning in circles in the corner of the room???”
    Me: “Don’t worry about it, you are still getting paid”

  • @willwu4230
    @willwu4230 4 ปีที่แล้ว +2

    5:50 This is handwavy, and wrong. Think of a polygon starting with a square of side length 1 and cut out a smaller square of length >0.5 from its top right corner. Let the bottom left vertex of the 1x1 square be A, its adjacent vertices be B & C, and let the bottom left vertex of the smaller cut-out square be A'. If you start with vertex A, which is 90 degree (less than 180 degree), you cannot directly connect B and C. When you "shift" BC and hit A', by connecting A and A', you don't get a 5-gon and triangle, but two 4-gons. This way, you'd need strong induction.

  • @samnotloading6101
    @samnotloading6101 5 ปีที่แล้ว +42

    Payday 2 taught me everything i need to know

  • @prnv5
    @prnv5 ปีที่แล้ว

    this is so cool! i love your content

  • @spanishislandsquattingduck3175
    @spanishislandsquattingduck3175 5 ปีที่แล้ว +4

    What i'm liking about these kinds of videos, is that more than just explaining the problem and going through how to solve it, they're also explaining how to use and make proofs and why they're so important.

  • @SeriousApache
    @SeriousApache 5 ปีที่แล้ว +45

    Guys, the thermal dr... Oops, wrong heist.

    • @piotr88e
      @piotr88e 5 ปีที่แล้ว +5

      bain never shuts up

    • @marcusjakobsson4321
      @marcusjakobsson4321 4 ปีที่แล้ว +1

      ah, i see you're a man of culture as well

    • @Krushking99
      @Krushking99 4 ปีที่แล้ว

      Donacdum

    • @destarker1340
      @destarker1340 4 ปีที่แล้ว

      Did anyone bring a medic bag?

  • @Scaro.s
    @Scaro.s 5 ปีที่แล้ว +1

    Always look forward to a new major prep video. Keep the good work up

  • @aashsyed1277
    @aashsyed1277 3 ปีที่แล้ว

    Even once I've seen your videos, these video are so relaxing that i watch them again.

  • @connorhorman
    @connorhorman 4 ปีที่แล้ว +1

    Side note, you'd actually need to use strong induction to prove any polygon can be triangulated.
    In regular induction, you prove the theorem for n+1 given the theorem for n, n> some a for the inductive step.
    In strong induction, you prove for n+1, given a,a+1,a+2,..., for n>a, for the inductive step.
    For example, the shape you showed for n=5 needs n=3 and n=4. The proof for n=4 was not sufficient.

  • @soupy5890
    @soupy5890 3 หลายเดือนก่อน

    Craziest thing happened for me; I was curious about writing up a program, inspired by playing lethal company, for pathfinding on levels/maps that were generated by linear walls, and also I was fixated on the idea of representing them in terms of seperate "cycles" to allow, and was trying to figure out how to even find A single path from any 2 points.
    I was reminded of this video somehow, and the triangulization argument after a break and some thinking literally solved most of the problem by translating it to a very-constrained travelling-salesman problem where the vertexs were the triangular regions and the edge relation was side-adjacency.
    So even if you didn't invent this stuff (I'm aware invent may or may not be the "correct" word depending on some philosophy stuff, but I don't care right now its late), you popularized it to reach my eyes and aid me in a different problem, so thank you zach.

  • @erniesummerfield6472
    @erniesummerfield6472 ปีที่แล้ว +2

    You know I often forget this guy used to do educational videos

  • @marc-andreservant201
    @marc-andreservant201 4 ปีที่แล้ว +4

    Slight sidenote: finding an efficient, polynomial-time solution to an NP-hard problem wouldn't just be a better algorithm. It would be a paradigm shift, a world-changing, million-dollar prize winning, revolutionary breakthrough that would change the future of computing, challenge our perception of proofs as a concept, earn you a tenured position at the prestigious university of your choice, and grant you everlasting fame.

  • @Mr5nan
    @Mr5nan 5 ปีที่แล้ว +28

    I thought you were gonna solve the NP hard problem, but I'm not disappointed 👍🏻

  • @RoderickEtheria
    @RoderickEtheria 5 ปีที่แล้ว +4

    4:09 2 guards would be enough there, though, as long as you removed the argument that they had to be situated at the corners, so it's a bad example. If you bent any of those middle points to not be fully visible from the outside, you would have a point though. 4:36, again only 2 guards needed here. You are only connecting the triangles of points 2 distance away, when the lines for the triangles could be placed between any 2 vertices that don't force you to draw outside the shape for them to be reached.
    This said, the easiest way to determine the visibility of an area is to extend all lines extending from vertices to the edge of the shape. All points found within the lines extending from a vertex can see that vertex. If there is a vertex inside these lines, extend a line from the original vertex using along which this interfering vertex would fall to the edge of the shape. This will create a number of shapes that can see certain amount of vertices. Find the point or a point that can see the greatest amount of vertices, and shade every point it can see. Then look at the remaining area and look for further overlap of vision. This does a remarkably better job than drawing those triangles.

    • @RoderickEtheria
      @RoderickEtheria 5 ปีที่แล้ว

      @Stratowind I extended the edges on both the right triangular extensions and you are incorrect. They cross before the edge of the figure.

    • @abl9643
      @abl9643 5 ปีที่แล้ว

      4:09 ok but that’s a condition. There would only be one guard needed if he could see through walls but that’s not the point.
      4:36 is only a demonstration of the rule he expressed, not a minimal amount of guards

    • @RoderickEtheria
      @RoderickEtheria 5 ปีที่แล้ว

      @@abl9643 The original question asked how many guards would be needed to see you regardless of where you were. Originally, this didn't require the guards to be standing in corners. Later on, he adds the condition that the guards would be standing in the corners. Also, we are trying to narrow the upper limit which, given the condition was not originally there but later added, should not require the guards to have to be standing in the corner.

  • @dfferentpoint
    @dfferentpoint 5 ปีที่แล้ว

    If there is less then 90 degrees a guard must be place to see it let's call 90 degrees h h < n/3 =if h n go with h

  • @mohamededbey
    @mohamededbey 5 ปีที่แล้ว +3

    Well done man you really do have a talent in explaining not only engineering concepts, but STEM concepts in general.
    Speaking of P versus NP problem I really do wish you make an entire series about it not just one video.
    Thanks a lot

  • @Katharinka007
    @Katharinka007 5 ปีที่แล้ว +6

    You + Explaining Maths = Pure Happiness ❤️

  • @maxxernB
    @maxxernB ปีที่แล้ว

    4:07 you can watch whole area with just two guards, take away the middle and right guard and place one guard at the bottom in which he has angle for both middle and right spike areas of the room

  • @Dusk_Holloway
    @Dusk_Holloway 5 ปีที่แล้ว +17

    At least 40 and they all get EOD suits an miniguns

  • @forcequit2928
    @forcequit2928 4 ปีที่แล้ว +1

    I don't understand the logical jump at 6:08, imagine instead of just one inner vertex, there is like a "W" shape of several verticies that are "within" the original attempted triangulation. If you "slide the segment closer" and reach any particular vertex, say the middle of the "W", you are not guaranteed that that vertex will be part of a triangle with the original point.

    • @willwu4230
      @willwu4230 4 ปีที่แล้ว

      Exactly. The theorem is correct but this proof is wrong.

  • @derre98
    @derre98 5 ปีที่แล้ว +1

    At 4:07 two guards would actually be enough instead of three like the video says. Like this: if instead of the two rightmost guards only one is placed approx. 3/4 of the way from the left near the bottom side. I presume based on 1:55 that the guards don't have to be placed at the main vertices. One would have to make the rectangular region of this gallery a bit shorter in vertical direction for 3 to be required. Not that this changes the message of the video in any way, but it just happens to be the geometry in that particular picture.

    • @zachstar
      @zachstar  5 ปีที่แล้ว +1

      You're right, if we assume guards must be placed on vertices then three are required. I should've extended the triangular regions cause then three guards really would've been required no matter where they could be placed.

  • @TheRedCap
    @TheRedCap 4 ปีที่แล้ว +1

    1AM TH-cam is a magical place

  • @TheAntiBarrel
    @TheAntiBarrel ปีที่แล้ว +1

    after 10 minutes I have realized this is NOT a Payday video

  • @undeadman7676
    @undeadman7676 5 ปีที่แล้ว +9

    Everybody: awesome video!
    Me: big ass dominoes

  • @CaiusNotPlaying
    @CaiusNotPlaying ปีที่แล้ว +1

    Going from watching your second channel to watching this is a sharp transition.

  • @TibbelsNBits
    @TibbelsNBits 3 ปีที่แล้ว

    Already liked this channel, but the fact that you love ocarina of time just made me a fan forever

  • @aarongold7220
    @aarongold7220 4 ปีที่แล้ว +1

    0:36 . i mean you can just use one guard. If we assume the boundries are impassable like the game, the guard would just have to stand at either the entrance or exit.

  • @machomancake
    @machomancake ปีที่แล้ว

    I really enjoyed this video. Thanks a lot. You explained it in a very enjoyable manner

  • @catboy6451
    @catboy6451 ปีที่แล้ว +1

    No matter how many guards you add, the Payday gang will find a way

  • @wr44
    @wr44 4 ปีที่แล้ว

    At 4:09, why are 3 guards needed?
    Keep the guy on the top left where he is, but instead of having the remaining 2 guards have one guard on the bottom line, directly below the mid-point of the top right horizontal line.
    That new guard would be able to see into both the middle and right triangular peaks (as well as the entire rectangular body) and that top left guard could see the remaining top left triangle.

  • @charger8624
    @charger8624 ปีที่แล้ว +1

    I can’t look at this without thinking of payday. Thanks youtube recommendations!

  • @dAni-ik1hv
    @dAni-ik1hv ปีที่แล้ว

    i just realized that Zach looks super happy and excited during his vids but he also looks like he hasn't slept in 3 days

  • @joschistep3442
    @joschistep3442 2 ปีที่แล้ว +2

    🤔 The guards have 360° vision, but in which dimension? What if their vision is limited to a plane parallel to the ground?
    Assuming that the room itself has dimension 3, this would mean that we need indefinitely many guards to guard any room.
    Or is the room as well two-dimensional?
    Probably, because the proof only was about two-dimensional shapes. Do we have proof that this also applies to rooms with 3 or more dimensions?
    What about 42?
    If we have a room in dimension 42, how many guards do we need to watch it? As many as the quantity of roads a man must walk down?
    The answer very very likely depends on the dimension of the guards vision.
    Yes.
    I think so too.

  • @s3ven_six322
    @s3ven_six322 3 ปีที่แล้ว

    If the rules were different (guards weren't restricted to vertices), 4:08, 4:20, would each only need 2 guards as well...
    Actually, because of the angles, 2 is sufficient in one case even assuming all the rules are kept.
    In 4:20, place guard 1 at the topmost vertex, and place guard 2 one vertex down from guard 1.
    However, 4:08 doesn't work with the rules. If you could place 2 guards anywhere however, it would work.
    Place guard 1 on the bottom line at the point where the right triangle hypotenuse is extended to, and place guard 2 anywhere to the left where the entire far left triangle can be seen

  • @CheapoPremio
    @CheapoPremio ปีที่แล้ว

    I know a rule is to only place guards at corners, but for the gallery at 4:00 two guards would suffice if you remove the two on the left and replace it with one at the bottom where the extended lines of the inner walls of the two triangle extrusions meet.

  • @Known_as_The_Ghost
    @Known_as_The_Ghost ปีที่แล้ว

    11:11 Two guards here minimum, too.
    One in the corner of the top area, the bird head shaped bit.
    And another JUST below that, in the main room.

  • @Solrex_the_Sun_King
    @Solrex_the_Sun_King ปีที่แล้ว +2

    Here's the solution to the problem given an example from ocarina of time: Go to the place at night and a guard will stop you in your tracks. Only 1 guard is needed. Now why they only have the night shift, who knows.

  • @nibblrrr7124
    @nibblrrr7124 4 ปีที่แล้ว

    11:54 That determining the minimum number of guards is *NP-hard* means that if in the future someone were to discover an efficient way to solve it, then that same algorithm could also efficiently solve every problem in the huge class NP (problems where you can quickly check whether a given answer is correct).
    It would have huge implications (P=NP), and go against most experts' intuitions on what it means for a problem to be "hard".

  • @argandzero0
    @argandzero0 3 ปีที่แล้ว

    Too underrated. Nice man

  • @k3melow
    @k3melow ปีที่แล้ว +1

    The problem is having a museum in first place

  • @NickDolgy
    @NickDolgy 5 ปีที่แล้ว +68

    First! Yeah! Patreon rules!

    • @zachstar
      @zachstar  5 ปีที่แล้ว +8

      Thanks Nick!

  • @ampstamp
    @ampstamp ปีที่แล้ว +2

    Tell me why I thought this was gonna be about art gallery from payday 2

  • @Elnotronic
    @Elnotronic ปีที่แล้ว +2

    Gta taught me that you need more guards

  • @STREZZD
    @STREZZD 4 ปีที่แล้ว

    4:03 No, one guard could be standing right at the bottom wall to observe both triangles, because their angle meet infront of the wall. One other would need to observe the left triangle.

  • @mightyd33r
    @mightyd33r 5 ปีที่แล้ว

    11:31 The number of guards can be reduced from 4 to 3 if we remove the two top-left guards and place a guard on the top corner that was marked as green

    • @tommygerapetritis4860
      @tommygerapetritis4860 5 ปีที่แล้ว

      dor barlev you can do it in 2 if you place one in the top most red corner and the other one directly below that corner (the corner where the red, blue, and green polygons meet). I mean, counting corners, red touches every other color.

    • @mightyd33r
      @mightyd33r 5 ปีที่แล้ว

      @@tommygerapetritis4860 This solution won't work because the guard at the blue corner below the top-most red corner cannot see the red corner at the very bottom, though it could be with 2 guards if you place them on the green-red line at the very top

  • @armitosmt5753
    @armitosmt5753 5 ปีที่แล้ว

    So addicted to your videos ! Great job keep it up 👍

  • @kevinfeng2876
    @kevinfeng2876 3 ปีที่แล้ว +2

    The reminds me of the Yiga Clan Hideout in BoTW except the guards move in shapes and can be lured away with bannanas.

  • @Willpower360
    @Willpower360 5 ปีที่แล้ว +2

    Payday guards would need this

    • @spartanwar1185
      @spartanwar1185 5 ปีที่แล้ว +1

      Well, that and pray that their mission is silent only
      Crooks won't stop to restart if they could just blow through the rest of it

  • @therealkrishanlal
    @therealkrishanlal ปีที่แล้ว +2

    Payday 2 has solved the Art Gallery problem

  • @Kamel419
    @Kamel419 4 ปีที่แล้ว

    breaking 3d objects into triangles is how the entire computer 3d rendering field began. today it continues to be that way, just really tiny triangles

  • @grimmsoul3096
    @grimmsoul3096 ปีที่แล้ว

    0:42 it doesn't have to work like that, you could just go the simple route of making sure a guard is has constant eyes on every way in and every way out, thus making eyes in the middle unessesary
    1:23 you mean "simple" as simple does not equal easy

  • @aaronbredon2948
    @aaronbredon2948 ปีที่แล้ว

    For n=3x, n=3x+1 and n=3x+2, it is possible to create a sawtooth pattern that requires x guards
    Since n/3 rounded down equals x, for every number of sides in a polygon, there is at least 1 such polygon that requires n/3 rounded down guards.

  • @bhavikkumargevariya1386
    @bhavikkumargevariya1386 4 ปีที่แล้ว

    4:08 may be only 2 guards can....
    where 1 guard at 2 neighbors triangles's slope of meet.another 1 guard for remaining triangle.
    or we can say 2 bulb for light whole gallery.

  • @KillerKatz12
    @KillerKatz12 11 หลายเดือนก่อน

    No way I've seen engineer/STEM Zach before Zach star himself? And I never noticed?!

  • @bishopnickle2207
    @bishopnickle2207 4 ปีที่แล้ว +2

    3:41 I'm pretty sure if you remove the middle guard that still works so 2

    • @danielyuan9862
      @danielyuan9862 3 ปีที่แล้ว

      Watch literally just 10 seconds from your timestamp.

  • @lacamendry1731
    @lacamendry1731 ปีที่แล้ว +4

    3:00 Upper Limit is very easy, just need 2 guards. One at the corner of the L shape on the right, then the other guard is at the corner of the big L shape on the left. So both guards can see end to end and overlapping. I hope I explain it right.

  • @ibemper1850
    @ibemper1850 4 ปีที่แล้ว

    4:04 2 gaurds required, he was wrong, place one at the center of the two right tringles at the x axis and at the bottom in the y axis
    now place one at the bottom left most corner, this covers 3 triangles.

  • @krishnanshupandey7590
    @krishnanshupandey7590 5 ปีที่แล้ว

    man keep doing the good work v good content

  • @empurress77
    @empurress77 4 ปีที่แล้ว

    For every example shown the most guards needed to observe 100% of the area is 2.
    You're overlooking overlap of zones of observation.
    In the example of the last illustration place a guard at the point at the north most R plus the point at the east most B all areas can be seen when their overlapping areas are totaled.
    The combination of the north most G plus the corner designated G just south of that would also combine to observe 100% of the area.
    Even the two R placements previously alluded to, together, would also work.
    I'll let you figure out what guard post would work if you have a guard at the furthest north west B point.
    (Hint its an R that i previously mentioned.)

  • @xcy7
    @xcy7 3 ปีที่แล้ว +1

    Regarding the induction proof of the polygons; wouldn't it be easier to start with a triangle and connect a 4th vertex to two vertices of the already existing triangle? This easily proves any shape can be triangulated. It also proves the coloring as the 2 vertices you connect the new vertex to can only use 2 different colors, so you the new vertex will just be the 3rd color. I also feel like this resonates better with the classic m+1 idea of induction. I suppose that is kind of what you did, but backwards.

  • @torugho
    @torugho 4 ปีที่แล้ว

    Thanks, Gaston!

  • @doctordafrickasha
    @doctordafrickasha ปีที่แล้ว +1

    I thought this was about the Payday 2 heist from the layout

  • @ElodieHiras
    @ElodieHiras 5 ปีที่แล้ว +3

    And if I had the stipulation that each guard must be in sight of at least 2 other guards at all times to make it harder to just shoot the guards with a silenced pistol?

    • @arnerademacker8548
      @arnerademacker8548 5 ปีที่แล้ว

      You can hear change dropping in a museum, I'm pretty sure a silenced pistol is louder than that.

  • @the-person
    @the-person ปีที่แล้ว

    currently at 3:33 and i'm pretty sure it's 2 guards, one on the very bottom right corner of the shape and the other on the top left corner of the sticky-outy-bit on the right

  • @rcengineer
    @rcengineer 3 ปีที่แล้ว +1

    Of course none of this matters because everyone who's ever played a stealth game knows that these places will have conveniently placed chandeliers and ceiling-level ducts everywhere, which the guards will never check

  • @proxy1035
    @proxy1035 4 ปีที่แล้ว

    i would've done a similar aproch, but more like an algorithm, plus it needs you to be able to tell if everything is covered.
    1. split the shape into non-overlapping triangles
    2. place a guard in the center of every triangle (i mean why only limit them to corners?)
    3. the whole shape is now guaranteed to be covered.
    4. go through each guard and remove them, if the shape is still completely covered let the guard remian removed, if not, place him back where he was.
    5. do this for every guard until none can be removed anymore
    6. tada!
    no idea if this would actually work, and i'm too lazy to program it.

  • @OrenLikes
    @OrenLikes 3 ปีที่แล้ว +1

    Nice, but was looking for guard placement ANYWHERE - not limited to vertices or edges.
    Thank you!

  • @permeus2nd
    @permeus2nd ปีที่แล้ว

    2:52 this one just like the Zelda one only needs 3 guards there is a really slim chance you could get away with only 2 depending on the placement of two of thewalls.

  • @Happyduderawr
    @Happyduderawr 2 ปีที่แล้ว

    You can use smoothed analysis to come up with a fixed parameter tractable algorithm where the fixed parameter is the number of reflex vertices.

  • @mayabladewing
    @mayabladewing ปีที่แล้ว

    Love this video! The math was really interesting and I learned a lot.
    But, I feel like one thing that kinda frustrated me was the lack of sense. The ‘rule’ of only being able to place guards in corners held back the potential of placement a lot, and a fair few of the problems presented that required 3-4 guards only required 2 if a guard had been placed in a non-corner to observe more. That, plus the fact that the actual distance of how far you could observe a would-be intruder doesn’t make sense. Museum hallways and rooms are usually of a size that allow you to see a human figure at the end of it unless it would be a more absurd size, which most of the examples didn’t have.
    Still an absolutely amazing math video but if it were to be applied in an actual scenario or be attempted to be solved with just common sense it would kinda fall off.

  • @antonfeirer
    @antonfeirer 5 ปีที่แล้ว +3

    NP-hard problem, pff...
    Let's take this on!
    Now I have something to do on bored afternoons ;p

  • @kiranaun9593
    @kiranaun9593 4 ปีที่แล้ว +1

    Man you missed the chance to triangulate a triangle into the triforce

  • @damonsteinhauser8104
    @damonsteinhauser8104 5 ปีที่แล้ว

    great video, pretty much all of the concepts you explained i learned this year at Ohio State University. i’m an engineering major