Skip to main content
QUICK REVIEW

[Paper Review] Algorithms and hardness results for happy coloring problems

N. R. Aravind, Subrahmanyam Kalyanasundaram|arXiv (Cornell University)|May 23, 2017
Advanced Graph Theory ResearchComputer Science18 references15 citations
TL;DR

This paper studies the algorithmic complexity of happy coloring problems—maximizing happy edges or vertices in a partially k-colored graph—proving NP-completeness for k ≥ 3 on bipartite and split graphs, and presenting exact algorithms running in O*(2^n) time, with a faster O*(1.89^n) algorithm for k=3. It also gives linear vertex kernels for weighted variants and polynomial-time solutions for graphs of bounded treewidth or neighborhood diversity.

ABSTRACT

In a vertex-colored graph, an edge is happy if its endpoints have the same color. Similarly, a vertex is happy if all its incident edges are happy. Motivated by the computation of homophily in social networks, we consider the algorithmic aspects of the following Maximum Happy Edges (k-MHE) problem: given a partially k-colored graph G, find an extended full k-coloring of G maximizing the number of happy edges. When we want to maximize the number of happy vertices, the problem is known as Maximum Happy Vertices (k-MHV). We further study the complexity of the problems and their weighted variants. For instance, we prove that for every k >= 3, both problems are NP-complete for bipartite graphs and k-MHV remains hard for split graphs. In terms of exact algorithms, we show both problems can be solved in time O*(2^n), and give an even faster O*(1.89^n)-time algorithm when k = 3. From a parameterized perspective, we give a linear vertex kernel for Weighted k-MHE, where edges are weighted and the goal is to obtain happy edges of at least a specified total weight. Finally, we prove both problems are solvable in polynomial-time when the graph has bounded treewidth or bounded neighborhood diversity.

Motivation & Objective

  • To investigate the computational complexity of maximizing happy edges and vertices in partially k-colored graphs.
  • To extend hardness results beyond general graphs to specific classes such as bipartite and split graphs.
  • To develop exact exponential-time algorithms for the unweighted and weighted variants of the problems.
  • To explore parameterized complexity, particularly kernelization for the weighted versions.
  • To identify tractable graph classes where the problems can be solved in polynomial time.

Proposed method

  • Prove NP-completeness for k-MHE and k-MHV on bipartite and split graphs via reductions from known NP-hard problems.
  • Design an O*(2^n)-time algorithm for both k-MHE and k-MHV using dynamic programming over vertex subsets.
  • Optimize the time complexity to O*(1.89^n) for k=3 using tailored branching strategies.
  • Construct a weighted graph H by merging uncolored and same-colored vertices, reducing the problem to a smaller instance.
  • Leverage neighborhood diversity t to design O*(2^t)-time algorithms by exploiting structural symmetry in vertex neighborhoods.
  • Prove existence of optimal colorings where each uncolored set is monochromatic, enabling efficient kernelization and reduction to smaller instances.

Experimental results

Research questions

  • RQ1Is the k-MHE problem NP-complete for bipartite graphs when k ≥ 3?
  • RQ2Does k-MHV remain NP-hard on split graphs for k ≥ 3?
  • RQ3Can the k-MHE and k-MHV problems be solved in subexponential time for graphs of bounded treewidth or neighborhood diversity?
  • RQ4What is the best possible time complexity for solving k-MHE and k-MHV when k=3?
  • RQ5Does the weighted version of k-MHV admit a polynomial kernel when parameterized by solution size?

Key findings

  • For every k ≥ 3, both k-MHE and k-MHV are NP-complete on bipartite graphs.
  • k-MHV is NP-complete on split graphs for every k ≥ 3.
  • The unweighted k-MHE and k-MHV problems can be solved in O*(2^n) time, with a faster O*(1.89^n) algorithm for k=3.
  • Weighted k-MHE admits a linear vertex kernel, enabling efficient parameterized computation.
  • Both k-MHE and k-MHV are solvable in polynomial time when the input graph has bounded treewidth or bounded neighborhood diversity.
  • There exists an optimal coloring where each uncolored set is monochromatic, enabling efficient reduction to smaller graphs via vertex merging.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.