...

/

Algorithms: An Introduction

Algorithms: An Introduction

You will learn how algorithms come in handy while solving problems in this lesson.

We have already been introduced to algorithms. We can solve any problem by breaking it down into a sequence of steps. Before writing the final code, we could write the sequence of steps in our natural language, and that is how we construct an algorithm to solve problems.

Compute molecular mass of hydrocarbon

In the following part, we will compute the number of molecules in a hydrocarbon. Notice the algorithm. That is the same for any other language, we ...