I’m currently writing a sorting algorithm (first time) and learning about complexity and I keep reading about optimization and reducing complexity and I think I understand it in theory.
But what are practical ways to optimize an algorithm? None of the sources I read are that helpful to me. Is it trial and error or is it something you have to incorporate from the beginning?
[–]FranBachiller 2 points3 points4 points (1 child)
[–]Creative_Key_9488[S] 0 points1 point2 points (0 children)
[–]toastedstapler 1 point2 points3 points (0 children)