Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Root80170199dThat reminds me of my first unofficial lesson on algorithms.
A neighbor and friend of the family worked for the US Department of Defense, and one day he posed a problem to 9 or 10 yo me: There's a satellite in orbit, and it has minimal processing so there's no fancy things it can do. It has a long list of numbers it needs to put in order, and it knows how many of each number there are. How can it put them in order?
It took me a few nights, but I managed! I don't remember the algo anymore, but it was very similar to the counting sort algo. I was so proud of myself! I think he was, too. my parents didn't care.
Midnight-shcode4227199d@Root yeah, as i read it, i remembered that counting sort exists :)
also, i have a feeling i already read that story from you here, some months ago.
i should try and get better in making up the real-world contextual fluff, the idea of telling a sattelite on orbit what to do is probably a cool factor motivator, but so far i've only been working in pure abstract with her, not much fluff about possible real-world applications XD.
TeachMeCode3329199dShe must be really gifted
AlgoRythm50282173dI remember doing the same thing on my own. I think bubble sort is somewhat intuitive and probably not as scientific as one may think
AlgoRythm50282173dIf she did quick sort on her own I would be blown away though