Home|Tag: algorithms

Time Complexity Of Algorithms

Algorithms are ubiquitous and are used in almost every aspect of our lives. Choosing the right algorithm for performing a specific task is no trivial matter. In the best case scenario, the algorithm not only performs its job, but it does it using the least amount of resources. The most relevant resources when it comes

2019-06-18T05:53:51+03:00By |Categories: Explained Simply|Tags: |0 Comments

BFS vs. DFS

Breadth-First Search (BFS) and Depth-First Search (DFS) are algorithms for traversing graphs. Traversal is the process of accessing each vertex (node) of a data structure in a systematic well-defined order. Choosing the algorithm depends on the type of data you are dealing with. There are generally two types of traversal and the main difference between

2019-10-24T21:47:52+03:00By |Categories: Explained Simply|Tags: , |2 Comments

Recursion vs. Iteration

Both algorithms repeatedly execute a set of instructions. Recursion is a function that call itself repeatedly. Iteration is when a loop is executed repeatedly while certain condition is true. Differences between recursion and iteration: Recursion is a process applied on a function, iteration does not require a function.Infinite recursion can lead to system crash (stack

2018-12-06T23:24:08+02:00By |Categories: Explained Simply|Tags: , |0 Comments