Quantcast
Channel: Algorithm – The Crazy Programmer
Browsing all 56 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Asymptotic Notations

Here you will learn about Asymptotic Analysis and Asymptotic Notations in detail. It is common that we write Algorithm before writing code to any problem. There may exist more than one solution for a...

View Article


Image may be NSFW.
Clik here to view.

Vigenere Cipher in C and C++

In this tutorial you will learn about vigenere cipher in C and C++ for encryption and decryption. Vigenere Cipher is kind of polyalphabetic substitution method. It is used for encryption of alphabetic...

View Article


Image may be NSFW.
Clik here to view.

Rail Fence Cipher Program in C and C++[Encryption & Decryption]

Here you will get rail fence cipher program in C and C++ for encryption and decryption. It is a kind of transposition cipher which is also known as zigzag cipher. Below is an example. Here Key = 3. For...

View Article

Image may be NSFW.
Clik here to view.

Binary Search in C

Here you will get program for binary search in C. Binary search algorithm can be applied on a sorted array to search an element. Search begins with comparing middle element of array to target element....

View Article

Image may be NSFW.
Clik here to view.

Difference between Flowchart and Algorithm

Welcome back readers, today I’ll be discussing the difference between flowchart and algorithm. But before getting started, I want to discuss a bit about both the topics. Flowchart A flowchart is a...

View Article


Image may be NSFW.
Clik here to view.

Data Encryption Standard (DES) Algorithm

Data Encryption Standard is a symmetric-key algorithm for the encrypting the data. It comes under block cipher algorithm which follows Feistel structure. Here is the block diagram of Data Encryption...

View Article

Apriori Algorithm

Today we are going to learn about Apriori Algorithm. Before we start with that we need to know a little bit about Data Mining. What is Data Mining ? Data Mining is a non-trivial process of identifying...

View Article

Image may be NSFW.
Clik here to view.

Difference between Lossy and Lossless Compression

Lossy and lossless compression are two kinds of data compression techniques. Here in this article, you will get to learn about what is lossy and lossless compression, their differences, and uses. So,...

View Article


Image may be NSFW.
Clik here to view.

LRU Cache – Design and Implementation in Java

In this article we will learn how to design a LRU Cache, understand it’s cache replacement algorithm. We also look at description of LRU Cache with some examples. Then, we look at the implementation of...

View Article


Image may be NSFW.
Clik here to view.

Kadane’s Algorithm (Maximum Sum Subarray Problem) in Java

In this article, we will understand the idea of Kadane’s Algorithm. We discuss this with the help of an example and also discuss a famous interview problem related to it. Then, we will look at the...

View Article

Image may be NSFW.
Clik here to view.

Master’s Theorem Explained with Examples

In this article, we will have a look at the famous Master’s Theorem. This is very useful when it comes to the Design and analysis of Algorithms following Divide and Conquer Technique. We will cover the...

View Article

Image may be NSFW.
Clik here to view.

Tarjan’s Algorithm with Implementation in Java

In this article, we will look at a famous algorithm in Graph Theory, Tarjan Algorithm. We will also look at an interesting problem related to it, discuss the approach and analyze the complexities....

View Article

Image may be NSFW.
Clik here to view.

Boruvka’s Algorithm with Implementation in Java

In this article, we will have a look at another interesting algorithm related to Graph Theory – Boruvka’s Algorithm. We will also look at a problem with respect to this algorithm, discuss our approach...

View Article


Image may be NSFW.
Clik here to view.

Hierholzer’s Algorithm with Implementation in Java

In this article, will look at an interesting algorithm related to Graph Theory: Hierholzer’s Algorithm. We will discuss a problem and solve it using this Algorithm with examples. We will also discuss...

View Article

Image may be NSFW.
Clik here to view.

How to Calculate Running Time of an Algorithm?

In this article, we will learn how to deduce and calculate the Running Time of an Algorithm. Also, we will see how to analyze the Time Complexity of the Algorithm. This is very useful when it comes to...

View Article


Image may be NSFW.
Clik here to view.

Interpolation Search Algorithm – Time Complexity, Implementation in Java

In this article we will have a look at an interesting Searching Algorithm: Interpolation Search. We will also look at some examples and the implementation. Along with this we look at complexity...

View Article
Browsing all 56 articles
Browse latest View live