Index Min P Q Algorithm

The S&P 500 stock market index, maintained by S&P Dow Jones index, comprises 505 common stocks issued by 500 large-cap company and traded on American stock exchanges (including the 30 company that compose the Dow Jones Industrial average), and covers about 80 percent of the American equity market by capitalization. The index constituents and the constituent weights are updated regularly use rules published by S&P Dow Jones index.

Index Min P Q source code, pseudocode and analysis