Тёмный

Can you always pair an equal number of red and blue points with no intersection? 

Zach Star
Подписаться 1,3 млн
Просмотров 103 тыс.
50% 1

Next video (on Odysee): odysee.com/@ZachStar:0/max-di...
My Odysee Channel: odysee.com/@ZachStar:0
STEMerch Store: stemerch.com/
►Follow me
Odysee: odysee.com/@ZachStar:0
Instagram: / zachstar
Twitter: / imzachstar
Support the Channel: / zachstar
PayPal(one time donation): www.paypal.me/ZachStarYT
Join this channel to get access to perks:
/ @zachstar
2D Graphing Software: www.desmos.com/calculator
Animations: Arkam Khan (For contact info go to www.arqum333.com/)
Check out my Spanish channel here: / zach star en español
►My Setup:
Camera: amzn.to/2RivYu5
Mic: amzn.to/35bKiri
Tripod: amzn.to/2RgMTNL
►Check out my Amazon Store: www.amazon.com/shop/zachstar

Опубликовано:

 

20 апр 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 288   
@DukesAPG
@DukesAPG 2 года назад
One of my friends in high school did his senior computer tech lab on programming a solution to this problem for any randomly generated set of dots. Because we were in high school, we referred to this as the Ghostbuster problem. Think of the red dots as ghosts and the blue dots as ghostbusters (or vice versa), remember you can't cross the streams, and see if you can eliminate all the ghosts in one shot per ghostbuster.
@agrajyadav2951
@agrajyadav2951 2 года назад
tehc
@johnchessant3012
@johnchessant3012 2 года назад
101 people participate in a duel as follows. They will be placed on a flat, open area and each person will simultaneously shoot the person closest to them. (It will be ensured that for each person, the distance to the 100 others will be all different so there will be no ambiguity about who is closest.) Prove that for any configuration, at least one person will survive the duel.
@axbs4863
@axbs4863 2 года назад
Ohoho I don’t like this one This one hurts my head
@Qermaq
@Qermaq 2 года назад
Hmm. One person will always be further from person P than any other person. With 101 people there are 5050 possible connections. (Triangle number) One distance must be longer than any other, and of the two people at either end of that distance, one must have a closer target than the other. Eliminate that case and work down, there will be one person who is farther away from each participant than some other participant.
@NoNameAtAll2
@NoNameAtAll2 2 года назад
@@Qermaq if there are 4 people in 2 pairs that shoot each other, no people will be left
@Qermaq
@Qermaq 2 года назад
@@NoNameAtAll2 Well fuck em.
@samuelmeyer1884
@samuelmeyer1884 2 года назад
Nice problem! Every person shoots exactly one other person. We want to show the existance of a person who is shot by at least two different persons. If this is true, there must be a person who survives the duel because the number of shots equals the number of persons. So lets assume the contrary. We need to look at the shortest distance of two persons. Those two must shoot each other. They cant be shot by any other person, otherwise our assumption has to be wrong. Now we can remove those two persons and continue with 99 people, then 97, then 95 and so on. At the end there has to be one single person who has nothing to shoot, contradiction.
@wenzhengli6716
@wenzhengli6716 2 года назад
In layman: If there's an intersection, just swap connections to get rid it. So keep doing that until there's none left. There must be an end because total length gets shorter each time.
@zheqingzhang6136
@zheqingzhang6136 2 года назад
exactly
@HT-rq5pi
@HT-rq5pi 2 года назад
I thought about this idea but didn't notice the fact that the total length is going to reduce after each swap...
@cowabunka
@cowabunka 2 года назад
not quite. you also need to establish that there is a finite set of arrangements given a finite set of points, as well as a "best" solution with least amount of length the key take away in this question is as said in 5:15
@hurktang
@hurktang 2 года назад
@@cowabunka No i disagree. If it's crossed you can uncross it. and if it's uncrossed then, there is no cross. Can there be no cross ? Yes. The proof is complete. There is no need to talk about length or show that it's finite.
@ethandavis7310
@ethandavis7310 2 года назад
@@hurktang The proof in the video, although not mentioned is actually a proof of an algorithm for finding a solution by way of an entropy function. One of the requirements of such a proof is that either you are guaranteed to end up in a minimized state after finite iterations, or that the entropy function has a minimum bound and decreases by at least some minimum amount at each step. Some may find it trivial in this case, but it is still an important part.
@MegaKotai
@MegaKotai 2 года назад
At 3:32 we need to keep in mind, that our points are colinear. Otherwise the triangle inequality would have a greater or equal instead of strict greater and therfore the length doesn't have to decrease if we swap the connections. (imagine 4 points all on one line, first 2 red and then 2 blue. No matter how we connect them the total length is the same)
@NachitenRemix
@NachitenRemix 8 месяцев назад
There is a restriction in the problem where you cant have 3 or more colinear points. Its said at the beginning.
@kangmoabel
@kangmoabel 2 года назад
Zach you're fantastic man , i have watched almost all of your videos and now im gonna dominate the world...
@johanngambolputty5351
@johanngambolputty5351 2 года назад
There a dissertation by a guy called Rieger talking about the generalised (cyclic) monotonicity of optimal transport flows which is basically what you are minimising here. He shows that the optimum is always a monotonic flow for ground costs/distances of a certain kind (those which for any four points, the sum of cross distances is higher than the direct distances). Basically, cyclic monotonicity amounts to irrotationality/no twisting/no crossing, so since you know the optimal OT solution (for the right ground cost) is going to get you the right kind of matching, you know you can just look for a minimum OT cost solution.
@cmilkau
@cmilkau 2 года назад
"We will be ordering the configurations by total length of the line segments" - this was the point when I saw the solution.
@randompast
@randompast 2 года назад
Really elegant proof, thanks for sharing! Definitely do more of this!
@JoeCMath
@JoeCMath 2 года назад
Super fun problem! I sort of thought initially about switching any intersection pairing, but I definitely lacked any immediate robust logic for the proof of the concept! Great editing as always Zach, keep on uploading!
@christiananderson3192
@christiananderson3192 2 года назад
The fact that this is the same guy that has Zach Star himself is insane to me. Honestly just haven't met very many guys who are both really smart and really funny.
@WillToWinvlog
@WillToWinvlog 2 года назад
Most good comedians are!
@x0cx102
@x0cx102 2 года назад
@@WillToWinvlog perhaps smart in the technical way but yes a lot of good comedians very witty and clever
@tobiasweber2517
@tobiasweber2517 2 года назад
i mean smart is a very broad term but i can give you some suggestions for creators i find to be both smart and funny: Blue Jay, CGP Gray, code bullet, colin furze, Dani, FUNKe, I did a thing,DANI, Noodle, Brew, Razbuten, sam o'nella academy (although his channel is atleast on pause for a few years or dead since hes becoming alaywer and doesnt have time), stuff made here, game theory (im mostly refering to a segment called the science by austin), Backyard scientist, upisnotjump. and yea comedians like ricky gervais aswell. but as I said smart is such a broad term that youll find anything from people solving engeneering problems to informational videos or game reviews or even game/ai programming on that list
@Ten_Thousand_Locusts
@Ten_Thousand_Locusts 2 года назад
What does this comment mean? Honest question.
@mtndew314
@mtndew314 2 года назад
@@Ten_Thousand_Locusts This creator also makes funny skits on a different channel by the name of "Zach Star Himself" On his other channel a few of the skits are "When you watch porn just for the plot" So its wild to see an actual science video from someone like that. Hope that answers your question.
@Obikin89
@Obikin89 2 года назад
Easy : align 4 dots, 2 red then 2 blue, and that's it : they will intersect. PS : didn't watch before I answered but I guess i broke your logic... And they won't just intersect at a single point but on the whole line between the two closest points... And you can add as many points as you want on the line as long as the blue ones are on one side and the red ones on the other... And all of the junctions will intersect on a portion of the line. "In Euclidean geometry, the intersection of a line and a line can be the empty set, a point, or a line." Guess I win !
@oliviapg
@oliviapg 2 года назад
The problem specifically says that you can't have any 3 points be colinear
@Obikin89
@Obikin89 2 года назад
@@oliviapg That's not in the title of the video though, and that means you have to check for colinearity if you input points randomly, which is a bit annoying. Sure, I wasn't paying enough attention at the video, but you can't "always" pair red and blue dots such that no line segment intersect.
@Reddles37
@Reddles37 2 года назад
For the end puzzle, I solved it by thinking about adding points one at a time. Each time we add a point also draw the unit circle around it, so the intersection of the circles shows the region where points can go. Also, only consider points that are at the max distance from one of the existing points, so we can only add points on the edge of the region. The valid region will be like an inflated polygon, with vertices connected by edges which are arcs. The first point gives us no pairs, and the valid region is a circle with one edge and zero vertices. The second point pairs with the first, and the valid region now has two edges and two vertices. These vertices do not contain points from our set, so I will call them unoccupied. From here three things can happen depending on where we place new points: - Points placed on an edge between two existing points add a single pair with the point that generated that edge. The valid region is not affected. - Points placed on an edge between an existing point and an unoccupied vertex add a single pair with the point that generated that edge, call it P. The circle from the new point will shrink the valid region, cutting off the opposite unoccupied vertex and replacing it with an edge and two new vertices. One of the new vertices will be occupied by point P while the other will be unoccupied, so the number of unoccupied vertices is unchanged. - Points placed on an unoccupied vertex add two pairs, since they are on two different circles. The opposite unoccupied vertex will once again be cut off, but now it will be replaced with an edge between the two points that generated this vertex. At this point there are no more unoccupied vertices, so any further points can only be added to edges. The total number of pairs is one for each point placed on an edge, plus zero for the initial point and possibly two for placing a point at a vertex but that can only happen once. So the number of pairs is either equal to or one less than the number of points. It is also possible to have multiple disconnected groups of max-distance points, for example a square with diagonals of length 1. For these we can just use my argument above for each connected group separately and add the results. Finally, we can have extra points in the middle which aren't at the max distance from any other points, but that just adds more points without adding more pairs so the inequality still holds.
@siegfriedstow
@siegfriedstow 2 года назад
In discrete differential geometry there's something called the Laplace-beltrami operator (i think that's the one - i need to check) used in geometry optimization, that basically says when you have two lines that cross you can always redraw those into a more optimum configuration. That would be a theorem that covers this and applies to curved surfaces and higher dimensions.
@andreujuanc
@andreujuanc 2 года назад
This is mind-blasting
@FarSeenNomic
@FarSeenNomic 2 года назад
I was asking myself this exact problem a few days ago, and that answer is so straightforward.
@md.adnannabib2066
@md.adnannabib2066 2 года назад
Zack man i was waiting for your videos for months
@hgu123454321
@hgu123454321 2 года назад
I'd be interested in seeing more videos about these kind of approximations of NP-hard problems. There are plenty of videos about NP-hard problems and why they are hard, but I haven't seen so many about the 'pretty good' solutions that get you within a certain distance of the perfect solution. For example, in this case, we know if you keep applying the 'no crossings' rule, you will end up in the upper part of the list, but how close to P1 are you guaranteed to get?
@ethandavis7310
@ethandavis7310 2 года назад
With heuristics, you're not guaranteed anything other than a solution that satisfies the heuristic (i.e. no crossed lines). Depending on the input you can have an arbitrarily large number of configurations with no crosses, and you know nothing about which configuration this algorithm will produce. Also, even with smarter versions of the algorithm (maybe construct initial configuration greedily instead of randomly) there is always an input you can construct to make it give the worst output. If we define some standard of how inputs are generated it could be interesting to see how solutions perform on average
@alexeyklimenko4387
@alexeyklimenko4387 2 года назад
Another solution. Take a point M inside a convex hull and not lying on any line between two of our points. Draw a line through M and consider one of the half-planes and the difference #red-#blue in this half-plane. As we rotate the line through M, the difference changes by one every time the line passes one of the red/blue point. When the line has been turned by 180 degrees, we arrive at the difference that is minus the initial one. Hence at some moment the difference is zero: on each side of the line the number of reds equals the number of blues. Then if we solve the problem for two (smaller) sets of points on each side of the line, the union of these solutions is a solution for the initial set of points.
@justsomegoosewithinterneta4199
@justsomegoosewithinterneta4199 2 года назад
Also I'm glad you're on Odysee. I just made an account for that so that works out! I'm gonna subscribe to you there.
@liltrashpanda174
@liltrashpanda174 2 года назад
Was suprised that this is the funny youtube skit guy. Was EVEN MORE suprised when I noticed that I've already been subscribed to this channel for a long time without knowing that this is the funny youtube skit guy. Thanks Zach for making both educational as well as entertaining content of the highest quality for all these years. ^^
@sleekweasel
@sleekweasel 2 года назад
Interesting problem. It would have been good to briefly discuss how we know that although changing the diagonals for edges might cause two segments to become crossed, it's not possible for that to happen indefinitely.
@matthieubrilman9407
@matthieubrilman9407 2 года назад
Changing diagonals for edges may create new intersections, but that's not the problem. What we just need to know is that : for any configuration with an intersection, there il another configuration (with more or less intersections, we don't care) where the sum of the lengths of all segments is lower. Hence, the configuration with the lesser sum cannot have an intersection. Hence, there is at least one (possibly several) configuration with no intersection.
@massimocole9689
@massimocole9689 2 года назад
@@matthieubrilman9407 Hmm, so your saying that because the length is always decreasing, there is no way you could return to a prior state and thus wind up in an endless loop. A situation where uncrossing pair A crosses pair B, and uncrossing pair B recrosses pair A could not exist because returning to where you started means the total length hasn't decreased. Neat, I get it now.
@fangjiunnewe3634
@fangjiunnewe3634 2 года назад
I immediately went into the fact that you can always bisect the plane into two parts with the same number of points since no 3 points are collinear. Judiciously choosing the bisection, we can always get either maximally one coloured on one side or maximally evenly split between both sides. If we get a pair of sections where each side has only one colour, we can pairwise link up each point from these two sections and we're done. Otherwise, we then invoke recursion and bisect each section into subsections and repeat. Eventually we will get to the subsections of only one point on each side where each side is a different colour, and therefore you can pair them up without overlapping the line with any other line.
@lunatickingdom8721
@lunatickingdom8721 2 года назад
From your description it isn't clear that you can always choose to have a bisection such that there is an even split of the colours of points on both sides
@tjohnson314
@tjohnson314 2 года назад
​@@lunatickingdom8721 It takes a bit of extra work to explain how to "judiciously choose the bisection", but here's one way. First, take the convex hull of all of the points. Then choose a single point within the convex hull that does not lie on any of the possible line segments. Lastly, choose a random line through that center. If the number of red and blue points match on each side of the line, then you're done. Otherwise, let's say side A has more blue than red points. Rotate the line about our center point, so that points move from one side to the other as the line crosses over them. After we've rotated through 180 degrees, we've now reversed the two sides completely, so side A has more red than blue points. Since our center does not lie on any of the line segments, points must have moved from one side to the other one at a time. So at some point, the number of red and blue points on side A matched. (This resembles the intermediate value theorem, though in this case of course the counts are all integers.) The condition about choosing a point from the interior of the convex hull guarantees that there will always be points on both sides of the line. That's necessary to ensure our solution doesn't have all the red and blue points on the same side of the line, which wouldn't help us.
@evannibbe9375
@evannibbe9375 2 года назад
You could also use the triangle side inequality to determine, given that the longest side of the triangle is the intersection line (when triangulating using the longest pairing line).
@alexgunning6910
@alexgunning6910 2 года назад
Solution to the problem at the end [some details skimmed over]? -Consider the counterexample with the minimal number of points. -We prove that any 2 maximum distance segments must intersect (possibly including an endpoint): - If all endpoints are on the convex hull, we use the fact that the sum of the diagonals of a quadrilateral must add to more than the sums of 2 opposite sides, so one of the diagonals must be greater than the max distance. -On the other hand if say our segments AB and CD say are such that A is inside the triangle BCD, let E be the foot of the perpendicular from B to CD and at least one of C and D (say C) has BA. -For a counterexample to exist, some point A must be the endpoint of at least 3 segments AB, AC, AD say. (The total number of endpoints is twice the number of segments, which is more than twice the number of points). -At least one of these points (B,say) is such that C and D are on the opposite sides of the line AB. No other segment of endpoint B can intersect both the segments AC and AD, so AB is the only segment with endpoint B. -The same configuration without the point B and without the segment AB forms a smaller counterexample, violating our assumption of minimality.
@siddharthkorivi5537
@siddharthkorivi5537 11 месяцев назад
Also, the second puzzle is very interesting - might take a shot at that one too!
@notn0t
@notn0t 2 года назад
One thing that does not seem to be answered by the proof is what happens if the new pairing causes intersections with OTHER lines? It is possible that new configuration simply cycles with the original one, with both configurations having intersections.
@connorcriss
@connorcriss 2 года назад
No, because if they caused intersections with other kinds there would be another configuration with even shorter total length, and that could not lead back to the original configuration because the original configuration has greater total length. It’d keep going up until eventually it hits a configuration with no intersections, which must happen eventually since there are finitely many configurations.
@notn0t
@notn0t 2 года назад
More than that, I can easily construct a set of pairings which do not resolve into an allowed configuration (no node can connect to more than one other). This does not mean that better pairing do not exist, simply that the methodology presented cannot be relied upon because using it could lead to pairings which are not allowed.
@petemagnuson7357
@petemagnuson7357 2 года назад
If I'm understanding the argument right, the new "straightened out" pairings should have strictly less total distance after resolving any crossing. I suppose there could be some degenerate case where the points are all along a straight line and this would have a cycle, but hopefully we can rule that out in the question definition somehow
@methatis3013
@methatis3013 2 года назад
@@petemagnuson7357 question states that no 3 points are colinear
@petemagnuson7357
@petemagnuson7357 2 года назад
@@methatis3013 yeah, thanks! Just went back to check that, couldn't easily look on my phone without losing the comment.
@cowabunka
@cowabunka 2 года назад
absolutely beautiful
@SysFan808
@SysFan808 2 года назад
proof by reasoning: so, take the simplest crossing: the 2x2 there isn't a way you can have it cross with checkerboarded reds&blues, so there has to be a red side and a blue side. in this case, you can have the red side and blue side connect the other way, (can't really explain with words, so here's a diagram.) r--b r--b instead of, r\/b r/\b so you can add in more pairs and see that there come more of these 2x2 areas, which are all solvable. if you find something that proves me wrong, type in a reply.
@Buglin_Burger7878
@Buglin_Burger7878 2 года назад
This feels like the equivalent of titling "How can the boat avoid land?" Then removing the land and all possible fail states so it by default wins and changes the initial question to: "If there is no fail state will it always work?" In other words a video like this is more of a "Why" and less of a "Yes/No"
@tinynewtman
@tinynewtman 2 года назад
That's pretty standard for these types of videos. The problems they're solving are proof applications, where you need to show your answer in detail, enough so to cover every possible case for the problem.
@cernejr
@cernejr 2 года назад
Really nice, I enjoyed the video.
@konstantinkh
@konstantinkh 2 года назад
I don't think I would have solved this if I wasn't aware of a related algorithm for Delaunay triangulation. Uncrossing a pair of pairings seems like a move in the right direction, just like in Delaunay, and it's just a matter of proving that you always make progress with each pair you uncross. Having some sort of a net quantity that monotonically increases or decreases is always a good thing to look for, and obviously, the sum length was the first thing that came to mind. I didn't bother with ordered list, just the fact that there is a finite set of permutations, that swapping the pairing on an intersection decreases the sum length, and that there's always a permutation with a smaller length if there's at least one crossing guarantees that a solution exists and you get the algorithm as a bonus. Neat problem. Good video.
@jonwatte4293
@jonwatte4293 2 года назад
I imagine there's an alternative solution that's constructive, essentially doing ear clipping on the convex hull, as an alternative.
@Da-wl2en
@Da-wl2en 2 года назад
You can easily find at least a configuration that does not allow to link red and blue. Put all the points on a line, and label them as RRBB. Then, it is easy to see that you can never link all red and blue without intersections.
@gammakay521
@gammakay521 2 года назад
then they are colinear
@punchster289
@punchster289 2 года назад
holy fuck i was uniquely prepared to solve this problem. i got it in like 2 seconds! that felt amazing after such a stressful week.
@nullFoo
@nullFoo 2 года назад
Found this through your skits channel and I am unable to hear your voice without feeling like there's gonna be something funny coming up
@JL-pc2eh
@JL-pc2eh 2 года назад
I love that you give us a non youtube alternative.
@resultingrun5928
@resultingrun5928 2 года назад
Odysee huh! Appreciate to hear that. Also, didn’t know how many other channels were on there.
@quiggaxx
@quiggaxx Год назад
The end question confused me at first because I didn't see the asterisk pop up saying "or equal to" so naturally in my head I was saying "this can obviously be done ! If I arrange 4 points in a perfect square then I'll have 4 pairs at the max distance !" . Should've known that was too easy to be overlooked lol glad I went back and watched it again and saw the equal to asterisk .
@aarongoodwin4845
@aarongoodwin4845 2 года назад
Can you do the same thing with sentence structures? Words being blue, spaces being red? Important to note there's always one fewer space than there is words, but one might sub punctuation for the required/missing space! Cheers!
@TrackedHiker
@TrackedHiker 2 года назад
One *less, two fewer
@aarongoodwin4845
@aarongoodwin4845 2 года назад
@@TrackedHiker please provide a little bit more information than you have! If you have 5 words, there's (5-1) spaces!
@TrackedHiker
@TrackedHiker 2 года назад
@@aarongoodwin4845 this is a grammar lesson. It’s incorrect to say “one fewer.” It’s “one less.”
@aarongoodwin4845
@aarongoodwin4845 2 года назад
@@TrackedHiker You say whatever you want! Say it your own way! Don't ever make the mistake of thinking you get to speak for me!
@TrackedHiker
@TrackedHiker 2 года назад
@@aarongoodwin4845 I get to speak for you in this case because you are making an objective mistake in language. You don’t get to say whatever you want. You have to use words that make sense to other people. Go look up less and fewer. Learn something. Enrich yourself. Stop being ignorant. It’s “one less” and “two (or more) fewer.” This isn’t my opinion. This is fact. Do you have a problem with facts? Unless you don’t care about the rules of language. In that case frizzer bing glump you cretiglous excuse a for dumpklinging cowmunch! The queen bear hopes your pundle falls groovech and you duko rapidly, never be to hordle a gloom.
@Rolancito
@Rolancito 2 года назад
I think you can extend this for more colors. Given the same number of green, red and blue points on a plane , no three collinear, show that you can draw triangles with vertices of different colors such that the sides of any two triangles do not intersect
@MichaelKudlatheInterested
@MichaelKudlatheInterested 2 года назад
What if there are 4 points total, and they are all on a line, with the 2 blue on one side, and the 2 red on the other side?
@donaldhobson8873
@donaldhobson8873 2 года назад
Sure, just take the shortest set of lines connecting red to blue.
@jacobobos
@jacobobos 2 года назад
Points in plane can by chance arrange in a way that they are all on the same line and all red and all blue bots are all sequential thus making them impossible to pair without going over the previous line. That proves that you can not allways match them
@serebix3685
@serebix3685 2 года назад
Came here to say exactly that. Such a simple example already disproves that, otherwise clever, idea.
@MorgurEdits
@MorgurEdits 2 года назад
Thought exactly the same way simplifying the problems shows that it is impossible.
@NozomiClips
@NozomiClips 2 года назад
0:51 "so that no 3 are collinear"
@ethandavis7310
@ethandavis7310 2 года назад
@@serebix3685 Video says none are collinear at the very beginning
@subhoghosal7
@subhoghosal7 Год назад
@ZechStar I have a objection with this proof. The manipulation that has been shown frees a cross by creating two noncrossing edges. But if n>4, this may introduce new crosses with other existing noncrossing edges. Even if we try to say that we would apply the algorithm on those edges recursively, it does not guarantee that on some step of recursion, we would not end up reintroducing the first cross.
@Alessandro37121
@Alessandro37121 2 года назад
Could you do a video about electronics engineering and also the difference between electrical please
@arondaftari9427
@arondaftari9427 2 года назад
Ok Just a question but what if there are 2 sets, both of witch fall on the same axis and such as if a line where to be drawn through any set it would pass through a starting point of another set. I understand that this would effectivly make it a line rather than a plane but lines can exsist in planes.
@birkheadc
@birkheadc 2 года назад
Yes, that would be a counterexample. If you read the original problem, it says "No three points are collinear," specifically ruling out that scenario.
@arondaftari9427
@arondaftari9427 2 года назад
@@birkheadc thx
@jankiwlenko3315
@jankiwlenko3315 2 года назад
My thought before watching: connect randomly, then if lines intersect, take the points they're on and connect them so the lines are pararell, then repeat the process till there are no crossing lines left.
@Joshua_d_designer
@Joshua_d_designer 2 года назад
Supercool, I love this!!
@pelimies1818
@pelimies1818 2 года назад
Sure. Make dashed lines.
@gaborszucs2788
@gaborszucs2788 2 года назад
Well, I guess the exact problem description has some extra condition which is not mentioned in the video. Think about the special case of ABCD being collinear, in this order, with AB being red and CD being blue. Technically, two lines that have a common segment (BC) are considered intersecting, and if you swap the ends, the distance doesn't decrease, and BC will remain a common segment as well.
@justsomegoosewithinterneta4199
@justsomegoosewithinterneta4199 2 года назад
That's so cool. I didn't watch that other video so I couldn't guess :)
@majorjohnson8001
@majorjohnson8001 2 года назад
Bonus question: The only way set m can get bigger than 1, is if all of the points in set comprising m all lie on the perimeter of a circle of radius one half. Any other points in the whole set must lie within that circle. There cannot be points outside that circle, because if there were, there would be a pairing with a length greater than one (and those points would be the set m, rather than the assumed set m). m=0 only occurs if n=1.
@watchm4ker
@watchm4ker 2 года назад
You're a bit off defining the radius, since that relies on an even number of points in the set. An odd number would have a slightly larger radius. But you're right, the most you can do is either match pairs with their opposite, or form a polygram star. And in either case, n = m for all n greater than 1
@asterpw
@asterpw 2 года назад
Cool video and didn't know there was so much support for Odyssey! It's great to have a RU-vid alternative.
@SKyrim190
@SKyrim190 2 года назад
Hello. Do you do all the animations in desmos? I want to build up a channel of classic geometry and I wanted to know
@SpeckyYT
@SpeckyYT 2 года назад
It literally took me 2 seconds to think of an example where they can't pair without overlapping.
@Dziaji
@Dziaji 2 года назад
I’m going with “yes”
@sebastiana.345
@sebastiana.345 2 года назад
Bro I found this channel second and the whole time I just think of you being god and being like oh my
@chachasenri
@chachasenri 2 года назад
that's amazing
@power-max
@power-max 2 года назад
0:19 Thought about it for a bit, what about the case where you have your dots constrained to a line, 2 red dots followed by 2 blue dots? -----R-----R----------B-------B------ Red must connect to blue. The inner red and blue connect. But the outer red and blue must "intersect" The alternative is first red connects to first blue and second red to second blue, but they still "intersect" Could go a step further with that configuration and have 2 of those parallel: -----R-----R----------B-------B------ -----R-----R----------B-------B------ There is no other case I can think of to allow connecting them such that no lines intersect.
@silksongreactions
@silksongreactions 2 года назад
He said no 3 dots are in the same line
@user255
@user255 2 года назад
I also missed the "no 3 dots in the line".
@power-max
@power-max 2 года назад
@@silksongreactions Yup totally missed that!
@JonMW
@JonMW 2 года назад
I did actually see that you could "untwist" intersections but didn't realise that that could be extended to a full proof. Also, I now think that if you started with a random field of points and paired those up randomly, then progressively untwisted them (also in random order) you would eventually arrive at a P that had no intersections, but there's no guarantee that you'd have the shortest possible length of lines (no guarantee you're at P1)
@tjohnson314
@tjohnson314 2 года назад
Yes, this was the proof I thought of. We know that: a) There's a finite set of configurations of the lines. b) If there's an intersection between two line segments, we can always "untwist" the intersection. c) After each "untwist", the total length decreases. So the obvious algorithm is to just keep picking any pair of intersecting line segments and untwist them. Because the total length decreases each time, we can never return to a previously visited configuration. But since the number of configurations is finite, that means eventually our algorithm will halt. And when the algorithm halts, we know that the configuration must not have any intersections remaining.
@OMGclueless
@OMGclueless 2 года назад
Untwisting a random pair may actually increase the total number of intersections. Without using something like the monotonically decreasing sum-of-lengths function from this proof to guarantee that you won't ever revisit the same configuration, you won't have a guarantee that if, say, you untwist a random pair to go from P1 to P2, that untwisting a random pair in P2 won't bring you back to P1.
@JonMW
@JonMW 2 года назад
@@OMGclueless that sounds right, but can you set up an actual example of such a situation?
@OMGclueless
@OMGclueless 2 года назад
@@JonMW No, it's impossible to set up a real counterexample, because the argument about strictly-decreasing sum-of-lengths from the video applies. My point was just that you need to use that argument if you want to prove your statement (as you stated it, it was true but not a proof).
@JonMW
@JonMW 2 года назад
@@OMGclueless Oh, I misunderstood what you were saying, I'm not used to actual mathematical jargon
@rupen42
@rupen42 2 года назад
I watched Mathologer's shoelace video recently, so I immediately knew the argument.
@FedericoStra
@FedericoStra 2 года назад
The pairing corresponding to the optimal transport map w.r.t. squared Euclidean distance has this property, because of cyclical monotonicity. Done.
@FourthRoot
@FourthRoot 2 года назад
Once you mentioned the lengths of the lines everything snapped into place.
@kochathefat327
@kochathefat327 2 года назад
make a line... reds on one side blues on the other
@somniad
@somniad 2 года назад
Computer scientist, immediately came up with the line uncrossing but had no idea how to prove it lol. Funny what thinking about algorithms too long does to a brain.
@vladfeldfix7825
@vladfeldfix7825 2 года назад
What if I order them in such a way that all points are in one line - three red points on the left and three blue points on the right?
@tissuepaper9962
@tissuepaper9962 2 года назад
One of the assumptions in the problem statement is that no three of the points are colinear.
@vladfeldfix7825
@vladfeldfix7825 2 года назад
@@tissuepaper9962 I don't remember him mentioning this assumption, but maybe he did. I don't know.
@ethandavis7310
@ethandavis7310 2 года назад
@@vladfeldfix7825 And I guess you'll never know. It's not like you can just go back to 0:50 and check
@yulnikita
@yulnikita 2 года назад
Zach is back!
@theaureliasys6362
@theaureliasys6362 2 года назад
Funny thing is, this problem is trivial with knowledge how to trivialize social cases of the traveling salesman problem. Any crossing path is subpar, replace by making the other connections. And since there are stictly less connections here: Possible.
@theaureliasys6362
@theaureliasys6362 2 года назад
Ok. So that is kinda the solution used in the video. Nice. Yes, I commented before watching the video. It's a puzzle video.
@JacoRLol
@JacoRLol Год назад
it's weird seeing Zach do anything other than comedy sketches
@peternasser5171
@peternasser5171 2 года назад
I think this may be wrong the top most configuration could be choosing from 2 intersection Or in other words some points may require intersection to be connected ??!
@havenbastion
@havenbastion 2 года назад
No. On a line you can easily get at least one point of a given color not being able to see a dot of another color. In two dimensions it's less likely but entirely possible. A circle of blue dots with a blue dot in the center and all the red dots behind an external blue dot from the central blue dot is a configuration which does not allow connecting the center blue dot to a red dot. In three dimensions it's again less likely but entirely possible, using the same configuration as above but with a sphere rather than a circle.
@ethandavis7310
@ethandavis7310 2 года назад
It literally says no 3 points are collinear at the start of the video
@havenbastion
@havenbastion 2 года назад
@@ethandavis7310 Then the question is, are there any Other ways? I didn't catch that part. Anyhow, the title question remains answered.
@RantMusic-cx9qn
@RantMusic-cx9qn 2 года назад
I always just thought he was zach star himself
@tetraedri_1834
@tetraedri_1834 2 года назад
You don't really need the list, you can just say that there are finitely many connectivities, thus infinite decent is impossible.
@Orenotter
@Orenotter 2 года назад
That seemed to include unnecessary steps. All you had to say was that intersecting lines can be considered the diagonals of a quadrilateral, and that they can be replaced with two sides of the same quadrilateral. No need for lists or lengths.
@mcwolfbeast
@mcwolfbeast 2 года назад
Does this even hold true when the distribution of the points is extremely uneven, i.e. most of the red points are on one side and most of the blue points are on the other? Or of there's clustering of points on either or both sides?
@siddharthkorivi5537
@siddharthkorivi5537 11 месяцев назад
My proof is similar, but it deviates after you drew a quadrilateral. First, you need to realise that if you were to have half of the four points labelled one thing and the other half of the total points another thing, then you can ALWAYS connect one of label A and another of label B for both As and Bs without any intersection. But this part only talks about quadrilateral, so I will now prove that it works for any even sided shape. Next, add another A and B pair (from now on I will abbreviate these pairs as AABs). What you must realise is that, if it intersects one of the lines again, you can simply do the quadrilateral trick again. It must be noted that even if, from a group of intersections, you can produce a hexagon or any other shape, you MUST start with a quadrilateral and include the other pairs of points with more quadrilateral. This proof is (I think) correct. By the way, if this proof is correct then this question absolutely does not deserve to be in the Putnam exam. After all, I'm just a 12 year old who didn't even get over 100 on the JMC.
@marceorigoni6614
@marceorigoni6614 2 года назад
The last inequality doesnt hold always, its quite simple geometrically. Lets say we have n points. Starting from n= 1, it always holds, n =2 always holds, n = 3 always holds. This is because no matter If you make an equilateral triangle(the case that would have most possible pairs) you would still have 3 pairs and 3 points. But from n = 4 there would always be at least one configuration would not satisfy that. Because you always can add one point so that it forms an equilateral triangle triangle with two previous points. Effectively adding 2 new pairs and only one point. So if you had the case the 3 first points form an equilateral triangle, 3 pairs and 3 points basically you would have 5 pairs and 4 points forming a new equilateral triangle. Is there more configurations than those? for n = 4 there isnt because the only case that has 3 points and 3 pairs is the equilateral triangle case. And the number of combinations you have with 3 points is 3. You cant get more than 3 pairs. After that you can add at least 2 new pairs per point, in many ways you could add more than just two like adding more than one equilateral triangle at a time but that requires specific configurations. At n = 6 you would have infinite configurations just form because given the case with most pairs at n = 5 would be 7. (basically the max quantity of pairs is 3+ 2*(n-3) at least for an small n else you could have more) So you have an extra point to put wherever you want and still would be 6 points and 7 pairs or 8.
@johnchessant3012
@johnchessant3012 2 года назад
The maximum distance between any two points must be 1.
@marceorigoni6614
@marceorigoni6614 2 года назад
@@johnchessant3012 Yeah I didnt listen to that lol, completely ignored it... but just that doesnt change that it doesnt hold. Just make the sides of the equilateral triangle I talked in the original comment infinitesimal, or small enough so that it satisfies the max distance of 1...... Given a minimum distance between points you can calculate somehow ( I didnt really thought about how but must be possible) where is the turning point in which it would be guaranteed for a greater n to satisfy that. But unless that minimum distance is close enough to the maximum distance( you can calculate exactly how close but I dont really want to get into it) there would always be cases where it doesnt hold If the problem refers as max distance pairs as the pairs at the actual maximum distance allowed, then it always holds. And that is because the most you can get is 3 pairs at a distance of 1 and the rest would have to be inside that equilateral triangle meaning a distance less of 1 to any existing point.
@marceorigoni6614
@marceorigoni6614 2 года назад
As I replied to other comment, this is for N = 4 how small should be |AB| If we talk about euclidean distance and have the maximum distance then depending on the initial distance of points A and B there might exists such D. If you place A and B, and put a C point so that |AB| = |AC|= |BC| thats called an equilateral triangle. And the only way you could have a point D that satisfies the same as C is that it forms another equilateral triangle, and that means you do it in the other way. Meaning the distance between the points C and D must be 2 times the height of the equilateral triangle. And the height of an equilateral triangle is sin(60)*side = (√3)|AB|/2 so (√3)|AB| ≤ 1 |AB| ≤ (√3)/3 For any A and B that satisfies that the existence of D is possible. Meaning for n = 4 there is a way in which it doesnt hold. For n = 5 you would have that maximum distance would be 2 times the side. So for any |AB| ≤ 1/2 there would be infinite cases in which it doesnt hold at n = 6 And now that I came this far... clearly for n =6 if you put another forming a equilateral triangle mirroring the one at 5. Then you wpuld form a broader equilateral triangle. With a side of 2|AB|, and you could then repeat the logic using this 2|AB| side as If it were the original |AB|(increasing the number of points exponentially as you keep repeating) and see how many times you can repeat the process to get the turning point for a minimum distance.
@marceorigoni6614
@marceorigoni6614 2 года назад
No, it always holds... because on all this reasoning I forgot the fact that If you do the 2 equilateral triangles then the new max distance es √3|AB|, in other words |CD|, meaning again the numbers of pairs goes to 1... so yeah it always holds
@ShivanshSharma
@ShivanshSharma 2 года назад
The way I solved the problem is that you first number the red dots 1, 2, 3...n from left to right. Then you number the blue dots separately 1, 2, 3...n again form left to right. Now simple connect the Red1 dot to Blue1, Red2 to Blue2 and so on. I think this solution will work for every n but I don't know how to prove it.
@ethandavis7310
@ethandavis7310 2 года назад
Create a trapezoid of four points. The top left corner is blue, bottom left is blue, other two are red. Position the points such that the longest side of the trapezoid faces up (the horizontal lines are parallel), and your solution will produce a crossing
@cealvan8941
@cealvan8941 2 года назад
So how would I go about proving that if two lines cross there is going to be two sides of the corresponding quadrilateral that satisfies the original condition?
@jursamaj
@jursamaj 2 года назад
The 2 sides don't necessarily satisfy the condition. If they do, good. If they don't, then you again have an intersection inside a quadrilateral, so you repeat the de-crossing procedure, which will reduce the overall length. This may still produce new crossings, on which you apply the same de-crossing. No de-crossing will get you back to a prior state, because each one reduces the overall length. Eventually, you must reach a state which which satisfies the condition (at the minimum overall length, if not sooner).
@syborg64
@syborg64 2 года назад
Recursively flip any case where beams intersect (flip blue to blue for example) The process is garanteed to end because each flip will shorten both beams (see: pythagoras. the sum of the diagonals of a quadrilateral are greater than the sum of any 2 opposing edge). The only case in which you could indefinitely keep shrinking beams without moving points is where you have points infinitely close to each other, in which case the problem is undefined. saved you 7 minutes edit: lol this is actually pretty much the solution you suggested. gg me
@harshilagarwal6295
@harshilagarwal6295 Год назад
Proving by mathematical induction🗿
@staa1337
@staa1337 2 года назад
yes because any 3 points are not in a line. Nice way to find the pairings.
@raismin739
@raismin739 2 года назад
it's not always possible tho... if you put in the same line 3 red dots and then 2 blue dots and the blue dot wherever you want, you notic that is not possible to not intersect. if you generalize with 2 dots (indistinguable from each others) then it's always possible to do it
@FourthRoot
@FourthRoot 2 года назад
That's all well and good, but can you prove it for red and GREEN dots?
@ckmishn3664
@ckmishn3664 2 года назад
Obviously.
@MrFreakHeavy
@MrFreakHeavy 2 года назад
I have yet to see the video, but my hypothesis is that, choosing the closes blue point to a red point should always lead to segments not intersecting. Drawing intersecting lines requires you to choose the furthest blue-red pair of points to be connected. I supposed that a parsimony approach on total segment length, where you add the length of all segments, and you choose the arrangement of connected points that have the least total segment length would always lead to segments not intersecting, no matter how many points you have. Edit: 2 min in and I guess I was right...? My idea was reducing the problem to 4 points --- 2 pairs. Drawing a rectangle with those points, and drawing the two lines that intersect, one can see that lines drawn can be equivalent to the hypotenuse and the other two sides of a triangle -- the two hypotenuses intersect. No mater how much to deform a square, you will always end up with a line that is the longest one and it will end up intersecting another. My conjecture/assumption comes with the fact that adding the longest line with any other line, will always yield you a bigger number than if you chose the other pair. If you add more squares, the solution is clear: choose the total sum length of lines that is the smallest.
@siegfriedstow
@siegfriedstow 2 года назад
You were wrong with your initial hypothesis sadly, it's easy to provide simple counter examples where choosing the closest pair first results in having to make an intersection with a total line length that is longer.
@Maric18
@Maric18 2 года назад
my solution was incomplete, i got the "you can resolve a crossing by switching to the outer lines of the quadrangle formed between the points" (without looking at the length) and then declared myself done, because "well it probably can resolve all the cases, even if it produces some new ones" xD been a while since i did math but im still half proud xD
@StephenKarl_Integral
@StephenKarl_Integral 2 года назад
What if you have 4 points, two red and two blue, reds are on the left, blue on the right, and all four points are colinear... ^^ just nitpicking... but that's the first picture that came to my mind when reading the title before watching the video, was more interested in finding an answer to the question than attempting to solve the broad case where there is no colinearity.
@TheGraemeEvans
@TheGraemeEvans 2 года назад
So 2 red points followed by 2 blue points in a line doesn't count as an intersection? Eg red points at (1,1) (1,2) then blue points at (1,4) (1,5)
@deg1studios
@deg1studios 2 года назад
what if the blue and red points are all on the same line, in a configuration that makes it impossible for lines not to overlap?
@Arikayx13
@Arikayx13 2 года назад
This would indeed cause them to overlap, so mentioned at the very beginning (but not really again) is that no three points can lie on the same line.
@deg1studios
@deg1studios 2 года назад
@@Arikayx13 ooh, yeah I misunderstood that part. I should have rewinded. Thanks for clearing it up!
@Raye938
@Raye938 2 года назад
Thanks for mentioning Odysee, I wasn't aware it existed and I wanted to move away from RU-vid.
@stephengfazio
@stephengfazio 2 года назад
red and blue and connecting dots… as a fellow EE all I see is PCB layout
@stephengfazio
@stephengfazio 2 года назад
Just drop a via when you need to intersect lines. When you have too many intersections just add another layer to your board
@farfa2937
@farfa2937 2 года назад
My proof is that it's intuitively true
@solten5184
@solten5184 2 года назад
feels counterintuitive that the fact that changing the connections which can create a new intersection does not break the proof. well it just doesn't
@likebot.
@likebot. 2 года назад
The solution and proof are immediately obvious, but I couldn't for the life of me state a rule to follow. It's just self evident.
@magdosandor8051
@magdosandor8051 2 года назад
So, stupid question: how do we know that by freeing up intersections we don't create new ones and we cant get into a circular infinite loop of states?
@henryginn7490
@henryginn7490 2 года назад
The list of configurations is finite. At each stage we must move at least 1 higher up in the list, so we can only do a finite number of swaps. This is a good question though, it's exactly the kind of question you should ask
@marceorigoni6614
@marceorigoni6614 2 года назад
@@henryginn7490 How can you prove that the configuration with the shortest total distance has no intersections? it sounds intuitive but that isnt a proof
@iamanoob9747
@iamanoob9747 2 года назад
@@marceorigoni6614 because removing an intersection decreases the total length of all the lines
@henryginn7490
@henryginn7490 2 года назад
@@marceorigoni6614 This is what he proved in the video. If there is an intersection, you construct a different configuration without that intersection, and with a lower total distance
@marceorigoni6614
@marceorigoni6614 2 года назад
@@henryginn7490 Yeah it has sense, but somehow it seems simpler than it should, probably just me. What he proved is that If there is an intersection then there should be a configuration with a lesser total length. Which of course by contradiction doesnt allow the shortest configuration to have an intersection. So yeah pretty much proved. (the same for the other reply)
@theCJoe
@theCJoe 2 года назад
MaybeI misunderstood the second question, but isn’t it trivial? No line is longer than 1, so all are smaller or equal to one, so the number of lines equal to one is at maximum the number of all lines. Or did i get this wrong???
@Soandnb
@Soandnb 2 года назад
I suppose you could beat this problem if all points were miraculously placed in a perfectly straight line without any deviancy from any of them. If the points are Blue - Blue - Red - Red, then there would be no way to place the lines in a way that would prevent at least some part of the line from "intersecting" with the other line. Though I don't know if intersect is the right word since fragments of both lines occupy the same "space", as it were.
@element_119
@element_119 2 года назад
Except that the starting set of dots is a random scattering such that no three points lie on the same line.
@fabiankreitner4147
@fabiankreitner4147 2 года назад
@@element_119 A random set *can* generate all points on one line.
@christian5256
@christian5256 2 года назад
@@fabiankreitner4147 Watch the first ten seconds of the video again. I had the same thought as you, but there's a "no set of 3+ colinear points" rule at the beginning.
@thaylonD
@thaylonD 2 года назад
@@christian5256 You're right I missed that. Still, that just doesn't feel right. Not truly random anymore, and also excludes solvable sets.
@Qermaq
@Qermaq 2 года назад
I've got an Odysee question. Anyone have thoughts on whether it actually has advantages/disadvantages to RU-vid?
@cmck362
@cmck362 2 года назад
Most of the advantages come from easily mirroring your content and avoiding some of youtubes more questionable practices. Copyright trolls can fuck you over on youtube because of their horrible system, but they probably won't be able to do the same on odysee at the same time so your content stays up and you still have a way of contacting your viewers to explain what's going on. There's no shadowbanning or censoring there for comments or videos. Ever noticed how the number of replies are occasionally lower than youtube says if you manually count them? Depending on what you watch this can be really important. I haven't seen any bots spamming in the comments yet. They still have dislikes displayed. Basically it's just a nicer version of youtube or how youtube was 10 years ago. As far as disadvantages it's mainly just lack of content and interaction. Odysee gives people an easy way to mirror their youtube channel, but not nearly enough content creators branch out to alternative platforms. It's also a bit rough around the edges, but they're smoothing away those issues. Honestly if the content was there I'd have no problems switching, but it not so...
@orangesite7625
@orangesite7625 2 года назад
Actually bro i got that idea before you said it but I don't know how to prove it mathematically 😶
Далее
У мамы в машине все найдется
00:38
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️#shorts
01:00
The "Just One More" Paradox
9:13
Просмотров 2,9 млн
The Poker Paradox
8:28
Просмотров 399 тыс.
When you're an engineer in the Star Wars Universe
5:55
Researchers thought this was a bug (Borwein integrals)
17:26
Symmetry Puzzles
10:20
Просмотров 168 тыс.
У мамы в машине все найдется
00:38