Polynomial-time Construction of Optimal Tree-structured Communication Data Layout Descriptions
نویسندگان
چکیده
We show that the problem of constructing tree-structured descriptions of data layouts that are optimal with respect to space or other criteria, from given sequences of displacements, can be solved in polynomial time. The problem is relevant for efficient compiler and library support for communication of non-contiguous data, where tree-structured descriptions with low-degree nodes and small index arrays are beneficial for the communication softand hardware. An important example is the Message-Passing Interface (MPI) which has a mechanism for describing arbitrary data layouts as trees using a set of increasingly general constructors. Our algorithm shows that the so-called MPI datatype reconstruction problem by trees with the full set of MPI constructors can be solved optimally in polynomial time, refuting previous conjectures that the problem is NP-hard. Our algorithm can handle further, natural constructors, currently not found in MPI. Our algorithm is based on dynamic programming, and requires the solution of a series of shortest path problems on an incrementally built, directed, acyclic graph. The algorithm runs in O(n) time steps and requires O(n) space for input displacement sequences of length n.
منابع مشابه
A POLYNOMIAL TIME BRANCH AND BOUND ALGORITHM FOR THE SINGLE ITEM ECONOMIC LOT SIZING PROBLEM WITH ALL UNITS DISCOUNT AND RESALE
The purpose of this paper is to present a polynomial time algorithm which determines the lot sizes for purchase component in Material Requirement Planning (MRP) environments with deterministic time-phased demand with zero lead time. In this model, backlog is not permitted, the unit purchasing price is based on the all-units discount system and resale of the excess units is possible at the order...
متن کاملOn a Class of Constructible Neural Networks
We propose a new class of artiicial neural networks for regression tasks and its construction algorithm. These networks have two diierent but isomorphic layouts. The tree-structured layout is used and built up during the construction phase and it can be used for accelerated serial evaluation of the network. The three-layer layout can be derived from the tree-structured layout by a simple mappin...
متن کاملSXPath - Extending XPath towards Spatial Querying on Web Documents
Querying data from presentation formats like HTML, for purposes such as information extraction, requires the consideration of tree structures as well as the consideration of spatial relationships between laid out elements. The underlying rationale is that frequently the rendering of tree structures is very involved and undergoing more frequent updates than the resulting layout structure. Theref...
متن کاملMaintenance of a Spanning Tree in
Many crucial network tasks such as database maintenance can be eeciently carried out given a tree that spans the network. By maintaining such a spanning tree, rather than constructing it "from-scratch" due to every topology change, one can improve the eeciency of the tree construction, as well as the eeciency of the protocols that use the tree. We present a protocol for this task which has comm...
متن کاملSensor Network Lifetime Maximization Via Sensor Energy Balancing: Construction and Optimal Scheduling of Sensor Trees
In this paper we consider state estimation carried over a sensor network. A fusion center forms a local multihop tree of sensors and fuses the data into a state estimate. A set of sensor trees with desired properties is constructed, and those sensor trees are scheduled in such a way that the network lifetime is maximized. The sensor tree construction and scheduling algorithms are shown to have ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1506.09100 شماره
صفحات -
تاریخ انتشار 2015