Classification via Two-Way Comparisons
Data Structures and Algorithms
2025-01-28 v2
Abstract
Given a weighted, ordered query set and a partition of into classes, we study the problem of computing a minimum-cost decision tree that, given any query in , uses equality tests and less-than comparisons to determine the class to which 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.
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