Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-05T23:09:55.831Z Has data issue: false hasContentIssue false

THREE ALGORITHMIC APPROACHES TO THE GENERAL POSITION PROBLEM

Published online by Cambridge University Press:  04 July 2025

ZAHRA HAMED-LABBAFIAN
Affiliation:
Department of Applied Mathematics, Faculty of Mathematical Sciences, Ferdowsi University of Mashhad , Mashhad, Iran e-mail: hamedlabbafianzahra@gmail.com
NARJES SABEGHI*
Affiliation:
Department of Mathematics, Faculty of Basic Sciences, Velayat University, Iranshar, Iran
MOSTAFA TAVAKOLI
Affiliation:
Department of Applied Mathematics, Faculty of Mathematical Sciences, Ferdowsi University of Mashhad , Mashhad, Iran e-mail: m_tavakoli@um.ac.ir
SANDI KLAVŽAR
Affiliation:
Faculty of Mathematics and Physics, University of Ljubljana , Ljubljana, Slovenia; Institute of Mathematics, Physics and Mechanics, Ljubljana, Slovenia; and Faculty of Natural Sciences and Mathematics, University of Maribor, Maribor, Slovenia e-mail: sandi.klavzar@fmf.uni-lj.si
Rights & Permissions [Opens in a new window]

Abstract

If G is a graph, then $X\subseteq V(G)$ is a general position set if for every two vertices $v,u\in X$ and every shortest $(u,v)$-path P, no inner vertex of P lies in X. We propose three algorithms to compute a largest general position set in G: an integer linear programming algorithm, a genetic algorithm and a simulated annealing algorithm. These approaches are supported by examples from different areas of graph theory.

Information

Type
Research Article
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Australian Mathematical Publishing Association Inc
Figure 0

Figure 1 Maximum general position sets for $C_{42}$ and $C_{44}$.

Figure 1

Figure 2 Maximum general position sets for $C_{46}$ and $C_{48}$.

Figure 2

Table 1 The general position number of some graphs and running times of the ILP, GA and SA.