I think that she actually is not so much "sorting" them, but just following the most obvious pattern. The sorting is implicit.
My prof once demonstrated "analog sorting". He took a bunch of different-in-length sticks into a bundle, used the planar surface of the desk to align them on one side, making their differing lengths obvious.
So humans have an analog understanding of "sorted" patterns. The urge to neatly fit the boxes into each other to complete the pattern implicitly sorts them.
isNextLargest() does seem rather important. Maggie Sort has a level of randomness that most sorting algorithms don't have. Any idea on the Big-O category?
This is so, so impressive. I was having a similar discussion with a Programming Methodology professor at my university. He told me: "My 2 year old nephew programs better than you guys". We were discussing that before development of the brain, babies can perfectly solve simple sorting and mathematical algorithms.
Your daughter is really impressive, you should really give her more and more difficult geometrical problems so she can explore more algorithms!
she just needs to get the randomness out of the part where she chooses the piece to which she applies the isNextLargest()-function. She tried one even twice, that's gonna slow down the whole thing with larger sets :D
it is unbeliavable, how the kids are smart. You know nothing about life and physics and still you are able to sort things out. And you know what is awesome - that she knows what to do without telling her. She knows that she is supossed to do something with the boxes...it is simply amazing
On an after thought it seems to be a derivative of a bubble sort algorithm, but rather insuring the next item is in order, and then taking this new grouped bubble and shifting with accordance to the next test.
Regarding the random function: I found this a little frustrating. At times I was shouting at the screen: "NO NO NO!! CAN'T YOU SEE THAT'S NOWHERE NEAR THE NEXT REQUIRED SIZE!!!" Perhaps I get too involved in these things. YouTubers will be pleased to know that I have no plans to procreate.
What I thought was interesting is that she had an algorithm very clear in her head, but didn't yet use internal visualization to plan. Her execution depended entirely on physical experimentation. She's an empiricist!
Amazing. She could tell by feel. That's just incredible. I would guess she would just put one on top of another and disregard the order. I'm impressed... She should get a cookie or something =P
If you realized Moore's law for your sorting units, and doubled their count in a year and a half, you could parallelize the sort. I'll bet there would be much deadlock and race conditions in their algorithms though.
If this situation were repeated in a week's time, would she use a similar technique? What about a month? A year? I bet there's a PhD somewhere in there.. :)
Hi! Love how you give your child the initive! Yes! I'd like your promision if its possible to utilise this amazing child/awarness footage for a visual arts exhibition? The theme has to do with animal & human simularities based on respecting their Inner-sense/innocense! It would be an honour to educate others on your childs behalf! The footage would be extremely wonderful to share( Maggies perspective) with animal thinking process as to child motor skills etc.
Inventor of the web 6.0??
burnrider2001 1 month ago
She's so smart!
JavierRuiz82 2 months ago
Atchuuuuuuuuum!
denisrcs 2 months ago
Brute Forcing it like a baws xD
spechtbert 3 months ago
Oops. Logic error!
MrQuackism 5 months ago
0:25 bug in the program :))
ssss122344 5 months ago
Pretty smart to look at infants for learning algorithms.
thenerdery 6 months ago
Plz don't Post the Source code.. 'cause U'll be charged for nudity..!! >.>
BagosGiAr 6 months ago 8
process of elimination, nice logical start, some people don't even have that ability in their 30s
lifemetall 6 months ago
O(n^2) efficiency :D
Tron1992 7 months ago 5
Incredible. Love it.
stormlifter 8 months ago
This has been flagged as spam show
Get a good friendship with good girls naneedj.info
you are the only solution for bbw naneedj.info
malisha70 9 months ago
She should take an IQ test.
Jarulf89 10 months ago
Makes heapsort and quicksort look bad ;D
deathbyaccident 10 months ago 5
00:25 : epic fail :P
88Cortex 10 months ago 4
@88Cortex jajaj la wea pesá
macguionbajo 7 months ago
Comment removed
stupitxshyxguy 6 months ago
@88Cortex hahahaha true that
stupitxshyxguy 6 months ago
Haha great vid, your description is also so leet :P
88Cortex 10 months ago
Clever clever and beautiful little girl.
JoachimderZweite 11 months ago 2
clever
Crawletas 11 months ago
Adorbz and clever at the same time, she'll probably be a brilliant scientist or engineer :)
Gretgor666 11 months ago
I think that she actually is not so much "sorting" them, but just following the most obvious pattern. The sorting is implicit.
My prof once demonstrated "analog sorting". He took a bunch of different-in-length sticks into a bundle, used the planar surface of the desk to align them on one side, making their differing lengths obvious.
So humans have an analog understanding of "sorted" patterns. The urge to neatly fit the boxes into each other to complete the pattern implicitly sorts them.
proditor21 1 year ago
nice :)
aashudwivedi 1 year ago
This has been flagged as spam show
My name is Mike from LA Although there busizz4me.info
consuelahuttonc 1 year ago
wow, reminds me a lot of programming classes.
roB3rnd 1 year ago
Maggie is a genius :)
colinmaharaj 1 year ago
aannchhhuuuu.....
u need to do some exception handling too....
gizzmodo007 1 year ago 7
a programmer she will be!!
Cerealbh 1 year ago 4
She was pretty smart at 19 months!
msndokaralho 1 year ago
isNextLargest() does seem rather important. Maggie Sort has a level of randomness that most sorting algorithms don't have. Any idea on the Big-O category?
wwahammy 1 year ago 3
@wwahammy O(1). Maggie's lifespan is limited by a (hopefully big) constant.
LeTinctoire 1 year ago
@wwahammy
By having a level of randomness it could cause it to be an infitine loop, no?
NadavSkate 1 year ago
Bless, she's confused because there are no dot NET bindings.
jacksawild 1 year ago
So cute. She will be a programmer, no doubt :P
LordOfDragonMasters 1 year ago 2
the skills we have as adults and take for granted now took many hours of this as a child to figure out.
The human mind at work... fucking amazing.
The4LA2Baker0 1 year ago 5
sweet :D
Dice3000 1 year ago
looks like a variation on merge or heapsort to me
stubert311 1 year ago
nice :D
electronixtar 1 year ago
she's the tiger woods of sorting. that's amazing to watch her go to work. :)
directorwvp2 1 year ago 6
@directorwvp2 :
should she be offended? :D hehehe.. Anyway, she's amazing.. I love how our brains are analytical and logical, right from birth.. :)
pranavrules07 1 year ago
btw, the sneeze was adorable!! :P
pranavrules07 1 year ago 2
Aaaaw
phillipkp 1 year ago 3
Your daugher should study dynamic programming :D. So sweet, thanks for the video.
havuchllukek 1 year ago 4
So, its better than O(n!), right?
theawesomone 2 years ago 2
I'd wager it is still much faster then bubble sort.
contrist0 1 year ago 4
This is so, so impressive. I was having a similar discussion with a Programming Methodology professor at my university. He told me: "My 2 year old nephew programs better than you guys". We were discussing that before development of the brain, babies can perfectly solve simple sorting and mathematical algorithms.
Your daughter is really impressive, you should really give her more and more difficult geometrical problems so she can explore more algorithms!
abmirayo 2 years ago 4
I found myself cheering or shouting advice. Odd.
ghent180 2 years ago 9
Very adorable and brilliant.
lopside0 2 years ago
Didn't know that puzzle can be solve with binary logic!!
cinqotube 2 years ago 2
Shes very good
Silhouette93 2 years ago 2
I bet she's learned to sort them even quicker by now... good job Maggy!
thefjk 2 years ago 3
Runtime error at 0:43
minidan49 2 years ago 35
hahahaaa
bleedburple 2 years ago
Give her some lego. I think its the best thing for promoting spatial intelligence, especially at a young age.
CptDieHard 2 years ago
Very impressive little one....
genericme56 2 years ago
Gezz at that age I was using my blocks as hats.
poopyrainbow 2 years ago 2
:D that's brilliant for 19 month!!
Azuraken 2 years ago
I need to study this baby in my lab.
Excellent.
QuanSai 2 years ago 2
definitely going to be a smart one.
Bubblegoose9000 2 years ago 3
sweet
alegendeus 2 years ago
you can tell how she is confident in the correct answer at 0:55, since she has tried all of the possible comparisons by then.
quizface 2 years ago 2
Hax!
quirty1 2 years ago 3
ahahaha xD u made me lol :D
GSEFCUTD 2 years ago
WTF??????? wish my parents did this with me when i was growing up
navajoboy006 2 years ago 3
Can you post the source code?
shineyumbreon27 2 years ago 117
smart kid.
FlamingPanda01 2 years ago
she's very cute! And clever indeed, did not repeat any comparison!
dericofilho 2 years ago
0:22 and 0:30
nemesisnick66 2 years ago
Comment removed
CookWithNick 2 years ago
rofl she's more efficient than most of my codes.
msndokaralho 2 years ago 5
very clever girl indeed :)
psifon 2 years ago
LOL
betabrain 2 years ago
Aaaah, she's the cutest little girl I've seen.
fingerprint211b 2 years ago
I think it only runs in O(n²) ... but who else has invented a new sort algorithm with 19 months :D
mario4711 2 years ago
hahahah... That was so adorable!
MutantBamHammer 2 years ago
hahha...luved how she sneezed in the process
rutali83 2 years ago 4
Good job Maggie!
cinemapop100 2 years ago
AWESOME.
chewywater 2 years ago
@ Maggie: "Bless you."
Wow, this one's smart...
I had one of these for a minute but mine was not so sharp and didn't last long...couldn't even feed itself.
uglybutstupid 2 years ago
It's not just stacking but ordering at such age!
She is so smart... congratulations!!!
maoriveros 2 years ago
she just needs to get the randomness out of the part where she chooses the piece to which she applies the isNextLargest()-function. She tried one even twice, that's gonna slow down the whole thing with larger sets :D
wassonst 2 years ago 6
I had a toddler once. It encountered an infinite loop. :(
onlyontuesdays99 2 years ago 58
You just have to hit Ctrl-C :D
hectots 2 years ago 4
I hope that when I have a kid, he/she can do it in O(n.log n) LOL
Smart and cute girl! Congratulations for you!
felipernb 2 years ago 6
wow, that's one smart girl you have! incredible.
and it almost conforms perfectly to an O(n^2) time! haha.
CaptainMike90 2 years ago 2
Good job maggie!!! ha ha .. and a sneez.
MrUnemployedYouth 2 years ago
That's fantastic! Amazing how algorithmically she works! :D
ukmacedavid 2 years ago
is this normal for her age?
i dont think so
Ab3antar3 2 years ago
programmers daughter
grinick 2 years ago 7
Awesome! I am looking forward to my youngster being old enough for stacking blocks.. Nearly a year away at the moment though...
dannystaple1 2 years ago
It looks the idea is simply "find the box that fits tightly".
igorsucupira 2 years ago
it is unbeliavable, how the kids are smart. You know nothing about life and physics and still you are able to sort things out. And you know what is awesome - that she knows what to do without telling her. She knows that she is supossed to do something with the boxes...it is simply amazing
boudeca 2 years ago
Cool watching her little mind work. You can really see she has a plan. Smart kid! CUTE TOO!
elucify 2 years ago
this kid is a genius
littledaemon 2 years ago
she so adorable...putting those little boxes into big boxes! how cute
Pillowmat 2 years ago 2
ACHOOOMMMMNNN!!
intercactus 2 years ago 8
could write a program the same as this.
Actually no I couldn't
*sad face*
I could try, but fail, even though I can understand the code.
I just have no patience...
htmldude 2 years ago
absolutely hypnotic. a fascinating early human mind.
sweatpants1212 2 years ago
gesundheit!
entropede 2 years ago
America needs more parents like these ones. That is one smart little girl!
Kman7607 2 years ago 9
yes, yes indeed
shocktechsfl 2 years ago
haha nicee, grtz ;)!
rocksegolo 2 years ago
hahaha, that's hilarious! I've actually worked with programmers who've used the same algorithm ;)
What a clever little girl!!
SkillySkilpad 2 years ago
*achoo* Aww!!!
celluj34 2 years ago
She seems to repeat comparisons unnecessarily. For that matter, there's no need to use a comparison sort on a data set like this. Flunk.
gnachman1 2 years ago 4
You are just jealous she is getting all the attention, lol.
jaggo84 2 years ago
WOW,, she is so smart
PrincessByNature 2 years ago
This is EXACTLY how we should grow and socialise our children. Congrats mom and dad.
Vorelchi 2 years ago 4
Very nice Maggie!
matlima 2 years ago
Got there in the end!
Very Sweet
andrewjohnsimpson 2 years ago
hahahaha
billyrohnsenreturns 2 years ago
Good Job, Maggie!
Llanddcairfyn 2 years ago
hahaha!!! isNextLargest() function.
That kills me.
fizzix1 2 years ago
Hahahah, this is fantastic. I love the human mind. Kids are so fun.
nightpotato 2 years ago
Holy shit, are you sure your daughter is only 19 moths old? :O
apopheniacMCMLXXXIX 2 years ago
good job Maggi :)
lawanaaa 2 years ago
I see a PhD in your future! Good Job!
exclamation3mark 2 years ago
Great job
philipscoggins 2 years ago
LOL nice, I detect nearest neighbor volume sort. I can imagine next video will use bubble-sort algorithm, while blowing bubbles of course.
petemayo 2 years ago
Has any research been done to find out the efficiency of this algorithm?
RayorOfDominaria 2 years ago 3
some one please explain the significance in this. and the alg.
treehuggingwarcraf 2 years ago
bless you !! loool
Swamp666heaD 2 years ago
Wonderful. Shes beautiful e very smart.
vitormsales 2 years ago
WOW, cute, lovely!!! Congratulations.
betadefelippe 2 years ago
she´s so cute!!!! amazing!
shikida 2 years ago
she practically mimicked an actual sorting algorithm.
Computer scientist in the making!
nessrapp 2 years ago 2
She understands the fit, probably not the size.
guywms 2 years ago
wow that's pretty amazing, she's going to be a genius when she grows up
ayrahcavaruas 2 years ago
Boxes sorted...now what do I do?
rb6elite 2 years ago
Aww, that's both impressive and cute.
@emmbor87, I agree with John - unless you're a specialist in this area you should keep your uninformed comments to yourself.
pault107 2 years ago
source code plesh,
sGnaiml3ss 2 years ago
Let's see.. By ignoring constants, we should have:
- Bubble sort algorithm: n^2 => ~64 steps (avg)
- Quick sort algorithm: n log n => ~24 steps (avg)
- Optimal algorithm: n-1 => 7 steps
- Maggie sort algorithm: took 16 steps only
I'd say this is a surprisingly good algorithm for a child at this age! Good job Maggie ;)
Btw, did anyone notice her cute sneeze @ 0:41?
IamTheWeakest 2 years ago 6
For fun, I had her do this again now that she is 2.5 years old. Order(n+1) now. Not truly sorting anymore. She has this problem cached to disk.
johnzwarich 2 years ago
It geniunely makes me happy that you were able to reproduce.
AnubisCraig 2 years ago 2
Maybe you should gradually introduce more complex problems for her to solve.
I suggest that she starts playing with 15-puzzle and then towers of hanoi and after that minesweeper and later pehaps, rubik's cube.
You never know, but your child could be a computer science prodigy. I think Donald Knuth is proud of her already.
IamTheWeakest 2 years ago 3
@IamTheWeakest I wish YT had a "favorite comment" option, so I could favorite this comment of yours.
Gretgor666 11 months ago
That sneeze was an IRQ.
xuanyou 2 years ago 4
We can then assume sneezing shorten the solution.
import nose
kefsound 2 years ago
All kidding aside (eventhough the comments were among the greatest a Youtube video ever had)....That is amazing.
Magnasumi 2 years ago
On an after thought it seems to be a derivative of a bubble sort algorithm, but rather insuring the next item is in order, and then taking this new grouped bubble and shifting with accordance to the next test.
xstyr 2 years ago
It appears she is working with two stacks.
One stack containing the pre-randomized data
and another sorted order stack using the first in last out principle.
xstyr 2 years ago
Regarding the random function: I found this a little frustrating. At times I was shouting at the screen: "NO NO NO!! CAN'T YOU SEE THAT'S NOWHERE NEAR THE NEXT REQUIRED SIZE!!!" Perhaps I get too involved in these things. YouTubers will be pleased to know that I have no plans to procreate.
grundgemonster 2 years ago 6
What I thought was interesting is that she had an algorithm very clear in her head, but didn't yet use internal visualization to plan. Her execution depended entirely on physical experimentation. She's an empiricist!
elucify 2 years ago 7
XD Very true.
Amazing. She could tell by feel. That's just incredible. I would guess she would just put one on top of another and disregard the order. I'm impressed... She should get a cookie or something =P
Featheredhat 2 years ago
where i can download the source code for this algorithm? :D
1475551 2 years ago 6
If you realized Moore's law for your sorting units, and doubled their count in a year and a half, you could parallelize the sort. I'll bet there would be much deadlock and race conditions in their algorithms though.
StarPlucker 2 years ago
If this situation were repeated in a week's time, would she use a similar technique? What about a month? A year? I bet there's a PhD somewhere in there.. :)
bigbold2 2 years ago
To be honest, she has lost interest in the blocks. It's a lot harder to keep the attention of a 2.5 year old compared to a 1.5 year old.
johnzwarich 2 years ago
Ah kids, both the bane and inspiration for wannabe psychologists everywhere.. :)
bigbold2 2 years ago
aww
jonragnarsson 2 years ago
She's clearly using a spacial sort search. Future comp-sci major?
Fr1p 2 years ago
cute!
poppinfresh 2 years ago
It seems based on a random function, I'd say best case: O(n), worst case: O(infinity), average probabely around O(n^2).
rutgerprins 2 years ago
Good job Maggie!
spyseetuna 2 years ago
so its that nlogn ? haha loved the video?
chanman 3 years ago
Hi! Love how you give your child the initive! Yes! I'd like your promision if its possible to utilise this amazing child/awarness footage for a visual arts exhibition? The theme has to do with animal & human simularities based on respecting their Inner-sense/innocense! It would be an honour to educate others on your childs behalf! The footage would be extremely wonderful to share( Maggies perspective) with animal thinking process as to child motor skills etc.
mullerfree 1 year ago
@mullerfree Sure thing. Keep me posted.
jjzwari 1 year ago