Research on the GPU Parallel Algorithm of the Knapsack Problem Based on Divide and Conquer
- Author
- JiangZuoYang
- Advisor
- LiKenLi , ShenYaNing
- School
- Hunan University
- Major
- Computer technology
- Classification
- TP301.6 Algorithm Theory
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 30
- Citations
- 0
Abstract
The0-1knapsack problem is a kind of typical portfolio optimization NP-hardproblem. Many domestic and foreign researchers have been concentrated in theextending and deepening the study of the problem, and have not found a solvingalgorithm in linear time so far, but it has important application value in the practicalapplication field, so the domestic and overseas scholars have been emphasized how toreduce computation cost of solving the problem.In recent years, with the mature of the parallel processing technology, solving0-1knapsack problem by the traditional serial algorithm has been gradually turning tothe parallel algorithm of research, and has become a hot issue in this field. There aretwo kinds of methods of solving it: dynamic programming method and divide andconquer algorithm. A lot of scholars have got many results by dynamic programming,but they got less by the latter.Based on the thorough study of CUDA parallel computing model and the parallelalgorithm based on partition strategies, the paper analyzed the two list serialalgorithm of solving0-1knapsack problems, and put forward parallel algorithm oftwo list based on the CPU+GPU heterogeneous programming model for solvingknapsack problem, and analyzed the two list algorithm and the generation of thesubset of the algorithm, a block for the most value and parallel cut pieces algorithm ofparallel search algorithm and the son of the basic ideas and algorithm design process.And in each designing process of the son of the parallel algorithm, the parallel tasksare distributes into respective programming in GPU to realize such calculating. In theonly consideration of the backpack items scale the optimal cost factors of theperformance of the algorithm theory analysis and comparison, the algorithm avoidedGPU memory access conflict completely.Finally, this paper, based on the CPU+GPU heterogeneous programming modelfor0-1knapsack problem two list parallel algorithm experimental programming,conducted and tested the experiments repeatedly. And it compared the running timedifferences of the two list serial algorithms, based on the traditional CPUprogramming model,and the two list parallel algorithms, based on OpenMP modeland the CPU+GPU heterogeneous programming model. It also analyzed theperformance of parallel algorithm. The experimental results showed the feasibility of reducing time in two table algorithm based on GPU parallel programming model, andit also showed a better acceleration.
Table of contents
Summary 5-6
Abstract 6-8
directory 8-10
illustrations index 10-11
attached table Index 11-12
Chapter 1 Introduction 12-17
1.1 background 12-13
1.2 status quo and development of domestic and international level trend 13-15
1.3 The main work 15-16
1.4 This article organizational structure 16-17
Chapter 2 0-1 knapsack problem 17-24
2.1 knapsack problem definition 17
2.2 knapsack problem typical algorithms Profile 17-23
2.2.1 recursive algorithm 17-18
2.2.2 dynamic programming algorithm 18-19
2.2.3 branch and bound algorithm 19-20
2.2.4 greedy algorithm 20-21
2.2.5 genetic algorithms 21-23
2.3 Summary 23-24
Chapter 3 GPU parallel computing architecture 24-32
3.1 Introduction 24-26
3.2 CUDA programming model 26-28
3.2.1 CPU GPU heterogeneous model 26-27
3.2.2 kernel and kernel threads hierarchy 27-28
3.3 CUDA memory model 28-31
3.3.1 global memory 29 - 30
3.3.2 local memory 30
3.3.3 fixed memory 30
3.3.4 texture memory 30
3.3.5 shared memory 30-31
3.3.6 register 31
3.4 Summary 31-32
Chapter 4, table 0-1 knapsack problem two algorithms 32-44
4.1 serial two table algorithm 32-34
4.2 introduces two parallel algorithms 34-35
4.2.1 parallel partitioning algorithm 34-35
4.2.2 optimal parallel merging algorithm 35
4.3 parallel Two table algorithm 35-42
4.3.1 Son sets and generation algorithm 36-37
4.3.2 shear block algorithm Search Algorithm 37-40
4.3.3 Solutions for 40-42
4.3.4 performance Analysis 42
4.4 Summary 42-44
Chapter 5, two tables CUDA parallel algorithms achieve 44-57
5.1 program implementation platform 44-45
5.2 two tables CUDA parallel algorithms achieve 45-50
5.2.1 CPU GPU heterogeneous pattern algorithm design 45-47
two parallel algorithm design statement on nbsp 5.2.2 GPU ; 47-50
5.3 analysis of experimental results 50-56
5.3.1 block block size performance analysis 50-51
5.3.2 CPU two table algorithm performance analysis 51-52
5.3.3 GPU parallel two tables algorithm and dual-core CPU serial two table algorithm performance comparison analysis 52-53
5.3.4 GPU parallel two tables algorithm and dual-core CPU parallel two table algorithm performance comparison analysis 53-54
5.3.5 three kinds of two table algorithm performance comparison analysis 54-56
5.4 Summary 56-57
conclusion 57-59
References 59-63
Thanks 63
Related dissertations
- Research Based on CUDA Parallel Computation of FFT
- Research of Efficient Computing Method on GPU-based LS-SVM
- Optimization of CUDA-based Parallel SOM Algorithm and Its Application
- Research on GPU General Computing on Text Classification
- Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
- Research on Text Detecting and Removal in Video Image Based on CUDA
- Rapid Implementation of the Small Infrared Target Detection Algorithm on CUDA
- Parallel Face Detection CUDA Accelerating
- Research on Boundary Face Method Base on GPU-acceleration
- Research on Applying GPU Parallel Computation to Medical Image Processing
- Research of Image Registration and Mosaic Technology Based on GPU
- Research and Implementation of Parallel Resampling Algorithm Based on GPU
- The CAPTCHA Machine Pattern Recognition Technology Based on GPU Research and Application
- Study of Visual Tracking Algorithm Based on CUDA
- Improved Push-Relabel Algorithm for Graph Cuts And Design and Implementation on the GPU
- Research and Implementation of Hashalgorithm Library on GPU
- Design and GPU Implementation of the DSP Algorithm in the Coherent Receiver of Fiber Communication
- Research of Real-time Acoustic Imaging Array Positioning Technology
- Research on Simulation Methods Based on GPU for Small Delay Faults
- Hyperspectral image mixed pixel decomposition parallel optimization based on GPU