Misc

Binary Search

Admin | 28-Sep-2015 | C#, VB.Net, C, C++, PHP

Binary search (a.k.a Half-Interval Search) algorithms finds the position of a target value within an array.

Brute-Force

Admin | 19-Apr-2016 | C#, VB.Net, C, C++, PHP

Brute-Force algorithm (a.k.a brute-force search, exhaustive search) is a very general problem-solving technique that consists of systematically ...

Damm Algorithm

Admin | 30-May-2016 | C#, VB.Net, C, C++, PHP

In error detection, the Damm algorithm is a check digit algorithm that detects all single-digit errors and all adjacent transposition errors. It was ...

Dice Throw Problem

Admin | 23-Apr-2016 | C#, VB.Net, C, C++, PHP

This algorithm finds the number of ways to get summation of values on each face when all the dice are thrown.

Interpolation Search

Admin | 30-Jan-2017 | C#, VB.Net, C, C++, PHP

Interpolation search is an improved variant of binary search. This search algorithm works on the probing position of the required value. For this ...

Knapsack Problem

Admin | 23-Apr-2016 | C#, VB.Net, C, C++, PHP

The knapsack problem (a.k.a rucksack problem) is a problem in combinatorial optimization: Given a set of items, each with a weight and a value, ...

Linear Search

Admin | 30-Jan-2017 | C#, VB.Net, C, C++, PHP

Linear search, also known as sequential search is an algorithm for finding a target value within a list. It sequentially checks each element of the ...

N Queen Problem

Admin | 09-Jul-2016 | C#, VB.Net, C, C++, PHP

The N Queen, also known as eight queens puzzle, is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each ...

Sudoku

Admin | 05-Mar-2016 | C#, VB.Net, C, C++

A sudoku puzzle is a grid of nine by nine cells, that has been subdivided into nine subgrids of three by three cells. The objective of sudoku is ...

Swap

Admin | 28-Sep-2015 | C#, VB.Net, C, C++, PHP

This algorithm exchanges the value of two variables.