Posts

Showing posts from November, 2021

Algorithms in programming

  TMA#1 Activity 1.8 Blog post     Algorithms in programming     What is an Algorithm?     An algorithm is a set of step by step instructions for solving a problem to achieve a result’. Algorithms    are especially important to computers because computers are general purpose machines for solving  problems. In order for a computer to be useful, we must give it a problem to solve and a technique for solving the problem. How does the algorithm in programming make working so easy?   The subject field of algorithms has grown so deep and wide that the theories and the basics that are laid down will help us attack any computational problem. There are so many efficient algorithms that are already published like binary search,  bubble sort , insertion sort,  merge sort ,  quick sort , Euclid’s algorithms to find the GCM,  Prim’s algorithms   to find the shortest path in the graph, etc. There are so many kinds of algorithms like – Brute force algorithms Which are straightforward trial and