Can someone tell me how to compare running time of two programs in c/c++ and in other languages.I want to carry out a statistical analysis of various algos in various programming environments and different data sets
$ man 1 time
if you just want to compare the real running time time as already was suggested is the first start point. If you want to have a more complex analysis on how much time was spent in an function or how often a function gets called then you should use a profiler depending on the used programing language, e.g. you can have a look at valgrind (cachegrind) and gprov for c/c++ programms.
Hope this helps