Algorithm
What are Algorithms?
In simple words, it's just a way/ procedure to solve a specific problem in a sequence of steps.
So before solving an Algorithm, the most important thing is to know what the problem is actually so the most important advice from my side is to spend time understanding the problem and then start solving it. Once the crucks of the problem are clear then it is also easier to solve.
Time Complexity
During Programming one doesn't want to think about how things are working in the transistors but actually the Programming language is abstracted from the Hardware. What are arrays? They are places that are stored in the memory in a sequential memory address. So all the data is stored in the memory at a location and the faster we can retrieve it the better our Program will be so here it is better to train and know what is efficient and what is inefficient. For that, we need to know the Term Time Complexity. For that we need to think in the different Abstraction levels for example when you have to move then you don't think how the muscles in the body are moving you just move but one of the abstraction levels is that also. So to think in the correct abstraction level is important in today's world and we can be good at that if we train this stuff.
Lets take an example of Multiplication
What is Multiplication taking two numbers and multiplying them just that? Or there are some additions also involved in them? When we do programming the easiest that we can think of is going through the number with the for loop
Comments
Post a Comment