Optimal Seat Arrangement: What Are the Hard and Easy Cases?

Esra Ceylan, Jiehua Chen, Sanjukta Roy

Abstract

We study four NP-hard optimal seat arrangement problems [Bodlaender et al., 2020a], which each have as input a set of $n$ agents, where each agent has cardinal preferences over other agents, and an $n$-vertex undirected graph (called seat graph). The task is to assign each agent to a distinct vertex in the seat graph such that either the sum of utilities or the minimum utility is maximized, or it is envy-free or exchange-stable. Aiming at identifying hard and easy cases, we extensively study the algorithmic complexity of the four problems by looking into natural graph classes for the seat graph (e.g., paths, cycles, stars, or matchings), problem-specific parameters (e.g., the number of non-isolated vertices in the seat graph or the maximum number of agents towards whom an agent has non-zero preferences), and preference structures (e.g., non-negative or symmetric preferences). For strict preferences and seat graphs with disjoint edges and isolated vertices, we correct an error by Bodlaender et al. [2020b] and show that finding an envy-free arrangement remains NP-hard in this case.

Introduction

The Optimal Seat Arrangement problem involves placing agents with specific social preferences into a seating graph. Imagine organizing a high-stakes dinner party or a corporate office layout where every guest has a "utility" score for every other guest. Their total happiness depends on who sits in the adjacent seats.

The problem is formalized as a graph problem where agents are assigned to vertices, and edges represent physical adjacency. We consider four distinct objectives:

  1. Max Welfare (MWA): Maximize the total utility of all agents.
  2. Maxmin Utility (MUA): Maximize the utility of the least satisfied agent.
  3. Envy-Free (EFA): Ensure no agent would prefer another agent's seat.
  4. Exchange-Stable (ESA): Ensure no two agents would both benefit from swapping seats.
Example of preferences and seat graphs $\sigma_1, \sigma_2$.

While these problems are generally NP-hard, this research seeks to identify the boundary between computational tractability and intractability by varying graph structures and preference types.

Methods

The study utilizes the framework of parameterized complexity to isolate specific factors that contribute to problem hardness. Key parameters investigated include:

  • $k$: The number of non-isolated vertices in the seat graph (the "active" part of the room).
  • $\Delta^+$: The maximum out-degree in the preference graph, representing the maximum number of agents any single agent actually cares about.

To establish tractability (Fixed-Parameter Tractability or FPT), the authors employ techniques such as color-coding, dynamic programming (specifically for paths and cycles), and random separation. Hardness results (W[1]-hardness or NP-hardness) are established through reductions from classic problems like CLIQUE or HAMILTONIAN PATH.

Complexity Map and Key Results

The core contribution of this work is a comprehensive "complexity map" that classifies the four problems across various graph classes (paths, cycles, stars, matchings, cliques) and preference constraints (non-negative, symmetric).

Summary of complexity results for MWA, MUA, EFA, and ESA across different parameters and graph classes.

Key findings include:

  • MWA and MUA are generally easier, becoming FPT with respect to $k$ for paths, cycles, and stars.
  • EFA and ESA are significantly more difficult, remaining W[1]-hard with respect to $k$ for most graph classes unless preferences are symmetric.
  • Symmetry as a Simplifier: Symmetric preferences (where $u(a, b) = u(b, a)$) often reduce the complexity of Max Welfare problems, making them significantly easier to solve algorithmically.
  • Structural Hardness: Even simple seating arrangements like a single row (path graph) can be NP-hard for Envy-Free or Exchange-Stable objectives.
  • Correction of Previous Work: The authors identify and fix an error in previous literature, proving that finding an envy-free arrangement is NP-hard even for matchings (isolated pairs) under strict preferences.

Discussion and Future Directions

The research highlights that the problem is most intractable when agents have opinions about a large number of others in complex seating charts. When the number of "active" seats ($k$) and the number of known agents ($\Delta^+$) are both small, the problems typically become FPT.

Future work could address the complexity of Exchange-Stable Arrangements on star graphs, which remains partially open. Additionally, exploring 2D grid graphs—common in real-world seating like theaters and classrooms—and multi-objective optimization (e.g., finding arrangements that are both high-welfare and envy-free) are promising avenues for further study.

Summary updated

Abstract

We study four NP-hard optimal seat arrangement problems [Bodlaender et al., 2020a], which each have as input a set of n agents, where each agent has cardinal preferences over other agents, and an n-vertex undirected graph (called seat graph). The task is to assign each agent to a distinct vertex in the seat graph such that either the sum of utilities or the minimum utility is maximized, or it is envy-free or exchange-stable. Aiming at identifying hard and easy cases, we extensively study the algorithmic complexity of the four problems by looking into natural graph classes for the seat graph (e.g., paths, cycles, stars, or matchings), problem-specific parameters (e.g., the number of non-isolated vertices in the seat graph or the maximum number of agents towards whom an agent has non-zero preferences), and preference structures (e.g., non-negative or symmetric preferences). For strict preferences and seat graphs with disjoint edges and isolated vertices, we correct an error by Bodlaender et al. [2020b] and show that finding an envy-free arrangement remains NP-hard in this case.
BibTeX
@inproceedings{ceylan2023optimal,
  author = {Esra Ceylan and Jiehua Chen and Sanjukta Roy},
  title = {{Optimal Seat Arrangement: What Are the Hard and Easy Cases?}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/285},
}
Figure