Bellman-Ford Algorithm with Example

Bellman Ford is an algorithm used to compute single source shotest path. This means that starting from a single vertex, we compute best distance to all other vertices in a weighted graph. This is done by relaxing all the edges in the graph for n-1 times, where n is the number of vertices in the graph.

Read More →

Binary Exponentiation Algorithm with Example in Java

Binary Exponentiation is a fast and efficient way of computing exponent of a number. The conventional method takes n steps to compute nth power of any number but Binary Exponentiation takes log(n) steps to do the same work.

Read More →

Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example

The KMP algorithm is able to search for the substring in O(m+n) time, this is why we don't use the above naive method. Lets now see how this algorithm works.

Read More →

Java Program to Check if Number is Prime or Not

In this article, we will write a simple java program which checks if the number given as input to the Program is Prime Number or Not.

Read More →

Difference between Operational Database System And Data Warehouse

An operational system refer to a system that is used to process the day-to-day transactions of an organization. Data Warehouse is a Relational Database that maintains huge volume of historical data so as to simplify the process of analysis and decision making. Now, let's see the difference between Operational Database System (OLTP) And Data Warehouse (OLAP).

Read More →

Digital vs Analog

I bet everyone has heard both of these terms before especially in reference to a clock. Clocks that have hands on them are analog, and the clock on your phone or other electronic device is a digital clock. But what is the difference between Digital and Analog

Read More →

Face Detection with OpenCV in Java

In this post I will show you how to detect faces (or eyes, or full body) using OpenCV in Java Application.

Read More →

Redirect port 80 to some another port using iptables on CentOS

In this post, we will learn how to redirect a request from port 80 to some other port using iptables in CentOS.

Read More →
Search