English

Local Search Improvements for Soft Happy Colouring

Discrete Mathematics 2025-06-26 v2 Combinatorics

Abstract

For 0ρ10\leq \rho\leq 1 and a coloured graph GG, a vertex vv is ρ\rho-happy if at least ρdeg(v)\rho \mathrm{deg}(v) of its neighbours have the same colour as vv. Soft happy colouring of a partially coloured graph GG is the problem of finding a vertex colouring σ\sigma that preserves the precolouring and has the maximum number of ρ\rho-happy vertices. It is already known that this problem is NP-hard and directly relates to the community structure of the graphs; under a certain condition on the proportion of happiness ρ\rho and for graphs with community structures, the induced colouring by communities can make all the vertices ρ\rho-happy. We show that when 0ρ1<ρ210\leq \rho_1<\rho_2\leq 1, a complete ρ2\rho_2-happy colouring has a higher accuracy of community detection than a complete ρ1\rho_1-happy colouring. Moreover, when ρ\rho is greater than a threshold, it is unlikely for an algorithm to find a complete ρ\rho-happy colouring with colour classes of almost equal sizes. Three local search algorithms for soft happy colouring are proposed, and their performances are compared with one another and other known algorithms. Among them, the linear-time local search is shown to be not only very fast, but also a reliable algorithm that can dramatically improve the number of ρ\rho-happy vertices.

Keywords

Cite

@article{arxiv.2506.19284,
  title  = {Local Search Improvements for Soft Happy Colouring},
  author = {Mohammad Hadi Shekarriz and Dhananjay Thiruvady and Asef Nazari and Wilfried Imrich},
  journal= {arXiv preprint arXiv:2506.19284},
  year   = {2025}
}

Comments

33 pages, 17 figures, 2 tables