On multidimensional generalization of binary search
Abstract
This work generalizes the binary search problem to a d-dimensional domain S1×·s× Sd, where Si=\0, 1, …,ni-1\ and d≥ 1, in the following way. Given (t1,…,td), the target element to be found, the result of a comparison of a selected element (x1,…,xd) is the sequence of inequalities each stating that either ti < xi or ti>xi, for i∈\1,…,d\, for which at least one is correct, and the algorithm does not know the coordinate i on which the correct direction to the target is given. Among other cases, we show asymptotically almost matching lower and upper bounds of the query complexity to be in (nd-1/d) and O(nd) for the case of ni=n. In particular, for fixed d these bounds asymptotically do match. This problem is equivalent to the classical binary search in case of one dimension and shows interesting differences for higher dimensions. For example, if one would impose that each of the d inequalities is correct, then the search can be completed in 2\n1,…,nd\ queries. In an intermediate model when the algorithm knows which one of the inequalities is correct the sufficient number of queries is 2(n1·…· nd). The latter follows from a graph search model proposed by Emamjomeh-Zadeh et al. [STOC 2016].
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.