skip to main content
article
Free Access

Some uses of truncated Boolean vectors in analysis

Published:01 May 1990Publication History
Skip Abstract Section

Abstract

The truncated first occurrence vector (TFOV) is a data construct which the author has found useful in a variety of application areas. It is based on comparisons of adjacent items in a set ordered by some criterion.

The use of the TFOV and its several derivatives improve efficiency and reduce the load on system resources. A contributing factor in performance improvement is the algorithm used in the APL implementations of monadic grade and its offshoot dyadic grade. It is interesting to note that an ordered set improves the efficiency of processes other than those utilizing the TFOV. Calculation of the range and median of a numeric set is an example of this.

As new primitives have been added to APL, construction and generation of the TFOV has been simplified. The paper shows both the early and the later idioms used in programs. The techniques for calculating frequency distributions and the related statistical mode or modes are shown. The development of sub-totals by group in simple (single criterion) and hierarchical cases are illustrated. The generation of (ordered) defining subsets and “arrival” and “departure” sequences are shown. Along with the ordered defining subset (ODS) a pointer to the ODS can be developed. This technique has been found useful in applications requiring data compaction.

The TFOV has proven useful in the development of control vectors for formatting tables especially for insertion of sub-total. A function for pagination of documents which eliminates “widows” has been developed, as have functions for reformatting paragraphs in text processing. In these latter cases, while the ordering algorithm is simply that of position, the concept is a direct outgrowth of experience with the TFOV.

The techniques and concepts discussed in this paper are not intended to be exhaustive but are intended to stimulate programmers in considering an approach often overlooked. It is interesting to note that, while these ideas are applicable in other languages, their recognition required the primitives and arrays of APL.

Index Terms

  1. Some uses of truncated Boolean vectors in analysis

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      • Published in

        cover image ACM SIGAPL APL Quote Quad
        ACM SIGAPL APL Quote Quad  Volume 20, Issue 4
        APL 90: for the future conference proceedings (Copenhagen, Denmark, Aug. 13–17, 1990)
        July 1990
        425 pages
        ISSN:0163-6006
        DOI:10.1145/97811
        Issue’s Table of Contents
        • cover image ACM Conferences
          APL '90: Conference proceedings on APL 90: for the future
          May 1990
          438 pages
          ISBN:089791371X
          DOI:10.1145/97808

        Copyright © 1990 Author

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 1 May 1990

        Check for updates

        Qualifiers

        • article
      • Article Metrics

        • Downloads (Last 12 months)21
        • Downloads (Last 6 weeks)1

        Other Metrics

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader