A Simple Algorithm for Optimal Search Trees with Two-Way Comparisons

03/01/2021
by   Marek Chrobak, et al.
0

We present a simple O(n^4)-time algorithm for computing optimal search trees with two-way comparisons. The only previous solution to this problem, by Anderson et al., has the same running time, but is significantly more complicated and is restricted to the variant where only successful queries are allowed. Our algorithm extends directly to solve the standard full variant of the problem, which also allows unsuccessful queries and for which no polynomial-time algorithm was previously known. The correctness proof of our algorithm relies on a new structural theorem for two-way-comparison search trees.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/10/2019

A Fast Max Flow Algorithm

In 2013, Orlin proved that the max flow problem could be solved in O(nm)...
research
01/12/2019

On Huang and Wong's Algorithm for Generalized Binary Split Trees

Huang and Wong [5] proposed a polynomial-time dynamic-programming algori...
research
04/23/2018

Generalized comparison trees for point-location problems

Let H be an arbitrary family of hyper-planes in d-dimensions. We show th...
research
02/19/2023

Classification via two-way comparisons

Given a weighted, ordered query set Q and a partition of Q into classes,...
research
12/27/2021

Quantum Algorithm for the Longest Trail Problem

We present the quantum algorithm for the Longest Trail Problem. The prob...
research
11/15/2018

Computing Quartet Distance is Equivalent to Counting 4-Cycles

The quartet distance is a measure of similarity used to compare two unro...
research
03/30/2020

A Faster Subquadratic Algorithm for the Longest Common Increasing Subsequence Problem

The Longest Common Increasing Subsequence (LCIS) is a variant of the cla...

Please sign up or login with your details

Forgot password? Click here to reset