Skip to main content
Top
Published in: Automatic Control and Computer Sciences 7/2023

01-12-2023

Two-Step Coloring of Grid Graphs of Different Types

Author: A. V. Smirnov

Published in: Automatic Control and Computer Sciences | Issue 7/2023

Login to get access

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

In this article, we consider the NP-hard problem of the two-step coloring of a graph. It is required to color the graph in the given number of colors in a way, when no pair of vertices has the same color, if these vertices are at a distance of one or two between each other. The optimum two-step coloring is one that uses the minimum possible number of colors. The two-step coloring problem is studied in application to grid graphs. We consider four types of grids: triangular, square, hexagonal, and octagonal. We show that the optimum two-step coloring of hexagonal and octagonal grid graphs requires four colors in the general case. We formulate the polynomial algorithms for such a coloring. A square grid graph with the maximum vertex degree equal to 3 requires four or five colors for a two-step coloring. In this paper, we propose the backtracking algorithm for this case. Also, we present the algorithm, which works in linear time relative to the number of vertices, for the two-step coloring in seven colors of a triangular grid graph and show that this coloring is always correct. If the maximum vertex degree equals six, the solution is optimum.
Literature
4.
go back to reference Medvedeva, N. and Smirnov, A., Dvukhshagovaya raskraska pryamougol’nogo grafa reshetki, Zametki po informatike i matematike (Notes on Informatics and Mathematics), Yaroslavl: Yaroslavl. Gos. Univ., 2019, vol. 11, pp. 131–138. Medvedeva, N. and Smirnov, A., Dvukhshagovaya raskraska pryamougol’nogo grafa reshetki, Zametki po informatike i matematike (Notes on Informatics and Mathematics), Yaroslavl: Yaroslavl. Gos. Univ., 2019, vol. 11, pp. 131–138.
5.
go back to reference Kolmogorov, A.N., Parquets made of regular polygons, Kvant, 1970, no. 3, pp. 24–27. Kolmogorov, A.N., Parquets made of regular polygons, Kvant, 1970, no. 3, pp. 24–27.
9.
go back to reference Islam, K., Meijer, H., Núñez, Y., Rappaport, D., and Xiao, H., Hamilton circuits in hexagonal grid graphs, Proc. 19th Canadian Conf. on Computational Geometry (CCCG2007), Ottawa: 2007, pp. 85–88. Islam, K., Meijer, H., Núñez, Y., Rappaport, D., and Xiao, H., Hamilton circuits in hexagonal grid graphs, Proc. 19th Canadian Conf. on Computational Geometry (CCCG2007), Ottawa: 2007, pp. 85–88.
Metadata
Title
Two-Step Coloring of Grid Graphs of Different Types
Author
A. V. Smirnov
Publication date
01-12-2023
Publisher
Pleiades Publishing
Published in
Automatic Control and Computer Sciences / Issue 7/2023
Print ISSN: 0146-4116
Electronic ISSN: 1558-108X
DOI
https://doi.org/10.3103/S0146411623070131

Other articles of this Issue 7/2023

Automatic Control and Computer Sciences 7/2023 Go to the issue