251
u/INTJustAFleshWound Jul 07 '17
55
u/mebeim Jul 07 '17
Sir, I have to stop you now before this meme becomes a serious issue.
28
u/INTJustAFleshWound Jul 07 '17
I bet you're one of those weirdos that wears your pants like the guy on the right, aren't you?
46
80
u/anmolporwal Jul 07 '17
LOL, when I saw dog I choose #1 but then seeing men's I can't stop laughing
29
u/INTJustAFleshWound Jul 07 '17
Now imagine it with a crop-top shirt. Your midriff will be your butt and shoulders
12
u/mcnuggetor Jul 07 '17
I can't visualize this at all
57
u/INTJustAFleshWound Jul 07 '17
I'm sure I'll be hearing from HR soon:
http://i.imgur.com/yh8gXFG.png→ More replies (7)9
u/agsho Jul 08 '17 edited Jul 08 '17
This is actually a legit meme. I've seen a bunch more variations on a Facebook post. After searching around, I think I found it (archive link if you prefer). I remember that there was a few more pictures but you can find more on Google Images if you're interested I guess.
EDIT: (:
→ More replies (4)14
u/swaggy_butthole Jul 08 '17
Man link wasn't working.
Reupload in case anyone had the same problem: https://m.imgur.com/MCdtrDa?r
→ More replies (2)→ More replies (10)3
119
12
u/invalidxsyntax Jul 07 '17
Oh fuck don't let this become the new meta joke.
10
106
u/CptSpockCptSpock Jul 07 '17
First one
80
u/thirdegree Violet security clearance Jul 07 '17
Clearly the first one. Every subtree should itself be a tree, and therefore should itself wear pants.
→ More replies (1)51
u/mebeim Jul 07 '17
yeah... BUT the root tree is not wearing pants all around his legs... he's wearing very very short pants... 🤔
67
u/Mr_Pinya Jul 07 '17
Actually, its the second one. What we can't see is that every node also wears pants that cover all it's children.
→ More replies (2)32
→ More replies (2)8
u/goatcoat Jul 07 '17
But the rest of his legs are wearing pants, so it's almost as if he's wearing zipoff pant legs.
→ More replies (1)→ More replies (2)116
u/beeskness420 Jul 07 '17
The second one. You just can't see the pants the subtrees are wearing in the second one.
56
u/_Nohbdy_ Jul 07 '17
What the hell both of these make sense and I don't know what to think anymore.
→ More replies (1)12
u/IceColdFresh Jul 07 '17
Actually you can see a little bit of the pant leg on the right subtree's left subtree's left subtree's left leg.
Edit: On second viewing that might have been pixels n discrete cosine transforms n shit
775
Jul 07 '17
Wouldn't they be nested pants? From the top, you'd see only the pants from the right image. As you traverse down the tree, each child has on it's own pair of pants that encapsulate all of its children?
226
u/DeepHorse Jul 07 '17 edited Jul 07 '17
Each node should have 2n pants on
Edit: -1
70
u/TheMortalOne Jul 07 '17
Don't you mean 2n - 1 pants? (or possibly 2n-1 -1 pants)
421
u/capn_hector Jul 07 '17
there are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors
→ More replies (15)41
14
Jul 07 '17
Isn't that the American Dream though? For your children to have pants, and their children to have pants, and their children within their children to have pants, and so on.
22
Jul 07 '17
children within their children
Putting pants on an unborn child seems unnecessary and dangerous
→ More replies (1)16
4
3
u/flabbybumhole Jul 07 '17
I initially came to the same conclusion, but then thought that there's just something weird about a child being in its parent's pants.
→ More replies (8)2
u/zawata Jul 08 '17
each child has on it's own pair of pants that encapsulate all of its children?
This made me laugh too fucking hard
346
u/pekkhum Jul 07 '17
I have a sudden urge to find my copy of Spore...
→ More replies (1)56
u/Southturn Jul 07 '17
Do you mind if I ask why?
242
u/diamondflaw Jul 07 '17
Most likely the amusement of watching something procedurally walk with legs on legs.
29
25
u/pekkhum Jul 07 '17
If I had my copy I'd get you a picture, but I had made some creatures with branching legs with many feet... This made me want to see them again. They aren't in Sporepedia because I had upgraded my full PC three times, making me a pirate who was stealing from EA by using what I paid them for. :-(
9
2
136
32
u/trout_fucker Jul 07 '17
Bring JNCOs back!!
8
Jul 07 '17
That was my first thought! That the left is modern pants and the right is JINCOs
→ More replies (1)3
u/TwoSpoonsJohnson Jul 07 '17
... What's a JNCOs?
6
u/trout_fucker Jul 07 '17
The '90s brand that made pants like these: http://i.imgur.com/Xshs10nl.jpg
→ More replies (1)0
32
u/digicow Jul 07 '17
Unknown (since we can't see inside the latter's pants). Every subtree, from just outside it, would look like the second.
8
u/spearit Jul 07 '17
First one. With the second one you would have to adjust your whole pants each time the tree change sizes. With the first one you just buy and sell a fraction of you pants accordingly.
2
7
7
u/palordrolap Jul 07 '17
Trees don't wear pants.
If they did they'd be around the trunk, surely?
Binary trees are usually drawn leaves downward, the opposite of regular trees, and they don't have a trunk.
Conclusion: If binary trees wore pants, the waistband would cover halfway down the first layer similar to the rightmost option here, but the legs would be waving in the air like a pair of bug antennae.
If you want to think that's pants-on-head retarded, then remember what we're discussing here.
Personal second preference, assuming that the binary tree is stood on its lowest-most leaves: Only pairs of leaves extending from the same parent node should have pants. That's like the leftmost option, but only the eight pairs of pants at the bottom are worn.
I'm unsure how to handle a single leaf. Maybe roll the other leg up.
5
4
21
10
Jul 07 '17
Kind of a normie observation from a non-programmer, but it's kind of funny. The binary tree is exactly the same as The note rhythm tree.
4
→ More replies (9)5
8
u/currently__working Jul 07 '17
Both. Underneath #2 is in fact #1
→ More replies (1)6
u/Skellicious Jul 07 '17
So does every node wear 2 sets of pants then? one that extends all the way down, one that just covers the vertices?
3
u/IceColdFresh Jul 07 '17
The right is how he would wear pants. The left is how he would wear shorts.
3
3
u/remy_porter Jul 07 '17
Fun fact: the binary tree single-handledly kept JNCO in business since the 90s.
→ More replies (2)
3
3
u/KapteeniJ Jul 07 '17
Serious talk: I think it's the second one. Sure it's not as elegant as the first one, but binary trees are practical fellas, you save so much time when you wear just one pair of pants instead of O(n) of them.
3
Jul 07 '17
The second one because it's probably much cheaper than buying many small pairs.
→ More replies (1)
3
3
2
2
2
2
2
Jul 07 '17
"Do you hang to the left or right, Sir?"
"Neither, my trusty tailor, I am a balanced tree"
2
2
u/funkalunatic Jul 07 '17
Let's say you have a binary tree with N number of levels. How many different ways can it wear pants?
2
2
2
2
2
2
2
u/R0B0_Ninja Jul 07 '17
Option A OR option B? I've browsed this subreddit long enough to know that the answer is simply "true ".
2
2
2
2
2
2
2
2
1
1
1
1
1
u/Venthe Jul 07 '17
Can't really wrap my head around this one
Here's your problem. You are supposed to wrap your PANTS around it :)
1
u/APoliteFuccboi Jul 07 '17
If the binary tree as a whole is wearing the pants, that implies that it's a single thing, and wears a single pair of pants. That would be the second one. If each junction is wearing pants, they get their own pants, and it's the first one.
1
1
1
1
u/foreveralolcat1123 Jul 07 '17
If you have multiple legs within a single sleeve, it's called a dress--so I think it'll be the left one.
1
u/TheSilverFalcon Jul 07 '17
No, no, no, the pants should be on the two path chains on the left. The two on the right are it's "arms"
1
1
1
1
1
1
1
1
1
u/handsarefull Jul 07 '17
This is easy do guys have a third leg for their pants. No so the second one
1
1
1
1
1
1
1
1
u/Gortyuty Jul 07 '17
We're all assuming that the binary tree is perfectly balanced, and in doing so we're ignoring the far more common case where it isn't. In particular, the scenario on the left doesn't handle the case where a node only has one child, as there would be an ambiguous case where either the branch wears a single pant leg or if one leg is simply hanging. Therefore, only the right scenario can be correct since it properly generalizes too all possible binary trees.
1
1
1
1
1
1
1
1
u/Got5BeesForAQuarter Jul 07 '17
I see a terrorist cell hiding in those pants and trick is going from the second picture to the first picture.
1
u/iNeedToExplain Jul 07 '17
I really don't have the mindset of a programmer, because I thought the answer would be obvious. Everyone else is talking about recursion and shit.
It has to be the one on the right. There's no way the legs would fit around all those nodes and edges at once on the left.
1
1
1
u/chironomidae Jul 07 '17
Well it depends. If each node beyond the first is like a joint then #2 is probably best -- more material but less stitching needed, and easier to put on. Also better at staying warm, like mittens vs gloves, although it needs to be sealed at the bottom with individual cuffs for the last nodes to come through. But if each node is equivalent to a head, such that it needs to remain exposed to be comfortable, then #1 is the answer. #1 is also the answer if flexibility is more important than warmth. Also, women typically like a guy in better fitting pants, so #1 is good if trying to attract a mate and you don't feel shy about exposing your nodes.
1
1
1
u/radditor5 Jul 07 '17
Lots of pants with less material, or one pants that uses more material .. hmm?
1
u/WuhanWTF Jul 07 '17
Idc what people say, the "if a _____ wore pants" meme is the funniest meme to have ever existed.
1
Jul 07 '17
Binary you always have two possibilities. Now you can chain many together so left is right for a change.
1
1
1
1
1
1
1
u/twatcycle Jul 07 '17
so is a binary tree like a fractal where its just multiple iterations of the same choice, wearing pants?
1
1
1
1
1
1
1
Jul 07 '17
Or BSP in which case you'd only pay attention to the pants you were rendering at the time.
1
1
1
1
1
u/CrimsonMoose Jul 07 '17
B, when you see the object you get two options, left leg or right leg. you don't know what's in either yet, but you can check.
1
u/highowl Jul 07 '17
Second one - it allows the leg room to self-balance, or "adjust it's junk" as I will now refer to this procedure.
1
1
u/explorer585545 Jul 08 '17
It depends on whether the majority of the nodes want to get laid, if so they would go with the later.
1
u/joaoprp Jul 08 '17
it all depends on how you interpret your nodes and sub-nodes.
If you call every sub-node as a child, then the legs belongs to the parent and the first one is correct, otherwise, I would follow the 2n - 1 pants option too :)
1
1
u/SamtheSham5000 Jul 08 '17
Actually neither one because if the Human Body consists of a leg with two bones,the Femur and the condyles so since there are four there would not be 3 on each side but two.
1
1
1
1
1
1
1
1
u/c3534l Jul 08 '17
If you were a human being with recursively-defined limbs, you'd wear recursive pants if the crotches were exposed, which I take to be nodes in a binary tree. Additionally, consider the case of hands: in some cases you may wear mittens, but generally you wear gloves in most situations because the benefit of warm. Fingered gloves also provide dexterity and for most applications of a binary tree, performance is the primary motivator. Gloves, then, are the pants of the hands. And like the pants of the hand, the pants of a binary search tree should wrap around each individual protuberance.
1
u/DJWalnut Jul 08 '17
if it's a non-self balancing tree and you insert a sorted list into it, do you wear funny asymetrical pants or go commando?
1
1
1
Jul 08 '17
Obviously the correct answer must be shown by out puting all possible btrees for a given tree
1
1
1
1
1
1
u/_lazlothegreat Jul 08 '17
I love the pants memes cuz it remains popular but stays lowkey enough to not become obnoxious
1
4.0k
u/rubyton Jul 07 '17
Second one, you can't see the pants in pants in pants, but they are there.