کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
427214 686470 2013 5 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Building Cartesian trees from free trees with k leaves
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Building Cartesian trees from free trees with k leaves
چکیده انگلیسی


• We propose faster algorithms for building Cartesian trees from free trees.
• We derive matching lower bounds for our algorithms.
• Our results highlight interesting structural properties of Cartesian trees.

One can build a Cartesian tree from an n-element sequence in O(n) time, and from an n-node free tree in time (with a matching worst-case lower bound in the comparison model of computation). We connect these results together by describing a Cartesian tree construction algorithm based on a “bitonicity transform” running in time on a free tree with k leaves, noting that a path is the special case of a tree with just 2 leaves. We also provide a matching worst-case lower bound in the comparison model.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Information Processing Letters - Volume 113, Issue 9, 15 May 2013, Pages 345-349