Abstract

We investigate the algorithmic problems of the {\it homophyly phenomenon} in networks. Given an undirected graph G=(V,E)G = (V, E) and a vertex coloring c ⁣:V→1,2,...,kc \colon V \rightarrow {1, 2, ..., k} of GG, we say that a vertex v∈Vv\in V is {\it happy} if vv shares the same color with all its neighbors, and {\it unhappy}, otherwise, and that an edge e∈Ee\in E is {\it happy}, if its two endpoints have the same color, and {\it unhappy}, otherwise. Supposing cc is a {\it partial vertex coloring} of GG, we define the Maximum Happy Vertices problem (MHV, for short) as to color all the remaining vertices such that the number of happy vertices is maximized, and the Maximum Happy Edges problem (MHE, for short) as to color all the remaining vertices such that the number of happy edges is maximized. Let kk be the number of colors allowed in the problems. We show that both MHV and MHE can be solved in polynomial time if k=2k = 2, and that both MHV and MHE are NP-hard if k≥3k \geq 3. We devise a max⁡1/k,Ω(Δ−3)\max {1/k, Ω(Δ^{-3})}-approximation algorithm for the MHV problem, where ΔΔ is the maximum degree of vertices in the input graph, and a 1/2-approximation algorithm for the MHE problem. This is the first theoretical progress of these two natural and fundamental new problems.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.