Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Moving the goal post?

If you are asking which is the "first algorithm" a human learns in their life then it's likely more related to movement (crawl? walk? move food towards mouth?) or selection (which item can I eat? who are my parents?) rather than a physical dictionary. Even considering that it's been a while since kids encountered a physical dictionary.

If you are asking about formal algorithms then we're talking about the beginning of a programmers or computer scientists education and then it's usually some form of O(n^2) sort that they will encounter first, if we don't count things like "how to add two multi-digit integers" which is typically an algorithm every kid learns in primary school.

Binary search tends to be one of the first recursive algorithms that are taught which is another level entirely regarding intellectual development.



I guess my response was to how I read your comment fitting in with the higher level discussion. My main point is that many of these algorithms are intuitive, and kids learn these much earlier than when they learn formal programming (which might typically be in their teens).

Looking over your comment again, I also don't dispute that linear search and sorting are simpler -- even toddlers learn these.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: