THE TIME COMPLEXITY
During my Data Structure class, we learned about the time and space complexities. With the scale of projects that I have been working on so far in my project, I never really paid attention to the time complexity. However, now that I am working with much bigger data and a much more complex project, I realized how time complexity can be an issue if the code is not optimized. I am doing data science tasks, so I am using a notebook instead of a regular text editor. With a notebook, I can run a specific cell which makes it easier to debug. For example, I have a cell that processes the full data, then the next sell to explore the result. Once the data is processed, the result will be saved in memory so it does need to be run again regardless of any change made in any cell below it.
While I can get away with a badly optimized code by using a notebook, I know that sooner or later I will have to create a program where I will have to use a regular text editor. So, I am trying to optimize my code as much as I can with my current project. The more I do it, the more I will get used to it. I also noticed that a good debugging method can also improve the runtime of a program. I have different debugging methods, from my personal experience and from the data structure class, so I am also trying to apply these to get more used to them.
Comments
Post a Comment