Object-oriented backtracking

Several versions of the backtracking are known. In this paper, those versions are in focus which solve the problems whose problem space can be described with a special directed tree. The traversal strategies of this tree will be analyzed and they will be implemented in object-oriented style. In this...

Full description

Bibliographic Details
Main Author: Gregorics Tibor
Format: Article
Language:English
Published: Sciendo 2017-12-01
Series:Acta Universitatis Sapientiae: Informatica
Subjects:
Online Access:https://doi.org/10.1515/ausi-2017-0010
id doaj-8fdf334f7863454c88ba74bc726ba171
record_format Article
spelling doaj-8fdf334f7863454c88ba74bc726ba1712021-09-06T19:40:20ZengSciendoActa Universitatis Sapientiae: Informatica2066-77602017-12-019214416110.1515/ausi-2017-0010ausi-2017-0010Object-oriented backtrackingGregorics Tibor0ELTE, Eötvös Loránd University Budapest, Budapest, HungarySeveral versions of the backtracking are known. In this paper, those versions are in focus which solve the problems whose problem space can be described with a special directed tree. The traversal strategies of this tree will be analyzed and they will be implemented in object-oriented style. In this way, the traversal is made by an enumerator object which iterates over all the paths (partial solutions) of the tree. Two different “acktracking enumerators” are going to be presented and the backtracking algorithm will be a linear search over one of these enumerators. Since these algorithms consist of independent objects (the enumerator, the linear search and the task which must be solved), it is very easy to exchange one component in order to solve another problem. Even the linear search could be substituted with another algorithm pattern, for example, with a counting or a maximum selection if the task had to be solved with a backtracking counting or a backtracking maximum selection.https://doi.org/10.1515/ausi-2017-001068n30path-finding problembacktracking algorithmenumeratoralgorithm pattern
collection DOAJ
language English
format Article
sources DOAJ
author Gregorics Tibor
spellingShingle Gregorics Tibor
Object-oriented backtracking
Acta Universitatis Sapientiae: Informatica
68n30
path-finding problem
backtracking algorithm
enumerator
algorithm pattern
author_facet Gregorics Tibor
author_sort Gregorics Tibor
title Object-oriented backtracking
title_short Object-oriented backtracking
title_full Object-oriented backtracking
title_fullStr Object-oriented backtracking
title_full_unstemmed Object-oriented backtracking
title_sort object-oriented backtracking
publisher Sciendo
series Acta Universitatis Sapientiae: Informatica
issn 2066-7760
publishDate 2017-12-01
description Several versions of the backtracking are known. In this paper, those versions are in focus which solve the problems whose problem space can be described with a special directed tree. The traversal strategies of this tree will be analyzed and they will be implemented in object-oriented style. In this way, the traversal is made by an enumerator object which iterates over all the paths (partial solutions) of the tree. Two different “acktracking enumerators” are going to be presented and the backtracking algorithm will be a linear search over one of these enumerators. Since these algorithms consist of independent objects (the enumerator, the linear search and the task which must be solved), it is very easy to exchange one component in order to solve another problem. Even the linear search could be substituted with another algorithm pattern, for example, with a counting or a maximum selection if the task had to be solved with a backtracking counting or a backtracking maximum selection.
topic 68n30
path-finding problem
backtracking algorithm
enumerator
algorithm pattern
url https://doi.org/10.1515/ausi-2017-0010
work_keys_str_mv AT gregoricstibor objectorientedbacktracking
_version_ 1717768816407085056