Skip to main content
Log in

Tackling the maximum happy vertices problem in large networks

  • Research Paper
  • Published:
4OR Aims and scope Submit manuscript

Abstract

In this paper we consider a variant of graph colouring known as the maximum happy vertices problem. This problem involves taking a graph in which a subset of the vertices have been preassigned to colours. The objective is to then colour the remaining vertices such that the number of happy vertices is maximised, where a vertex is considered happy only when it is assigned to the same colour as all of its neighbours. We design and test a tabu search approach, which is compared to two existing state of the art methods. We see that this new approach is particularly suited to larger problem instances and finds very good solutions in very short time frames. We also propose a algorithm to find upper bounds for the problem efficiently. Moreover, we propose an algorithm for imposing additional precoloured vertices and are hence able to significantly reduce the solution space. Finally, we present an analysis of this problem and use probabilistic arguments to characterise problem hardness.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

Notes

  1. Note that when the desired number of precoloured vertices \(|V'|\) is less than the number of available colours k, instances cannot be generated. As a result, such parameter combinations are not present in our analyses.

  2. Methods were implemented in C++ and compiled with GCC-5.4.0. Our code is available at http://www.rhydlewis.eu/resources/happytabu.zip. The experiments were conducted on Monash University’s Campus Cluster, where each machine in the cluster consists of 24 cores and 256 GB RAM. Each physical core has two hyper-threaded cores with Intel Xeon E5-2680 v3 2.5GHz, 30M Cache, 9.60GT/s QPI, Turbo, HT, 12C/24T (120W). For tabu search a setting of \(\tau = 2\) was used.

References

  • Agrawal A, (2018) On the parameterized complexity of happy vertex coloring. In: Brankovic L, Ryan J, Smyth W (eds) Combinatorial algorithms. IWOCA, (2017) Lecture notes in computer science, vol 10765. Springer, Cham, pp 103–115

  • Aravind N, Kalyanasundaram S, Kare A (2016) Linear time algorithms for happy vertex coloring problems for trees. In: Mäkinen V, Puglisi S, Salmela L (eds) Combinatorial algorithms. IWOCA 2016. Lecture notes in computer science, vol 9843. Springer, Cham, pp 281–292

    Google Scholar 

  • Barabási AL, Põsfai M (2016) Network science. Cambridge University Press, Cambridge

    Google Scholar 

  • Blöchliger I, Zufferey N (2008) A graph coloring heuristic using partial solutions and a reactive tabu scheme. Computers & Operations Research 35(3):960–975 (Part Special Issue: New Trends in Locational Analysis)

    Article  Google Scholar 

  • Blum C, Roli A (2003) Metaheuristics in combinatorial optimization: overview and conceptual comparison. ACM Comput Surv 35:268–308

    Article  Google Scholar 

  • Carter MW, Laporte G, Lee SY (1996) Examination timetabling: algorithmic strategies and applications. J Oper Res Soc 47(3):373–383

    Article  Google Scholar 

  • Di Gaspero L, Schaerf A (2001) Tabu search techniques for examination timetabling. In: Burke E, Erben W (eds) Practice and theory of automated timetabling III. Springer, Berlin, pp 104–117

    Chapter  Google Scholar 

  • Everitt B, Landau S, Leese M, Stahl D (2011) Cluster analysis. Wiley, Hoboken

    Book  Google Scholar 

  • Glover F, Laguna M (1997) Tabu search. Kluwer Academic Publishers, Norwell

    Book  Google Scholar 

  • Glover F, Laguna M (1999) Tabu search. Springer, Boston, pp 2093–2229

    Google Scholar 

  • Lewis R (2015) A guide to graph colouring: algorithms and applications, 1st edn. Springer, Berlin

    Google Scholar 

  • Lewis R (2020) Tabu search source code. http://www.rhydlewis.eu/resources/happytabu.zip. Accessed 24 Jan 2020

  • Lewis R, Carroll F (2016) Creating seating plans: a practical application. J Oper Res Soc 67(11):1353–1362

    Article  Google Scholar 

  • Lewis R, Thompson J (2015) Analysing the effects of solution space connectivity with an effective metaheuristic for the course timetabling problem. Eur J Oper Res 240(3):637–648

    Article  Google Scholar 

  • Lewis R, Thiruvady D, Morgan K (2019) Finding happiness: an analysis of the maximum happy vertices problem. Comput Oper Res 103:265–276

    Article  Google Scholar 

  • Li A, Zhang P (2015) Algorithmic aspects of homophyly of networks. Theor Comput Sci 593:117–131

    Article  Google Scholar 

  • Mabrouk BB, Hasni H, Mahjoub Z (2009) On a parallel genetic-tabu search based algorithm for solving the graph colouring problem. Eur J Oper Res 197(3):1192–1201

    Article  Google Scholar 

  • McCollum B, Schaerf A, Paechter B, McMullan P, Lewis R, Parkes AJ, Gaspero L, Qu R, Burke EK (2010) Setting the research agenda in automated timetabling: the second international timetabling competition. INFORMS J Comput 22(1):120–130

    Article  Google Scholar 

  • Zhang P, Xu Y, Jiang T, Li A, Lin G, Miyano E (2018) Improved approximation algorithms for the maximum happy vertices and edges problems. Algorithmica 80(5):1412–1438

    Article  Google Scholar 

  • Zufferey N, Amstutz P, Giaccari P (2008) Graph colouring approaches for a satellite range scheduling problem. J Sched 11(4):263–277

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dhananjay Thiruvady.

Ethics declarations

Conflict of interest

The authors guarantee that they have no conflict of interest.

Human and animal rights

This research involves no human participants nor animals.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Thiruvady, D., Lewis, R. & Morgan, K. Tackling the maximum happy vertices problem in large networks. 4OR-Q J Oper Res 18, 507–527 (2020). https://doi.org/10.1007/s10288-020-00431-4

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10288-020-00431-4

Keywords

Mathematics Subject Classification

Navigation