التخطي إلى المحتوى الرئيسي

المشاركات

مميزة

Introduction in Algorithms

  What is an Algorithm? The word Algorithm means “A set of rules to be followed in calculations or other problem-solving operations” Or “A procedure for solving a mathematical problem in a finite number of steps that  frequently involves recursive operations “. Types of Algorithms: There are several types of algorithms available. Some important algorithms are: 1. Brute Force Algorithm: It is the simplest approach for a problem. A brute force algorithm is the first approach that comes to finding when we see a problem. 2. Recursive Algorithm : A recursive algorithm is based on recursion . In this case, a problem is broken into several sub-parts and called the same function again and again. 3. Backtracking Algorithm : The backtracking algorithm basically builds the solution by searching among all possible solutions. Using this algorithm, we keep on building the solution following criteria. Whenever a solution fails we trace back to the failure point and build on the next soluti...

آخر المشاركات