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 proble...
详细信息
ISBN:
(纸本)9783540705932
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 an algorithm that determines the shortest total crossing time;the number of primitive computations executed by the algorithm (i.e. the worst-case time complexity of the algorithm) is proportional to the square of the number of people.
This paper presents in details the task preparation process in the Polish Olympiad in Informatics. It is a result of over 15 years of experience in organization of programming contests for high-school students. It is ...
详细信息
This paper presents the organization of the Polish Olympiad in Informatics, together with tasks preparation process and evaluation. It is a result of over 14 years of experience in organization of programming contests...
详细信息
This paper presents the organization of the Polish Olympiad in Informatics, together with tasks preparation process and evaluation. It is a result of over 14 years of experience in organization of programming contests for high-school pupils. We believe, that although described procedures are rather widely know, their rigorous implementation is the key to organization of a successful programming contest.
The effectiveness of viewing, representing, and manipulating data via binary values is illustrated in the domain of algorithmic problem solving. A variety of illuminating binary aspects, regarded as binary perspective...
详细信息
The effectiveness of viewing, representing, and manipulating data via binary values is illustrated in the domain of algorithmic problem solving. A variety of illuminating binary aspects, regarded as binary perspectives, are displayed through four lively algorithmic challenges, some of which are two-player games. The illustrations demonstrate the benefits of invoking binary representation of numbers, binary complement, bit-by-bit processing, parity considerations, and the reduction of an integer task into a 0/1 task. The solutions to the challenges are presented gradually, encapsulating general algorithmic considerations and problem-solving methods, including invariant properties, stepwise refinement, processing by atomic components, auxiliary coloring, backward reasoning, and inductive generalization. Each of the illustrations is tied to a variety of referenced algorithmic schemes and applications, which employ the aspects demonstrated in this article. The variety of binary aspects, algorithmic considerations, and problem-solving methods make these illustrations appealing teaching resources for computer science educators, in particular in the domain of algorithms.
暂无评论