logoalt Hacker News

bluefirebrand • today at 2:17 PM • 0 replies • view on HN

> Most people I don't think would grasp that you can have fundamentally different algorithms to solve the same problem.

Most people do grasp arithmetic though, and I think you could easily describe a parallel in math to explain how there are different ways to get the same result

10+5=15

20-5=15 as well but subtraction takes longer for the computer to calculate

1+4+7+3=15 too with only addition but it has multiple steps so it takes longer for the computer to calculate

I think most people could draw a very rudimentary understanding of how algorithms take different amounts of time from that explanation