In this paper we propose a vectorized algorithm which is suitable for supercomputers to solve the knapsack problem. Our vectorized algorithm utilizes vector operations which are available on most of the supercomputers such as Cyber 205, ETA10, Cray etc.