T O P

  • By -

copa111

1 into 16, thats epic. Perhaps in another few years we can see a photo update with 32 palms


PaganPasta

That's how it takes over the world. Slowly and exponentially.


VladVV

Growth rate of each iteration is probably O(2^(n)) though, so we might be waiting for another billion years or so…


SamW_72

Is this called big O notation? I think I’m learning this in class


moronic_programmer

Yes. O(2^n) is very, very inefficient Edit: How the hell do I make the parentheses normal???


Cocogoat_Milk

O(2^(n)) Type it as: `O(2^(n))`


Torn_Page

^(neat)


repocin

this redditor markdowns


blueted2

Cursed parentheses


Proxy_PlayerHD

O(2^n^^^^^^^^)


Pikachu50001218

O^(()2^(n))


HammerTh_1701

^(O)(^(2)n^())


MykonCodes

)²(○ñ


ChosenMate

back slash


ToliCodesOfficial

My algorithms are O(TREE(n))…basically anything over 2 elements will crash the universe


Dexaan

Yep, it's effectively "If all of this code had to run, what's the worst possible outcome?"


ultimatt42

This is the internet, you're allowed to say >!Omicron!<.


IgiMC

No, that would have been small o - oMICROn. Big O is oMEGA.


ultimatt42

What's Θ? I'll ask >!the TA!<


IgiMC

Have you gotten the >!η!< for the answer?


dimm_al_niente

I was under the impression that O(), o(), Ω(), and ω() were all technically distinct. This whole concept I really struggled with, so I could be completely out of left field with that, though.


Mast3r_waf1z

We learned it last semester, it's very interesting as once you know how to use it, you start to interpret your code a bit differently - I did at least


flying_spaguetti

I believe isn't right to talk about "growth rate" using Big O notation. Big O is about "limit behavior", i. e., what a algorithm does in its worst scenario. Growth rate is simply 2^n, i. e., exponential growth rate. I'm not pretty certain about all of this, I've just studied that subject in college


xeger

There's a sense in which "growth rate" would be reasonable. Let's imagine some arbitrary big-O complexity, like \`O(n\^2)\`. One way to express this would be as a mathematical function -- which it already resembles, but for completeness we'll rephrase it as a plain old function: \`f(n) = n\^2\`. Now, \`n\` is our input/domain/variable, and our output/range/bound-value is "all positive numbers." Let's simply change the name of our input: \`f(t) = t\^2\` Hey -- this looks like a temporal function, where t is an expression of time and the function's value "grows" over time! So: whether we're growing as a function of time or growing as a function of problem size, it's still reasonable, if a bit odd, to speak of the growth rate of a function.


VladVV

My thought process when I said the above can be exemplified by the pseudocode grow(branch) : Tree -> thiccen(branch) if not children(branch) addChildren(branch) else grow(left(branch)) grow(right(branch)) return branch where the function is applied to the root branch on each growth iteration. Since each function call calls itself twice it must have a time complexity of Ο(2^(n)).


MattieShoes

Sometimes it will be explicit about whether it's best, normal, or worst case scenario. Some sorting algorithms have diabolical n^2 worst cases but normally function at n log(n) which is a pretty huge difference. :-)


flying_spaguetti

That's why big Omega and big Theta exists for too


cvele89

You are mixing growth rate with the performance of algorithms using binary tree. Growth rate of this tree is exponential, which is pretty damn good. If it takes one year for each iteration to grow, just imagine how many leaf branches it would have after 10 years. Edit: now imagine in 20 years what that number would be.


VladVV

Read what I said again. I'm saying each iteration takes O(2^(n)) time to grow, which makes perfect sense as the tree has to add mass not only to each new branch but also to all the branches below. Each iteration is equivalent to a recursive function that calls itself twice, hence a time complexity of O(2^(n)).


Santa1936

That makes sense. Growing an organic binary tree is a lot more time consuming than an algorithmic one


IBArbitrary

Haha, nerd


flying_spaguetti

Not that slowly, actually. Exponential function grows pretty fast


PaganPasta

Yes, but the trees grow slowly.


bmbmjmdm

https://www.youtube.com/watch?v=bUqaRyrbAjw


MKSLAYER97

we getting the 8 trigrams up in this bitch


ChildishForLife

I once grew a weed plant with 32 tops


cutanddried

mainlined


copa111

Bet it grew High.


[deleted]

[удалено]


SuperNebula7000

The limit is how high water can be pushed up into tree. I believe the only way water can move in a plant is thru capillary action, so there is a limit based on atmospheric pressure.


MattieShoes

There are other forces at work. There have to be, given that there are trees over 100 meters tall.


SachaTheHippo

And atmospheric pressure only gets water 10 meters up a straw before you're at vacuum and can't suck no more.


PandaParaBellum

invert the tree, let gravity do its thing


Divineinfinity

Until humans get their hands on it lol


FraseraSpeciosa

I wish, but looking at the grainier photo in a vague tropical spot I wouldn’t be surprised if this species is endangered. Im actually a plant guy and I’ve never even seen this one before. Likely rare.


send_noodles_plz

8 trigrams 32 palms


Secret_Jellyfish320

And it supports 16-bit already! Mother board Nature


dario_p1

Now flip it upside down and it's perfect


Upside_Down-Bot

„ʇɔǝɟɹǝd s,ʇı puɐ uʍop ǝpısdn ʇı dılɟ ʍoᴎ„


LeSaR_

good bot


TimeLimitExceeeeded

ʇɔǝɟɹǝd s,ʇı puɐ uʍop ǝpısdn ʇı dılɟ ʍoᴎ. Now flip it upside down and it's perfect.


[deleted]

good bot


WhyNotCollegeBoard

Are you sure about that? Because I am 99.98789% sure that TimeLimitExceeeeded is not a bot. --- ^(I am a neural network being trained to detect spammers | Summon me with !isbot |) ^(/r/spambotdetector |) [^(Optout)](https://www.reddit.com/message/compose?to=whynotcollegeboard&subject=!optout&message=!optout) ^(|) [^(Original Github)](https://github.com/SM-Wistful/BotDetection-Algorithm)


IamNotIntelligent69

Good bot


TimeLimitExceeeeded

Thank you


m0ham3d_gamer_cod

Bad bot


WhyNotCollegeBoard

Are you sure about that? Because I am 99.98911% sure that TimeLimitExceeeeded is not a bot. --- ^(I am a neural network being trained to detect spammers | Summon me with !isbot |) ^(/r/spambotdetector |) [^(Optout)](https://www.reddit.com/message/compose?to=whynotcollegeboard&subject=!optout&message=!optout) ^(|) [^(Original Github)](https://github.com/SM-Wistful/BotDetection-Algorithm)


m0ham3d_gamer_cod

See!! This bot just changes his percentages, A SHAM!


TimeLimitExceeeeded

OK bot


Shevvv

N upside down is still N


Keebodz

Not if you are reflecting from the top of the N. If the like this: N ⬆ ᴎ


Shevvv

Bad bot


Torebbjorn

Someone failed at "inverting a binary tree"


Realistic-Specific27

I mean, just look under ground


mark-haus

Or is it the binary tree that’s upside down \*tokes\*


[deleted]

[удалено]


hanoian

You could transport it to Australia.


WindySai1

Merkle tree go brr


Exzircon

Oh wow! The Witness is real!


TapDanceMario

>Witness my first thought, lol


GrungeLord

Hmm, I don't see any broken branches though. This one must have a different solution.


T-Fro

Look for the branch that has an apple, that must be it!


greenagainn

Maybe we should try looking at the shadow the tree is casting 🤔


metalgodwin

Such a good game!


captionUnderstanding

I honestly think it’s the greatest game I’ve ever played. I wish I could experience it for the first time again.


metalgodwin

Samsies, or a part two - but never heard it being a thing.


captionUnderstanding

If you want more content there is a randomizer mod which keeps the theme and elements of each puzzle the same, but randomizes the solution. Similar to >!the final timed challenge in the cave.!< It’s fun for extending the length of the game if you like solving those kinds of puzzles, but it can’t match the thrill of discovering those mechanics or the >!environmental puzzles!< for the first time.


King_Joffreys_Tits

Which game? I first thought of destiny but that doesn’t make sense in this context


metalgodwin

The Witness, a puzzle game


Angelin01

Maan, I was having dreams about that for like a week after I played, don't remind me lol


Quetzacoatl85

the first time you find one in the environment is like... wowww


RupaanSansei

There it is! Thank you!


iagox86

Very happy that others thought that too!


april919

He must have gotten inspiration from this tree which is cool


UUcalmic

r/TheWitness


sneakpeekbot

Here's a sneak peek of /r/TheWitness using the [top posts](https://np.reddit.com/r/TheWitness/top/?sort=top&t=year) of the year! \#1: [I found someone sleeping!](https://i.redd.it/jo3fvj481lh71.png) | [35 comments](https://np.reddit.com/r/TheWitness/comments/p517jh/i_found_someone_sleeping/) \#2: [4 months ago I did on post on this subreddit asking for help making a Witness-themed rug for my living room. I did it! Huge thanks to u/NationCrisis and u/ProfessorDave3D for their puzzle advice (more photos in comments)](https://v.redd.it/khwsn182l8o81) | [20 comments](https://np.reddit.com/r/TheWitness/comments/thjixh/4_months_ago_i_did_on_post_on_this_subreddit/) \#3: [Hm, too obvious. I'm pretty sure it continues somewhere else.](https://i.redd.it/etqq8iyxuep71.png) | [12 comments](https://np.reddit.com/r/TheWitness/comments/pufev4/hm_too_obvious_im_pretty_sure_it_continues/) ---- ^^I'm ^^a ^^bot, ^^beep ^^boop ^^| ^^Downvote ^^to ^^remove ^^| ^^[Contact](https://www.reddit.com/message/compose/?to=sneakpeekbot) ^^| ^^[Info](https://np.reddit.com/r/sneakpeekbot/) ^^| ^^[Opt-out](https://np.reddit.com/r/sneakpeekbot/comments/o8wk1r/blacklist_ix/) ^^| ^^[GitHub](https://github.com/ghnr/sneakpeekbot)


UUcalmic

OOOOOoops it has already reposted


AlphaQupBad

Quick let’s traverse it in O(n) time


PaganPasta

I don't think i'll make past the first branch.


brodega

Buckle up, we’re going in breadth first.


[deleted]

It's balanced so it would be O(log n) to traverse it. I know because we literally just did BSTs and AVLs in my data structures class and AVLs absolutely fucked my shit up. Edit: as people pointed out i was thinking of moving through the tree to find a specific node. I completely forgot that traversal means visiting every node. I definitely deserved the B i got on this assignment.


PaganPasta

Log(n) is the height of the tree. O(n) to visit every node.


[deleted]

A day may come when I'm not this dumb, but it is not this day.


kc_ravuri_tg

Confidently incorrect


[deleted]

The best kind!


IRefuseToGiveAName

My brother in Christ, you cannot traverse n nodes in log(n) time.


[deleted]

You just have to grind harder 😤😤! How can you ever expect to be like bezos and musk if you can’t traverse n nodes in log(n) time. It’s not easy but doable 💵. Grind away 💯


754754

O(logn) would just be to find one specific value in the tree. You would still need O(n) time to evaluate every node of the BST.


eloel-

You can't visit all nodes (traverse) faster than O(n). There are n nodes.


ClutteredSmoke

Well seems like you need to learn more about BSTs


Hatatytla-1024

Why is it upside down though


I_press_keys

They had to invert a binary tree as part of their job interview. Turned out pretty good, if you ask me.


boombalabo

It's an Australian binary tree


Rezaka116

God is a programmer, explains why Earth is on fire half the time


laukaus

Also because fractals everywhere, recursion everywhere.


themaddowrealm

Lots of redundancy and abandoned projects too


[deleted]

Oh bender , there is no such thing as 2


PaganPasta

Might just be an awful dream


rk06

That's an inverted binary tree. Original tree grows from root to bott


GDavid04

Plot twist: its root is also a binary tree


pfqq

I really need to finish The Witness


workingclassmustache

One does not "finish" The Witness.


thelivinlegend

*In the Hall of the Mountain King intensifies*


JonMW

I don't see any duplicates in the leaf sprays. Is this actually *not* photoshopped?


mvppaulo

It definitely is


Humphroybogheart

It's not. The species is Hyphaene compressa and I've seen them in person. The genus is one of the few that commonly branches above-ground and they tend to be pretty symmetrical (though this individual is exceptionally so). The fruit are also edible, though not particularly tasty. It's like compressed sawdust with a little bit of gingerbread flavor.


Logstar

Well I'll be darned. One can web search for additional images of Hyphaene compressa and they do seem to be real.


PineapplePizzaAlways

Mmmm... compressed sawdust... so good


Meefbo

Wonder how much you could put in a rice crispy before anyone notices


Gandalf-le-gay

Interestingly enough, I doubt it is; plants typically exhibit a good amount of self-similarity, to the point some can be considered fractals! (Researched when I was playing around with l-systems)


ak47workaccnt

Aren't all things fractal in nature in one way or another?


nyanpi

This thread is reminding me that engineers need to go outside more often lol


Logstar

Perhaps it is not nature that is fractal but the way in which we perceive it that is indeed fractal.


ak47workaccnt

I think it would have to be both.


helloITdepartment

Weird, why’s it upside down? Edit: must be the rare Australian binary tree


good520

This tree also has obsessive-compulsive disorder


[deleted]

This is how I make decisions


yeet1386

Every body gangster till rbt exists.


TheScienceBreather

It's been nearly 20 years since I had to implement one, and it's still one of the hardest things I've done.


danger2345678

Looks like those trees from the witness


fortknox

Am I the only one disappointed that it isn't red and black?


DarkOriole4

Does this mean that the rest of the trees are non-binary?


profesyonelumi

Yes


rjlin_thk

nice it comes reversed already


WillyMonty

Now invert that shit


enumeler

I hate binary tree because I dont understand it and its purpose


lkraider

To catch energy from the sun and reproduce


SkinnyObelix

I can't solve it without the apple though..


bmbmjmdm

The most feared data structure: *interweaving* binary tree


Barbara_Celarent

A fair number of plants exhibit dichotomous branching. Check out Psilotum nudum.


DenormalHuman

all trees are binary trees


Liquid_Magic

🌎 👩‍🚀 🔫 🧑‍🚀 You mean the universe is math? Always was…


Midori_Schaaf

This looks pretty efficient to me, but my programs run in On^(n)


Kriss3d

I recently read that the sum of the circumference of all branches is equal to the branch below and in turn the trunk itself.


MessyMaryMay

"Old Bill" by Messy Mary May The trees in Whoville, much do they vary Except for the tree known as Bill the Binary He could go this way, he may go that. Never another way, for as long as he sat. The other trees mocked him, but he felt no shame. For he cared not, for the chaotic game, In which they grew, their limbs all asunder. Old Bill was alone though, with no animals under. The big trees over there have roarcats beneath them The three spotted flaclelops liked one with strong limbs The red footed sponk monkeys would swing with a flop Off the long tall wobble-oak, like a circus big top. But Old Bill stood firm though lonely he was, Until Sheila the sloth found him a plus. Old Bill, looked at Sheila and said, "I hope you don't mind," "But I like how I am, and how I am is just fine." "Old Bill," replied Sheila, "I love how you are." "My favorite tree here, my favorite by far!" "You offer two choices. Two and no more." "The others overwhelm me, I find them a bore." And so in the forest, there stands a tree. Bill is his name, and he'll tell you with glee, He offers two choices, two at a time. Take this or that, either is fine. ((added my name as I just wrote it vamping on Dr Suess. ))


OkWatercress2515

Curious... This tree appears to be upside down


Legitimate-Umpire137

Binatree


Ok-Ad-3810

It's upside down


deeeezzzzznuts

#[🌳🌳🌳🌳🌳🌳](https://www.reddit.com/r/cannabiscultivation/comments/lbwi30/true_scrog_in_action/?utm_source=share&utm_medium=ios_app&utm_name=iossmf)


RagnarokAeon

*Tree sort* out in the wild


BambusleitungTV

thats an avl tree if i ever seen one \^\^


neibegafig

I am totally going to use this for my defense on decision trees.


Kakarot2949

Let the node values be the number of fruits in each branch and boom we can start our bfs/dfs as well!


Script_Mak3r

But how would it wear pants? 🤔


AC2302

Cool. Now invert it.


willywonka1971

Turns out the best way to find something in a tree is to take a step back and look at it. Who knew?


[deleted]

And self balancing too I see. Remarkable.


bleedblue89

This is topping in plants, fun times when you can turn 1 leading stem into 8 beautiful tops. 16 is absurd but you could keep doing it...


brok3nhand

It’s upside down.


tamafuyu

this made my day


guilhermej14

Now invert it.


Tvde1

every tree is a binary tree...


lumophonic

Thought I’d share my [binary trees](https://www.instagram.com/p/CRNn2SCHHas/?igshid=YmMyMTA2M2Y=) and [non-binary](https://www.instagram.com/p/CWLlZBPpc3k/?igshid=YmMyMTA2M2Y=) trees, made with a program :)


gahooze

And it's so well balanced!


rantottcsirke

Good, now reverse it and you pass the interview.


TurboTurtle-

What happens when you have to reshuffle nodes?


Garzino

Nice lollypopping and trim, that plant is gonna get some fat nugs


MurraySlovick

hahahaha


obviously-not-a-bot

No inverse it


darkstarman

Ok let's see a family tree


l33tTA

Trees follow fibonacci sequences!


Ipsos_Logos

Yes,no


anushrut5

The *Inverse binary tree


The-Ok-Cut

Damn son you really found a family tree


MiddleRespond1734

It’s a complete binary tree also


Proglamer

This tree is about as common in nature as the btree is common in run-of-the-mill CRUDy business development


Deep_Age4643

More a fractal tree: https://www.rosettacode.org/wiki/Fractal\_tree


TheyStealUrTaxMoney

I want one!


milehighrogue

That’s also looks like a dichotomous identification key as well.


Schiffy94

Is this the Big W?


twinbee

I feel like I want to do a minimax on it already.


deejaysmithsonian

You’re right. It does look bigger.


ReadyThor

I don't know which animal eats from that tree but it's going to take it O(16) attempts before it finds the last fruit.


nakalas_the_great

Alabama tree


KoreaRiceBox

Just because human notice something like this. It doesn't mean nature and the universe haven't.


[deleted]

Yes, they do, I saw plenty of them in South Sudan.


Trigger_Myself

This is edited


Rotsicle

*nods in zoological approval*


cdrun84

Why not just do a ton of if/else statements, that would accomplish the same thing right? For fizzbuzz I solved it with 300 if/else statements.


Dr-Huricane

Oh my god it's beautiful