English

Classification via Two-Way Comparisons

Data Structures and Algorithms 2025-01-28 v2

Abstract

Given a weighted, ordered query set QQ and a partition of QQ into classes, we study the problem of computing a minimum-cost decision tree that, given any query qq in QQ, uses equality tests and less-than comparisons to determine the class to which qq belongs. Such a tree can be much smaller than a lookup table, and much faster and smaller than a conventional search tree. We give the first polynomial-time algorithm for the problem. The algorithm extends naturally to the setting where each query has multiple allowed classes.

Keywords

Cite

@article{arxiv.2302.09692,
  title  = {Classification via Two-Way Comparisons},
  author = {Marek Chrobak and Neal E. Young},
  journal= {arXiv preprint arXiv:2302.09692},
  year   = {2025}
}

Comments

Appears in WADS 2023 and TALG 2024

R2 v1 2026-06-28T08:44:01.785Z