The 100 Prisoners Problem: Parallel Execution Using Graphics Processing Unit
Keywords:
100 prisoners problem, Graphics Processing Unit, Pointer-following strategy,Abstract
An existing optimal strategy to solve the 100 prisoners problem is to assume that its success probability is independent of the number of prisoners. However, the execution time depends on the size of the problem. For this strategy, both sequential and parallel implementations are applicable. In this paper, we compared the execution times of the sequential and parallel algorithms to see how they vary when the problem size increases. This paper posits that in spite of the parallel nature of this strategy, it will not fully benefit from the GPU implementation. The results show that in spite of the GPU's high memory latency overhead, the parallel implementation will outperform the sequential of larger problem sizes. For the problem size of 100, the GPU implementation using global memory yields a speedup of 0.012. The achieved speedup reaches 1.652, as the problem size increases to 100,000. For the problem size of 100, the implementation using GPU's shared memory runs 8 times faster than the one using global memory.Downloads
Published
How to Cite
Issue
Section
License
TRANSFER OF COPYRIGHT AGREEMENT
The manuscript is herewith submitted for publication in the Journal of Telecommunication, Electronic and Computer Engineering (JTEC). It has not been published before, and it is not under consideration for publication in any other journals. It contains no material that is scandalous, obscene, libelous or otherwise contrary to law. When the manuscript is accepted for publication, I, as the author, hereby agree to transfer to JTEC, all rights including those pertaining to electronic forms and transmissions, under existing copyright laws, except for the following, which the author(s) specifically retain(s):
- All proprietary right other than copyright, such as patent rights
- The right to make further copies of all or part of the published article for my use in classroom teaching
- The right to reuse all or part of this manuscript in a compilation of my own works or in a textbook of which I am the author; and
- The right to make copies of the published work for internal distribution within the institution that employs me
I agree that copies made under these circumstances will continue to carry the copyright notice that appears in the original published work. I agree to inform my co-authors, if any, of the above terms. I certify that I have obtained written permission for the use of text, tables, and/or illustrations from any copyrighted source(s), and I agree to supply such written permission(s) to JTEC upon request.