- Introduction to Trie
- Insertion of a string in Trie
- Searching a string in a Trie
- Application : Auto-Complete the keyword
Thursday, 27 July 2017
All about Trie data structure !
Thursday, 20 July 2017
Understanding Binary Search and Linear Search
- Understanding Linear search and its time complexity
- Understanding Binary search
- Implementation of binary search in C++
Wednesday, 19 July 2017
Merge Sort Algorithm
Tuesday, 11 July 2017
Breadth First Search in C++
Breadth First Search :
Like DFS, BFS is another form of Graph traversal Algorithm. Instead of going deeper and deeper, unlike DFS it goes in breadth first faishon which means that if it is on node u currently, then it first visits all the neighbours of node u and then the same thing happens with each of its neighbours. Lets understand how this algorithm works with the help of an example.
Monday, 10 July 2017
Topological sort on a directed acyclic graph
- What is Topological Sorting ?
- Illustration with the help of an example.
- Implementation of topological sort in C++.
Finding connected Components using DFS in C++
- Pre-requisites
- Understanding connected components.
- Implementing DFS to find number of connected components.
Depth First Search in C++
In my previous post i wrote about implementation of Adjacency List in C++. So if you don't know how to implement Adjacency List in C++, you must read this post.
Depth First Search
DFS (in short) is a simple algorithm to traverse a graph.Tuesday, 4 July 2017
Graph : Adjacency List using STL in C++ for competitve programming
- Introduction to Adjacency List.
- Some STL Componenets required to make Adjacency List:
- Vector
- Pair
- Map
- Implementation in C++.
Subscribe to:
Posts (Atom)
Featured Posts
Euler Totient Function
Hello Coders, I am writing this blogpost after a very long time. I am really sorry for that. :( This blogpost is related to a mathemat...
-
CONTENTS : Introduction to Adjacency List. Some STL Componenets required to make Adjacency List: Vector Pair Map Implementati...
-
UPDATES: Added a new problem (prob. 7) Added a new traversal technique CONTENTS: Insertion in a BST. Tree traversal techniques...
-
Contents : Pre-requisites Understanding connected components. Implementing DFS to find number of connected components.