Kruskal algorithm is one of the two commonly used algorithms for finding a Minimum Spanning Tree. Here the C code for implementing this algorithm has been presented. The code operates on the Input File which can be downloaded and must be in the same directory in which the program is to be executed. This code [...]
Archive for February, 2010
Finding whether a no. is Even or Odd without using Conditional Statement
Writing a program to find whether a given number is even or odd without using any conditional statement or loop can be quite tricky. Nevertheless the program is simple and can be done in at least 2 ways.
In the first method, a 2-D array is used to store the strings “even” and “odd” in the [...]
C code for permutation
Finding all the permutations for any given set of items has always been an area of interest for programmers. A very simple algorithm for finding all the permutations, the Bell Algorithm has already been presented.
Here the C code implementing Bell algorithm, for finding all the possible permutations has been given. The program assumes that [...]
Tracing path to a Website
Very often some website becomes unreachable and we couldn’t understand the reason of that. In such a case we must know the path of a data packet from our computer to the website so that we can see where the connection has failed. In windows the command for tracing path to a website is ‘tracert’ [...]
Changing Windows xp password for a guest account
Changing a windows xp password (non administrator)is pretty simple. However, this trick cannot be used for a windows vista or windows 7 system.
To change the password of a non administrator account, open the command prompt and type :
net user
This will display the names of all the accounts on that computer :
Now if you want to [...]

Posted in
Tags: 
