Programming Solutions for Project Euler's Questions and some basic C programs

Tuesday, 7 July 2015

HUFFMAN CODING

›
In  computer science  and  information theory , a  Huffman code  is a particular type of optimal  prefix code  that is commonly used for  l...
Friday, 6 February 2015

Strassen Algorithm

›
Concept(Source Wikipedia): Let  A ,  B  be two  square matrices  over a  ring   R . We want to calculate the matrix product  C  as If ...
Wednesday, 17 December 2014

Digit fifth powers Problem 30 Project Euler

›
Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits: 1634 = 1 4  + 6 4  + 3 4  + 4...

Distinct powers Problem 29 Project Euler

›
Consider all integer combinations of  a b  for 2 ≤  a  ≤ 5 and 2 ≤  b  ≤ 5: 2 2 =4, 2 3 =8, 2 4 =16, 2 5 =32 3 2 =9, 3 3 =27, 3 4 =81, 3...

Number spiral diagonals Problem 28 Project Euler

›
Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows: 21  22 23 24  25 20   ...

Quadratic primes Problem 27 Project Euler

›
Euler discovered the remarkable quadratic formula: n ² +  n  + 41 It turns out that the formula will produce 40 primes for the consecu...

Lexicographic permutations Problem 24 Project euler

›
A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of t...
›
Home
View web version

About Me

Mayank Nag
View my complete profile
Powered by Blogger.