skip to main content
article
Free Access

LongNbrs and palindromes: an interesting application of a class

Published:01 March 1998Publication History
Skip Abstract Section

Abstract

What started off as an enrichment assignment for a third grader has developed into a rich source of programming assignments. The long integers, needed to determine whether a number eventually becomes a palindrome under the process of reversal and addition, can be described as an abstract data type and implemented as a C++ class. There are intriguing open questions which call for great creativity and efficiency in terms of data structures. Even graphics have been employed to illuminate the problem. The next step is probably parallel processing.

References

  1. 1 C.W. THgg, Palindromes by Addition. Mathematics Magazine~ 40, 26-28 (1967).Google ScholarGoogle ScholarCross RefCross Ref
  2. 2 C.W. Trigg, More on Palindromes by Reversal-addition. Mathematics Magazine, 45, 184-186 (1972).Google ScholarGoogle ScholarCross RefCross Ref
  3. 3 H. Harborth, on Palindromes, Mathematics Magazine, 46, 96-99 (1973).Google ScholarGoogle ScholarCross RefCross Ref
  4. 4 Ryan Richardson and Christine Shannon, Palindrome Pictures, Computers and Graphics, 20, 597-603 (1996).Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. LongNbrs and palindromes: an interesting application of a class

        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 SIGCSE Bulletin
          ACM SIGCSE Bulletin  Volume 30, Issue 1
          Mar. 1998
          376 pages
          ISSN:0097-8418
          DOI:10.1145/274790
          Issue’s Table of Contents
          • cover image ACM Conferences
            SIGCSE '98: Proceedings of the twenty-ninth SIGCSE technical symposium on Computer science education
            March 1998
            396 pages
            ISBN:0897919947
            DOI:10.1145/273133

          Copyright © 1998 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 March 1998

          Check for updates

          Qualifiers

          • article
        • Article Metrics

          • Downloads (Last 12 months)11
          • Downloads (Last 6 weeks)4

          Other Metrics

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader