A Modular Derivation Strategy via Fusion and Tupling

نویسندگان

  • Zhenjiang Hu
  • Masato Takeichi
چکیده

We show how programming pearls can be systematically derived via fusion, followed by tupling transformations. By focusing on the elimination of intermediate data structures (fusion) followed by the elimination of redundant calls (tupling), we can systematically realise both space and time e cient algorithms from naive speci cations. We illustrate our approach using a well-known maximum segment sum (MSS) problem, and a lesser-known maximum segment product (MSP) problem. While the two problems share similar speci cations, their optimised codes are signi cantly di erent. This divergence in their transformed codes do not pose any di culty for our approach. In fact, by relying on modular transformation techniques, we are able to systematically reuse both code and transformation in our derivation.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Towards a Modular Program Derivation via Fusion and Tupling

We show how programming pearls can be systematically derived via fusion, followed by tupling transformations. By focusing on the elimination of intermediate data structures (fusion) followed by the elimination of redundant calls (tupling), we systematically realise both space and time efficient algorithms from naive specifications. We illustrate our approach using a well-known maximum segment s...

متن کامل

A Case Study on a Modular Transformation Strategy

Transformational programming is a well-known methodology to derive both correct and e cient programs. But it often requires deep insights to make major jumps during derivation, and so it remains unclear how general a derivation for one problem can be applied to others, particularly to those whose e cient algorithms are unknown. In this paper, we show that it is possible to minimize these deep i...

متن کامل

Formal Derivation of Parallel Program for 2-Dimensional Maximum Segment Sum Problem

It has been attracting much attention to make use of list homomorphisms in parallel programming because they ideally suit the divide-and-conquer parallel paradigm. However, they have been usually treated rather informally and ad-hoc in the development of e cient parallel programs. This paper reports a case study on systematic and formal development of a new parallel program for the 2-dimensiona...

متن کامل

Strategy-aligned fuzzy approach for market segment evaluation and selection: a modular decision support system by dynamic network process (DNP)

In competitive markets, market segmentation is a critical point of business, and it can be used as a generic strategy. In each segment, strategies lead companies to their targets; thus, segment selection and the application of the appropriate strategies over time are very important to achieve successful business. This paper aims to model a strategy-aligned fuzzy approach to market segment ev...

متن کامل

Redundant Call Elimination via Tupling

Redundant call elimination has been an important program optimisation process as it can produce super-linear speedup in optimised programs. In this paper, we investigate use of the tupling transformation in achieving this optimisation over a first-order functional language. Standard tupling technique, as described in [6], works excellently in a restricted variant of the language; namely, functi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997