کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
433673 1441651 2015 32 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
The capacity-C torch problem
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
The capacity-C torch problem
چکیده انگلیسی


• Polynomial time and space algorithm for solving well-known “torch” (“flashlight”, “U2”) problem for arbitrary number of people and arbitrary capacity.
• Empirical comparison with integer programming solution.
• Central theorem transforms problem from determining optimal sequence to determining an optimal bag.
• Detailed derivation of the algorithms.

The torch problem (also known as the bridge problem or the flashlight problem) is about getting a number of people across a bridge as quickly as possible under certain constraints. Although a very simply stated problem, the solution is surprisingly non-trivial. The case in which there are just four people and the capacity of the bridge is two is a well-known puzzle, widely publicised on the Internet. We consider the general problem where the number of people, their individual crossing times and the capacity of the bridge are all input parameters. We present two methods to determine the shortest total crossing time: the first expresses the problem as an integer-programming problem that can be solved by a standard linear-programming package, and the second expresses the problem as a shortest-path problem in an acyclic directed graph, i.e. as a dynamic-programming problem. The complexity of the linear-programming solution is difficult to predict; its main purpose is to act as an independent test of the correctness of the results returned by the second solution method. The dynamic-programming solution has best- and worst-case time complexity proportional to the square of the number of people. An empirical comparison of the efficiency of both methods is also presented.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 102, 1 May 2015, Pages 76–107
نویسندگان
, ,