

We wouldn’t go deep into how DFS/BFS work but will see how they are different through following animation. Used to debug in git through git bisectĭepth/Breadth First Search (in Graph data structures)ĭFS and BFS are tree/graph traversing and searching data structures.When you search for a name of song in a sorted list of songs, it performs binary search and string-matching to quickly return the results.Idea is to repeatedly divide in half the portion of the list that could contain the item, until we narrow it down to one possible item. Sorting by price, popularity etc in e-commerce websitesīinary Search (in linear data structures)īinary search is used to perform a very efficient search on sorted dataset.Some examples where you can find direct application of sorting techniques include: More importantly one should know when and where to use them. Depending upon requirement you may want to use any of these. Though every major programming language has built-in sorting libraries, it comes in handy if you know how they work. Idea is to arrange the items of a list in a specific order.

Sorting is the most heavily studied concept in Computer Science.

This list is prepared keeping in mind their use in competitive programming and current development practices. Today, We will see what they do and where they are used with simplest examples. In programmers life algorithms and data structures is most important subject if they want to go out in the programming world and make some bucks.
