# ALGORITHMS

#### Solving Graph Problems (Part 4) - Floyd-Warshall

Problem Source: UVA Online Judge - 567

Brief Analysis: As a first problem of Floyd-Warshall, a very straight-forward problem chosen. Just read and code.

#### Solving Graph Problems (Part 3) - Dijkstra

Problem Source: UVA Online Judge - 10986

Brief Analysis: As a first problem of Dijkstra, a very straight-forward problem chosen. Just read and code.

#### Solving Graph Problems (Part 2) - BFS

Problem Source: UVA Online Judge - 10067

Brief Analysis: It could be easily identified this is a BFS problem. Only one optimization here is to build graph first time before running any test case. Building graph for each test case could get TLE verdict.

#### Solving Graph Problems (Part 1) - Basic Solving graph problems for newbies was never been easy. In this series of blog, I am going to delineate solutions of graph problems precisely taken from several online judges which will help newbies to solve graph problem from easy to hard categories. Although It's good to have a theoritical backgro...

#### Bitwise Operations (Part-2)

##### Bitwise GCD:

Bitwise GCD is applicable only for unsigned int. It's 60% faster than normal numeric gcd algorithm. The quick short implementation of bitwise GCD is:

``````public int gcd(int a, int b) {
while(b) b ^= a ^= b ^= a % b;
return a;
}``````

Ref: https://en.wikipedia.org/wiki/Binary_GCD_a...