Posts

Showing posts with the label Programming

Sorting Algorithms

Image
A Sorting Algorithm is used to rearrange a given array or list elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of elements in the respective data structure. The most frequently used orders are numerical order and lexicographical order (also known as lexical order, dictionary order, alphabetical order or lexicographic(al) product). Efficient sorting is important for optimizing the efficiency of other algorithms (such as search and merge algorithms) which require input data to be in sorted lists. Sorting is also often useful for canonicalizing data and for producing human-readable output. More formally, the output of any sorting algorithm must satisfy two conditions: The output is in nondecreasing order (each element is no smaller than the previous element according to the desired total order); The output is a permutation (a reordering, yet retaining all of the original elements) of the input. Exa...

The Top 10 Algorithms and Data Structures that you must know!

Image
It’s been over a decade since I started learning about the computers and the programming languages. During my graduation, I studied algorithms as a major. It started with "The Data Structures and Algorithms" with c++. As we all know "Algorithms is a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer." Algorithm usually means a small procedure that solves a recurrent problem. Algorithm is not something that you can beneficially memorize and use. You need to understand its purpose. For example, there are many algorithms available for sorting a set of numbers. But you need to understand how every single algorithm is different than other and which algorithm meets your requirements. Here are the top 10 algorithms and data structures that you must know. 1.     Sort Algorithm 2.     Search algorithms 3.     Hashing 4.     Dynamic programming ...

Why “To learn coding skills” should be your new year resolution for 2018?

Image
The year 2017 is coming to the end and now probably  you  might  have started making a list of your new year resolutions for the year of 2018. Yes, I am pretty sure that many items from your list are exactly same as my list. (Image source: Internet ) But this is the time to add a new item to your list and that is " To learn coding skills". Why should you learn to code? Have you ever noticed how you spent this year? Posting photos on Instagram, sharing thoughts over the Facebook, tweeting around the Tweeter, watching funny videos on YouTube, swiping left on tinder, Snapchatting, WhatsApp, Pinterest, LinkedIn, Reddit, Vine, Tumblr, blogging, vlogging, online shopping and many more. In short, the most of the time of 2017 we spent over the Internet, but have you ever felt curious about how these things actually work? Most of the stuff is accessible for free. How they earn money from providing these stuff for free? If you buy/search some product on...