Programming through life
Ideas and tricks related to programming and computers in general.
Sunday, June 16, 2013
Global Silhouette Matlab
›
Whenever we cluster we should check the cluster quality but how can we do this ? One of the way to do that is to calculate it's Global...
Tuesday, May 28, 2013
Matlab Examples
›
Here is a code for averaging a set of signals, note that my input is taken from a .wav file and thus is of different making it a little mo...
Friday, May 24, 2013
Douglas-Peucker Algorithm
›
An algorithm for smoothing a 2-d plot . You can read a good explanation of it at wikipedia Wiki Link . Following is the matlab code that ...
Wednesday, February 27, 2013
SPOJ:Insertion Sort
›
The problem asks us to find the number of swaps an insertion sorts does, which in a way is a measure of efficiency of the sort. The basic...
Saturday, September 1, 2012
Modular Exponentiation
›
For performing exponentiation we can take the linear route or we can take the binary route. What is the main idea behind it Suppose you a...
Saturday, July 14, 2012
sieve of eratosthenes
›
Sieve of Erathosthenes : a find of quick ways to generate primes upto generally less than a million . below is the code for it . what t...
Permutations
›
Hey following is a method using backtracking to print all permutations of a number in C++. // A program using backtracking to generate pr...
‹
Home
View web version