Toward a Dynamic Programming Solution for the 4-peg Tower of Hanoi Problem with Configurations

01/31/2013
by   Neng-Fa Zhou, et al.
0

The Frame-Stewart algorithm for the 4-peg variant of the Tower of Hanoi, introduced in 1941, partitions disks into intermediate towers before moving the remaining disks to their destination. Algorithms that partition the disks have not been proven to be optimal, although they have been verified for up to 30 disks. This paper presents a dynamic programming approach to this algorithm, using tabling in B-Prolog. This study uses a variation of the problem, involving configurations of disks, in order to contrast the tabling approach with the approaches utilized by other solvers. A comparison of different partitioning locations for the Frame-Stewart algorithm indicates that, although certain partitions are optimal for the classic problem, they need to be modified for certain configurations, and that random configurations might require an entirely new algorithm.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/14/2018

An Efficient Combinatorial Algorithm for Optimal Compression of a Polyline with Segments and Arcs

The task of finding the optimal compression of a polyline with straight-...
research
05/08/2019

Finding Optimal Longest Paths by Dynamic Programming in Parallel

We propose an exact algorithm for solving the longest simple path proble...
research
04/04/2019

A new algorithm for shape matching and pattern recognition using dynamic programming

We propose a new method for shape recognition and retrieval based on dyn...
research
05/03/2007

Multiresolution Approximation of Polygonal Curves in Linear Complexity

We propose a new algorithm to the problem of polygonal curve approximati...
research
07/07/2023

Action-State Dependent Dynamic Model Selection

A model among many may only be best under certain states of the world. S...
research
05/15/2023

Designing Discontinuities

Discontinuities can be fairly arbitrary but also cause a significant imp...
research
04/27/2021

Fully-dynamic Weighted Matching Approximation in Practice

Finding large or heavy matchings in graphs is a ubiquitous combinatorial...

Please sign up or login with your details

Forgot password? Click here to reset