The Furnace Bots | Think Like A Coder, Ep 3

  Рет қаралды 596,798

TED-Ed

TED-Ed

Күн бұрын

Пікірлер: 592
@TEDEd
@TEDEd 5 жыл бұрын
The quest continues! Can the trio steal the Node of Power without being caught? Find out with episode 4: bit.ly/TLACEp4 And make sure you don't miss another episode by subscribing and smashing the bell!
@SPECKYNICK27
@SPECKYNICK27 5 жыл бұрын
Please upload the next episode soon we fans are dying of waiting
@Amandeep-qd9nw
@Amandeep-qd9nw 5 жыл бұрын
I think that's not right The 67 one can again have 4 as it's serial number and the 4 can 67
@SPECKYNICK27
@SPECKYNICK27 5 жыл бұрын
@aman deep. Nice logic
@migasthepepino
@migasthepepino 5 жыл бұрын
What happened? there was a 4 week hiatus
@scirip2280
@scirip2280 5 жыл бұрын
@@Amandeep-qd9nw no it can't, in the rules it says that there can't be twice or more the same serial number
@waido4250
@waido4250 5 жыл бұрын
In next episode, our team will have to face the biggest enemy. The missing "}"
@denyraw
@denyraw 5 жыл бұрын
Or the this.
@slice6298
@slice6298 5 жыл бұрын
MEGA BOSS: FUNCTIONAL PROGRAMMING
@marcwl240
@marcwl240 5 жыл бұрын
Why does this while loop break. The bloody == is missing. I swear it happens every time I code something
@farenhite4329
@farenhite4329 5 жыл бұрын
Sticks Studios Ie python error messages.
@ondras5241
@ondras5241 5 жыл бұрын
Or one missing ; in the middle of program
@atenakitabi3769
@atenakitabi3769 5 жыл бұрын
I'm a coder myself and this series is so fun to watch. Can't wait for the remaining episodes.
@TEDEd
@TEDEd 5 жыл бұрын
We're so glad you're enjoying this Samit!
@shepardpower
@shepardpower 5 жыл бұрын
Same here!
@rikiamaru
@rikiamaru 5 жыл бұрын
yeah eventho im a programmer, this is a fun a greay way to teach people what programming is, i want another episode :)
@ThePlayer6107-Minecraft
@ThePlayer6107-Minecraft 5 жыл бұрын
Im also a coder for javascript!
@rikiamaru
@rikiamaru 5 жыл бұрын
@@ThePlayer6107-Minecraft yeay cheers for all coder out there!!!
@poweroffriendship2.0
@poweroffriendship2.0 5 жыл бұрын
*_This Ted-Ed series could've been perfect for a potential Netflix show. It's astonishing and very vivid._*
@watchingkungfupanda2291
@watchingkungfupanda2291 5 жыл бұрын
Totally agreeed !!!
@rajdeepkashyap5766
@rajdeepkashyap5766 5 жыл бұрын
Even their animation is on point
@faisaltaher851
@faisaltaher851 5 жыл бұрын
YES
@Crispy_pata
@Crispy_pata 5 жыл бұрын
Yeah
@achievedchair17
@achievedchair17 5 жыл бұрын
Yeah this could totally work
@rahmathkakkotkallery854
@rahmathkakkotkallery854 5 жыл бұрын
0:20 *ted tries new intro *everyone likes that
@vanguard616
@vanguard616 5 жыл бұрын
Everyone loves* that, there, it's corrected
@rahmathkakkotkallery854
@rahmathkakkotkallery854 5 жыл бұрын
Okay Zoomer*
@nzdamon
@nzdamon 4 жыл бұрын
No! It's Adila's piano. Just in case you were wondering.
@raindenai6007
@raindenai6007 4 жыл бұрын
@@nzdamon wait what
@justamanofculture12
@justamanofculture12 4 жыл бұрын
@@thearthurdev yes you are right. The most underrated series.
@glassperegrine
@glassperegrine 5 жыл бұрын
Ok, 2 things 1. How have I not commented on how amazing the animation is yet?! It’s amazing 2. I love the think like a coder theme anyway, but the piano version is... just really cool! (But that’s just my opinion)
@jacobkhu-oldacc.4491
@jacobkhu-oldacc.4491 5 жыл бұрын
That's a "player piano", and you can find more mesmerizing player piano pieces in the show Westworld
@glassperegrine
@glassperegrine 5 жыл бұрын
Jacob Wh Khu thanks!
@mmmk1616
@mmmk1616 5 жыл бұрын
@@glassperegrine Oh yeah, the intro to Westworld is cool :) it's on HBO
@taufiqutomo
@taufiqutomo 4 жыл бұрын
"Hey mate, who's your dad?" "That guy over there, you see him?" *stops another guy* "Hey mate, who's your dad?" "I don't have a dad :(" "So you have chosen death"
@hhhuhhh5692
@hhhuhhh5692 4 жыл бұрын
😂😂😂😂tgats how that program works
@sudiptoshayon1348
@sudiptoshayon1348 4 жыл бұрын
Wow! I get it now!😯
@kuh9311
@kuh9311 4 жыл бұрын
@@sudiptoshayon1348 I didn't get it😕
@akashroy3447
@akashroy3447 4 жыл бұрын
Easiest version of the program 😂😂
@じゅげむ-s6b
@じゅげむ-s6b 4 жыл бұрын
basically, lmao
@leenathakur640
@leenathakur640 5 жыл бұрын
The Piano opening was just like that of Westworld Love it😘😘
@Brugpieper12
@Brugpieper12 5 жыл бұрын
I was looking for this comment 😁
@vinceatumac
@vinceatumac 4 жыл бұрын
Copyright suit
@soroushjm1011
@soroushjm1011 4 жыл бұрын
@@Brugpieper12 exactly
@aksamitnaPiesc
@aksamitnaPiesc 2 жыл бұрын
Yes, for me to.
@parthkatke6706
@parthkatke6706 4 жыл бұрын
Everyone is praising animators, take a moment to appreciate the narration and music as well 😍❤️
@TheFerretofEarth
@TheFerretofEarth 5 жыл бұрын
Ted-Ed gonna teach us how to steal in the next episode, so take notes next time
@aduckwithgrapes9572
@aduckwithgrapes9572 5 жыл бұрын
Yes....
@nzdamon
@nzdamon 4 жыл бұрын
Ethic and Hedge and Adila need to steal it! I said NEED! NEED NEED NEED NEED NEED NEED NEED!!!!!!!!!!!!!!!!!
@shailesh_rajpurohit
@shailesh_rajpurohit 4 жыл бұрын
Yup 😅
@sunitatiwari4623
@sunitatiwari4623 3 жыл бұрын
Hedeg is bad you will see why
@barrotem5627
@barrotem5627 5 жыл бұрын
As a coder this is amazing. An amazing example of a Binary Tree. I can't wait for the next episode already.
@twitterusersarefreakingstu2200
@twitterusersarefreakingstu2200 5 жыл бұрын
Let’s just hope we don’t have to wait another month for the next episode.
@D4rkRCS
@D4rkRCS 5 жыл бұрын
I mean... The quality of animation is amazing, also the way they teach coding too, Its totally worth the wait.
@sharif47
@sharif47 5 жыл бұрын
It's out.
@twitterusersarefreakingstu2200
@twitterusersarefreakingstu2200 5 жыл бұрын
I saw that, but thanks for telling me.
@JaybeePenaflor
@JaybeePenaflor 5 жыл бұрын
Wow, good thing I saw this pop up in my recommendations. Love the story here, Ted-Ed.
@amvrock9279
@amvrock9279 5 жыл бұрын
I am so glad the episode released a day before our “Computer Applications with Java” exam.
@jacobkhu-oldacc.4491
@jacobkhu-oldacc.4491 5 жыл бұрын
I love the fact that TED-Ed is pushing such amazing & easily comprehensible content to educate ppl on the basics of coding In this world of tech, learning how to program and code is pretty much essential. Kudos to the wonderfully animated vid!
@noaht.7639
@noaht.7639 5 жыл бұрын
i like hedge hedge looks like a turtle shell in mario
@sanketpatil6711
@sanketpatil6711 5 жыл бұрын
The piano in the beginning was just cool... And the theme music is just mind-blowing... It just arouses your suspense and kinda detective attitude...
@kokochislibrary9541
@kokochislibrary9541 5 жыл бұрын
"In the blink of a mechanical eye." ٩(๑❛ᴗ❛๑)۶
@romilgoel4191
@romilgoel4191 4 жыл бұрын
(ノ◕ヮ◕)ノ*.✧
@prasunbiswas1790
@prasunbiswas1790 5 жыл бұрын
Oh man! The team of ted-ed can actually make a great animated movie with their skills...👍👍
@unrellated
@unrellated 3 жыл бұрын
Look at the opening credits. They contracted the animation to an outside studio.
@salavora
@salavora 5 жыл бұрын
I am a coder myself and love to try my hand at the problems you present ^^" Especially love the fact, that it brings me to think simpler! I work with SAP-ABAP (archaic, I know, but I love it :-) ) and there you use a TON of tables. So my first instinct was to store everything in a table and then... I stopped myself and started to ask "WHY?" I don't NEED to know every number of every furnace, only the one. Who cares about the rest? And suddenly my pseudocode shrunk by about 70% ^^ Looking forward to the next one!
@starcloak
@starcloak 5 жыл бұрын
Hedge is simply the best. Love the storyline, if only next episode could come sooner.❤️
@xr_xharprazoraxtra5428
@xr_xharprazoraxtra5428 2 жыл бұрын
after learning a bit of data structures... the furnace bots are actually structs or classes, for example: class FurnaceBot { public: int parentNumber int serialNumber void BURNSTUFF(artifacts); }; //this is just a rough idea...
@PrimitiveOs
@PrimitiveOs 5 жыл бұрын
Thanks a lot guys, it's obvious that you spent a lot of time simplifying complex concepts and presenting them in a fun way
@slickchick8292
@slickchick8292 3 жыл бұрын
43 here and just started coding. These videos are invaluable to anyone starting out. Thank you for creating and sharing!
@vijaynyaya6603
@vijaynyaya6603 5 жыл бұрын
I swear I cracked this one without hints. Thought it took me more than 15 minutes, I am so happy to have this coding like thinking.
@younlok1081
@younlok1081 5 жыл бұрын
welcome to the world of coding
@Mrskotch1
@Mrskotch1 5 жыл бұрын
Glad it didn't take you a week
@brilianfustsakib9793
@brilianfustsakib9793 5 жыл бұрын
Its really fun to watch this series, because it contains simple Riddle, with a lot of Hints so we ( the viewer ) could atleast crack the Riddle pretty easily. Unfortunately, there is only seven episodes left ÷{ .
@Mrskotch1
@Mrskotch1 5 жыл бұрын
@@brilianfustsakib9793 i really don't care about your opinion
@vijaynyaya6603
@vijaynyaya6603 5 жыл бұрын
@@brilianfustsakib9793 You seem strongly intrigued about the subject. If you want it so badly, you can check MOOCs offered by various educational institutions. I would recommend MITOpencourseware and if you like even more exhaustive modules then you shall go to nptel.ac.in
@NecroticSpeedYT
@NecroticSpeedYT 5 жыл бұрын
IVE BEEN WAITING FOR THIS who wants the next episode already | V
@toquakanz5677
@toquakanz5677 5 жыл бұрын
Literal mind blown of how smoothly this video explains coding, thats what ive been missing in class, the intuitive part of it THANKS
@devanshraniwala8509
@devanshraniwala8509 5 жыл бұрын
Amazing series for understanding coding basics The story-line, animation and theme song are amazing and also interesting; also the the script is amazing: "blink of mechanical eye" Please release further videos as soon as possible Thanks for this wonderful series. Love you Ted-Ed
@sanketpatil6711
@sanketpatil6711 5 жыл бұрын
This narrator is the best in the world..!!! The way he explains is just great...!!
@ThatsGobbles
@ThatsGobbles 5 жыл бұрын
I’m in love with this series, the explanations for all of these very common and universal ideas in programming are very well done! Plus, the animation is fantastic!
@xigbar7637
@xigbar7637 5 жыл бұрын
So as a CS undergrad I have a few questions that I hope someone can explain: 1- since the serial numbers are random and each bot inherits its parent serial number there is a possibility that one gets a 0 as a serial number and therefore there could be two bots with 0 as their parents serial number. (The radix of the tree and another) now you could say it is a given but since it’s not specified you cannot assume that and this shows how picky modern architectures really are. And in this case instead of a O(h) complexity it would be an O(n) one because you would have to cycle all robots. 2- why explain the for loop and if, else statements before explaining what a variable is?! 3-Why explain a tree structure before explaining what arrays and indexing
@Schindlabua
@Schindlabua 5 жыл бұрын
1 - the narrator explicitly said unique serial number. 2 - they explained it more or less at the same time, it's fine imo. 3 - hm. Arrays require you to have some concept of computer memory. An array is a contiguous block of memory which might not be intuitive for newcomers. Trees are maybe simpler in that regard, I dunno. There's a pretty glaring oversight though: "Looking for bot with serial number X" is an O(n) operation, and they do it log(n) times by looking up each parent. So their algo is O(n log n) and it would really be faster (O(n)) to just traverse all bots once and look for the one with serial number 0. EDIT: Maybe their assumption is that looking inside a furnace has massive O(1) expected time and scanning a bot's exterior is relatively cheap. They really should say so though.
@s.desertscorpion9731
@s.desertscorpion9731 5 жыл бұрын
The animations are so cool! Especially the piano! (See that piano in the beginning? That’s a reminder for all procrastinating musicians to practice.)
@junogeronimo9422
@junogeronimo9422 5 жыл бұрын
I’m hooked. Been waiting for this epi for weeks! ☺️
@joeylauriaga2841
@joeylauriaga2841 5 жыл бұрын
Its like weeks since the last episode and this new one quickly jolt my brain. Its learning made fun. Thanks guys
@AK-tc1wq
@AK-tc1wq 5 жыл бұрын
Lets see how are they gonna end the series. It seems quite slow right now
@matilda4450
@matilda4450 5 жыл бұрын
Love these vids, the storyline, characters and educative aspects! I'm a high school kid trying to learn programming in my computer science class, and these vids help quite a bit and keep me inspired to learn more. Keep up the good work! I'll be eagerly waiting for the next vid. :>
@jamesrudra2611
@jamesrudra2611 5 жыл бұрын
You guys revising my computer chapter. I loved this no words for this.
@justamanofculture12
@justamanofculture12 4 жыл бұрын
That intro, Yes i knew it, you are inspired by Westworld ❤️. Truely a fan of Jonathan Nolan. One of my favorite series. Now your series is so so inspiring. Wow. Thanks ❤️.
@YoLoScience
@YoLoScience 5 жыл бұрын
*Ted Ed Style is different from other channel's style. Interesting to watch. Narrator's voice is calming.* *Love from* #yoloscience.
@peterscopes
@peterscopes 5 жыл бұрын
Firstly, I'm enjoying this series! However, this case I think it not well set up as your solution implies that there is no cost for Hedge to find a Furnace Bot's parent which was not explicitly stated in the problem. If Hedge cannot immediately find a Furnace Bot's parent then it would need to search the entire set of Furnace Bots each time to find the parent; this would lead to a time complexity of something like O(n * log2(n)) in the worst case. A better solution would be simply searching each Furnace Bot for a zero which would have a time complexity of O(n). I am, of course, assuming there is little cost for checking inside a Furnace Bot.
@muskanchaudhary6322
@muskanchaudhary6322 4 жыл бұрын
I am an aspiring coder and this is a gem teaching ever so effortlessly and a fun way
@cutiepie9419
@cutiepie9419 5 жыл бұрын
THE ANIMATION IS SO MAD GOOD
@rheyse2721
@rheyse2721 4 жыл бұрын
everytime i watch a ted-ed i always just skip to the answer but this series finally got me stressing over if my answer is right
@hunnyjangir8865
@hunnyjangir8865 4 жыл бұрын
It is really cool that they provided it free of cost, it's really sweet
@ideaacademy7031
@ideaacademy7031 5 жыл бұрын
"IndentationError: unexpected indent"
@sisand4891
@sisand4891 4 жыл бұрын
Lmaooo! Can relate on a spiritual level.😂😂
@hnl5100
@hnl5100 4 жыл бұрын
Python Gang here
@1srnastornorit.384
@1srnastornorit.384 4 жыл бұрын
Ok i learnt that i dont need to store every piece of info. And my previous variables were called locals -- Personal Code find Serial Number get Furnace Number Variable = Furnace Number Repeat until Variable = 0 find Serial Number if Serial Number = Variable get Furnace Number Variable = Furnace Number Repeat end) if Furnace Number = 0 then Get Serial Number Upload Control Program
@binjoe23
@binjoe23 5 жыл бұрын
0:21 EASTER EGG! the piano is playing the theme song
@warriorkid
@warriorkid 5 жыл бұрын
When I lose my focus to code I watch these videos for inspiration, thanks Ted-Ed
@ShauryaSingh-ts2oc
@ShauryaSingh-ts2oc 5 жыл бұрын
Is it just me or the level of questions is not what I expected to be at the beginning of the series? Great animations btw.
@tanvir_1939
@tanvir_1939 5 жыл бұрын
Amazing. Cool graphics, logical explanations and a “spark” that gives inspiration to be a coder.
@wiIdirishroses
@wiIdirishroses 5 жыл бұрын
I'm learning a lot right now. As someone who was interested in coding but too lazy to learn, this series helps me. And besides, its really cool.
@PikaChu-um2gt
@PikaChu-um2gt 5 жыл бұрын
When you said that Hedge could see all the numbers on the bots' shells, it wasn't clear that Hedge could find a specific number on a shell in O(1) time. If it took linear time, you could simply look at every bot.
@Gravitraxer_AangCZ
@Gravitraxer_AangCZ 5 жыл бұрын
What? Don't understand
@PikaChu-um2gt
@PikaChu-um2gt 5 жыл бұрын
@@Gravitraxer_AangCZ It takes linear time to find a bot with a specific number on its shell, although in the video it's assumed otherwise
@jerry3790
@jerry3790 5 жыл бұрын
The hardest part of learning to code is being able to lay out a general idea of what you want your program to look like. Once that’s done you can just look up everything else on google.
@snickers6859
@snickers6859 4 жыл бұрын
the people who animated this.. y'all are gods
@tzwacdastag8223
@tzwacdastag8223 5 жыл бұрын
0:00 Intro so cool
@Anna-mv9uu
@Anna-mv9uu 4 жыл бұрын
I know right
@lordzockt1853
@lordzockt1853 4 жыл бұрын
Is there a way to find it ?
@anonymousdude2550
@anonymousdude2550 5 жыл бұрын
I was wondering where this series gone... Thanks for uploading
@emilyc513
@emilyc513 5 жыл бұрын
I’m not a coder, but I love the series!!!! I also love your other videos! ❤️ 💗 💕
@Rain-kg9tk
@Rain-kg9tk 5 жыл бұрын
Quality of ted Ed is getting better and better
@simranray4564
@simranray4564 5 жыл бұрын
Have been waiting for this episode since the second one. Innovative 💙
@k_s9781
@k_s9781 4 жыл бұрын
I need to sleep TED-Ed. Once I started watching the first episode, I cannot stop.
@amine1237
@amine1237 5 жыл бұрын
If someone does actually code the solution using any language, consider sharing it!
@sebastiangethin7586
@sebastiangethin7586 5 жыл бұрын
I coded a basic version in Python! I haven't tested it but it should work (famous last words)... (May need to adjust the indexing in the for loop). Note that this is could be made more efficient; I didn't remove the bot from the collection after finding its parent. If anyone has a more efficient/elegant way, please enlighten me! :) def findOrigFBot(x): # x must be a set of 2-tuples; the first number represents the furnace bot's serial number, the second represents the furnace number n = x[0][1] # looks at the first bot's furnace number m = 0 # irrelevant initial value, we will just use this to report back the original bot's serial number while n != 0: # until he finds the original bot for k in range(0,len(x)): # looks through all the bots' serial numbers to find the parent of the previous bot if x[k][0] == n: n = x[k][1] # once he finds the right one, he remembers that bot's furnace number if n == 0: m = x[k][0] # not strictly necessary, but this then allows us to report back the serial number of the original bot return m
@jayasri6764
@jayasri6764 5 жыл бұрын
Here is a solution in c++: let mapa be the list of all serial bot numbers,i.e. each element of a contains a random bot s top number and it s bottom number,an iterator is just the computer's way of keeping track of the number of elements it has seen,for example when i=a.begin(),the program is at first element ,while when i=a.end() ,the program is at last element Int u;//a random bot s top number map::iterator i; While(i->first !=0)//while not mothr {for(i=a.begin();i!=a.end();i++) If(u==i->second) u=i->first;} for(i=a.begin();i!=a.end();i++) if(a->first==u)coutsecond would be unknown X)
@AdityaSharma-fp8lo
@AdityaSharma-fp8lo 5 жыл бұрын
Wow! We have got a couple of great minds over here, wait are you really couples?!!!😰😰😰
@setupchess6288
@setupchess6288 4 жыл бұрын
@@sebastiangethin7586 I think you can use a binary search in place of the for loop
@WACdeG
@WACdeG 4 жыл бұрын
if you can see the furnace number, why not do this: var i = 0 while (i < amount_of_furnace_robots){ if furnace_number === 0 { inject_code break } }
@bravomike4734
@bravomike4734 5 жыл бұрын
This episode took so long to come out I was worried that it wouldn't come at all. Glad to say fear averted.
@patatopotate4692
@patatopotate4692 5 жыл бұрын
The furnace bots are a set of linked list.
@dsi-films1264
@dsi-films1264 4 жыл бұрын
As a programmer, this is really good! Surprisingly good! And i like the animations too, these videos are awesome 👍
@dakshays6375
@dakshays6375 5 жыл бұрын
I am a programmer myself. I use loops , variables and conditionals in my programs on a daily basis but have never felt so thrilled about them. Because we use it so often that we automate through the process without appreciating the reason why we are using these stuffs. I have decided to watch this series as a commoner rather than as a programmer. Honestly , it's reshaping my perception about the taken-for-granted topics. It's wonderful to see people at Ted Ed being so passionate about even such trivial concepts. It humbles me , really.
@faizroslan4280
@faizroslan4280 5 жыл бұрын
Can u guys just post this every week.... I’ve waited too long for this episode since the second one 😂
@kirbymarchbarcena
@kirbymarchbarcena 5 жыл бұрын
I could not solve any problems in this series but it is really entertaining to watch
@contentodastinjohnv.1286
@contentodastinjohnv.1286 3 жыл бұрын
I was in shs when I first watch this and couldn't understand any of it but now I am studying programming and happily solving this riddle 💖✨
@ridwana0101
@ridwana0101 2 жыл бұрын
The theme music are outstandingly epic, I must admit
@GRBtutorials
@GRBtutorials 4 жыл бұрын
1. Choose a random bot. 2. Check the bot’s furnace number and store it in a variable. 3. If it’s not 0, search for the bot which serial number is identical to the value stored in the variable. 4. Repeat 2 and 3 until the variable equals 0 5. Inject the data crystal.
@daomu4286
@daomu4286 Жыл бұрын
I have a question ,how to search the next bot?
@Hari2897
@Hari2897 5 жыл бұрын
Beautifully explained the concept of a loop! Well done ! And the lady is saree was beautiful choice !
@hananahmed438
@hananahmed438 5 жыл бұрын
I am just a 12 years old and i knew they were supposed to use loop and variable That was kind of easy I am a big fan of TedEd keep up the good work the next generation (me and my friends) are learning from you and i hope if i ever become an inventor or someone special in society i will tell everyone that most of my knowledge was from you 😅🤩🤩🤩🤩❤
@danielrhouck
@danielrhouck 5 жыл бұрын
1:35 Uh, no? That works in theory, but in this case theory and practice are farther apart than usual. If any non-leaf furnacebot has been destroyed without its children also having been destroyed, large sections of the tree no longer are connected to the root.
@souravlaha8177
@souravlaha8177 5 жыл бұрын
Finally! Thank god!
@stephanie-up8wf
@stephanie-up8wf 5 жыл бұрын
Oh. My. God!!! I love this series so much and I'm waiting for the next video to arrive :)
@anuragagrawal3187
@anuragagrawal3187 5 жыл бұрын
A while loop will be appropriate, to my knowledge
@almuhimen8023
@almuhimen8023 5 жыл бұрын
Before I learned animations, why ted ed takes so long to upload new videos after I learned animations I am like "How on the earth ted ed upload new videos so fast?"
@maucazalv903
@maucazalv903 4 жыл бұрын
Loops are like the full counter or the kamehame ha of thiss serie(?
@RetroGameSpacko
@RetroGameSpacko 5 жыл бұрын
Someone please clearify some thoughts I have about this, because to me it seems that the explanation is not practical. If you have access to all the node data (pointer to parent node, child nodes) then there would be no need for checking anything else. Just follow until you get to the top parent node. If you don't have access to the node data then the serial numbers of course can help you finding the direct parent nodes but for this you would need to go through all the furnaces anyway so why not just look for the 0 directly instead and just ignore the serial numbers? In both cases I don't see the need to store any serial number at all to achieve the task at hand.
@murphygreen8484
@murphygreen8484 5 жыл бұрын
This is what I was thinking too
@RageNukes
@RageNukes 5 жыл бұрын
Yep
@fabianmeyertoens
@fabianmeyertoens 5 жыл бұрын
It says: Hedge can see all shell serial numbers at a glance (I assume some sort of index/lookup faster than a loop through all nodes). I think they also want you to assume that looking up the number inside takes considerably more time, so you want to do that as few times as possible. A loop would work in any case but they probably want to show how you can use the information you get to reduce computation time.
@RetroGameSpacko
@RetroGameSpacko 5 жыл бұрын
@@fabianmeyertoens Even if you can see all serial numbers at once through something like an index (which BTW contradicts the claim that you only need one variable) you would still need to open up the furnaces to find a parent, wouldn't you? I am honestly asking because I would rather think that I am not getting the point than that this coding puzzle is wrong. As far as I am able to understand seeing all outside serial numbers doesn't give you the parent information without opening the furnaces. So how could you follow the path to firnace 0 without opening them? But even if I am not seeing a pattern here that you can follow, it still doesn't seem to me like problem that requires you to think like a coder. A coder would try to figure out how much complexity is needed for the task at hand. If you only need to find a certain node for one time only, the direct approach would be the logical choice even if it takes a little more processing time. A coder thinks practical, this video is more like "Think like a mathmatician"
@fabianmeyertoens
@fabianmeyertoens 5 жыл бұрын
​@@RetroGameSpacko "seeing all outside serial numbers doesn't give you the parent information without opening the furnaces" - right "you would still need to open up the furnaces to find a parent, wouldn't you?" - right, but you can get to the furnace 0 quicker by going up the tree instead of looping over all furnaces (my original point was just that the idea of the video is that the time to find a furnace knowing its shell number is negligible)
@naveenraj2008eee
@naveenraj2008eee 5 жыл бұрын
Wow.. Another great episode... Sparkling animation ted-ed
@jeremiahchun2277
@jeremiahchun2277 5 жыл бұрын
Love this series
@autumnriver7525
@autumnriver7525 5 жыл бұрын
Finally, a new video! I have been waiting everyday!!! :)
@nhungmum
@nhungmum Жыл бұрын
Hi TedEd, I like this channel very much. And I also like the piano melody at the time 0:28s. Can you please tell me the name of it? Thanks a lot in advance.
@harrisongerdes7078
@harrisongerdes7078 5 жыл бұрын
so how long until episode 4? I see it may be on a train.
@habibaghasafari2237
@habibaghasafari2237 5 жыл бұрын
You should have mentioned that this is an optimisation problem. Of course, hedge can find the zero bot eventually by checking the furnace number of all bots one by one but it will take much less number of moves if it follows the generation serial numbers like a linked list in a loop.
@ZipDDragon
@ZipDDragon 5 жыл бұрын
Nice story. I think that browsing furnaces would be very non trivial task. Also you are missing condition, when you accidentally find root robot by chance.
@reitrace
@reitrace 4 жыл бұрын
i used two variables in my thought process (the int for the serial and a bool for if its found or not) since i dont think i use any langs with until loops so i just used a while loop but thats just me tho
@TheManojd
@TheManojd 5 жыл бұрын
Wowwww. Man . I was waiting for this for a month.
@InsertCreative
@InsertCreative 5 жыл бұрын
My issue is it makes the assumption that all serial numbers are known in advance, and dont need to be found. If you open the first bot, and find a 4 in the furnace, this solution only makes sense if you know where to find the bot with serial number 4, or if finding that is significantly faster than checking inside the furnace. Otherwise, this is actually worse than just systematically checking inside every furnace. Checking every furnace for 0 is O(n), this is probably closer to O(2n) if you don’t know where every serial number starts out
@AdityaSharma-fp8lo
@AdityaSharma-fp8lo 5 жыл бұрын
Wow! I got it after, hint, though I feel confident of my skills now (*happy realisation). Thanks ted ed for this wonderful and innovative, intuitive series. And yeah do read all other comments 'cause that is what I want to say but... To tired of writing this much itself so, trying to use an "until" loop, "until all comments are read".
@sujatakale1673
@sujatakale1673 4 жыл бұрын
That new intro is 🔥🔥🔥
@noneedforaname6663
@noneedforaname6663 4 жыл бұрын
I didn't get the same solution but is this alright? Since hedge can see all serial numbers in my mind i put the serial numbers in an array and the furnace number as a variable: Check furnace number, if its equal to 0 then upload the control program, if not then, iterate through the serial numbers array and match the current furnace number, on match found, check the robot with the serial number matching the current furnace number its furnace number then repeat until the 1st condition is met.. Is that good? Or slower?
@sreejasrivaram8250
@sreejasrivaram8250 5 жыл бұрын
even the ost is fire.. god i love this series!!!
@mindsetpower3182
@mindsetpower3182 4 жыл бұрын
More if this please! I am learning!
@LiranBarsisa
@LiranBarsisa 5 жыл бұрын
Well, sadly the order of the bots here is quite random on a grid, so the numbers don't help, and it will need to go over up to all of them. And if it is so easy to find a number, you could just find the one with "0" ... Here's a better riddle: instead of numbers, it's easy instructions ( similar to pointer idea in programming) of how to get to the previous one, and if there are none, it's the original.
@merikocroc
@merikocroc Жыл бұрын
I wish it was a story based interactive game, it would be really amazing
@adriannakapelinska972
@adriannakapelinska972 4 жыл бұрын
Did anyone noticed Ada Lovelace painting in the background at 0:45? Great easteregg!
@sankarswaminathan8761
@sankarswaminathan8761 5 жыл бұрын
Can't wait for Think like a coder, episode 4......... Waiting
@SharkWitchMeruna
@SharkWitchMeruna 4 жыл бұрын
This is a fun series so far! I like that Adila is Indian, I feel represented. 😊
The Train Heist | Think Like A Coder, Ep 4
6:00
TED-Ed
Рет қаралды 536 М.
Can you solve the secret sauce riddle? - Alex Gendler
4:43
TED-Ed
Рет қаралды 3,3 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 957 М.
The Ancestor Paradox
4:14
MinuteEarth
Рет қаралды 173 М.
Why The Longing Takes Four Hundred Days to Play
20:45
Adam Millard - The Architect of Games
Рет қаралды 7 МЛН
Can you solve the private eye riddle? - Henri Picciotto
6:17
TED-Ed
Рет қаралды 1,4 МЛН
THE ART OF MURDER (PILOT)
20:11
Choc Chip Animation Studios
Рет қаралды 1,8 МЛН
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 2,3 МЛН
The Chasm | Think Like A Coder, Ep 6
6:41
TED-Ed
Рет қаралды 449 М.
The Last Human - A Glimpse Into The Far Future
12:31
Kurzgesagt – In a Nutshell
Рет қаралды 13 МЛН
This is How Easy It Is to Lie With Statistics
18:55
Zach Star
Рет қаралды 6 МЛН
The Hidden Complexity of Wishes
11:28
Rational Animations
Рет қаралды 431 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН