Which Language is Fastest at Sorting

Most computer programming languages provide built-in standard sorting algorithms. Let’s compare performance of these. C++ Sorting The above graph shows performance of the standard C++ STL sort algorithm. The vertical axis is time measured in seconds. The horizontal axis is array size of integers (32-bits each). Signed 32-bit integer values in the array are random […]

Read more "Which Language is Fastest at Sorting"

Random Number Generator

Every programming language provides methods for generating random numbers, because random numbers are useful in so many situations. For years the C programming language only provided the rand() function, which generates 15 random bits per function call. To generate a 32-bit integer, it takes 3 calls to rand() to accumulate 32 bits. On my quad-core […]

Read more "Random Number Generator"