skip to main content
10.1145/199688.199812acmconferencesArticle/Chapter ViewAbstractPublication PagessigcseConference Proceedingsconference-collections
Article
Free access

Loop invariants and mathematical games

Published: 15 March 1995 Publication History

Abstract

The concept of combining loop invariants with algorithm analysis and design is a significant programming tool. However, teaching this concept is not easy. One way of motivating and supporting the introduction of such a concept, is by illustrating it with attractive examples. In this paper we describe how to illustrate it with mathematical games. In our description, we emphasize the links between heuristic search strategies, pattern exploration, induction, and invariant construction.

References

[1]
Aho, A., and Ulman J.D., Foundations of Computer Science, Freeman and Co., 1992.
[2]
Amow, D., Teaching programming to liberal arts students: Using loop invariants, Proc of the 24th Tech Synp on CS Education, March 1994.
[3]
Astrachan, O., Loop invariants in pictures, Proc of the 22nd Tech Symp on CS Education, March 1991.
[4]
Bright, G.W., Harvey, J.G., and Wheeler, M.M., Game constraints, player verbalizations, and mathematical learning, The Journal of Experimental Education, 49, 1, 1980.
[5]
Chi, M.T.H., and Bassok, M., Learning from examples via self-explanations, Knowing, Learning, and Instruction, Resnick, L.B, editor, Lawrence Erlbaum Associates, 1989.
[6]
Dijkstra, E.W., A Discipline of Programming, Prentice-Hall, 1976.
[7]
Floyd, R., Assigning meaning to programs, Mathematical Aspects of Computer Science, XIX American Mathematical society, 1967.
[8]
Gries, D., The Science of Programming, Springer-Verlag, 1981.
[9]
Hoare, C.A.R., An Axiomatic basis for computer programming, CA CM, 12, 5, May 1969.
[10]
Manber, U., Using induction to design algorithms, CACM, 31,11, November 1988.
[11]
Nesher, P., Microworlds in mathematical education: a pedagogical realism. Knowing, Learning, and Instruction, Resnick, L.B, editor, Lawrence Erlbaum Associates, 1989.
[12]
Polya, G., How to solve it, Princeton Univ Press, 1957.
[13]
Schoenfeld, A., Mathematical problem solving, Academic-Press, 1985.
[14]
Sclaoenfeld, A., Learning to think mathematically" problem solving, metacognition, and sense making in mathematics, Handbook of Ra~areh on Mathematics Teaching and Learning, Macmillan, 1992.
[15]
Tam, W., Teaching Loop Invariants to Beginners by examples, Proc of the' 23rd Tech Symp on CS Education, March 1992.
[16]
Troeger, D., Experiences teaching loop invariants to beginners, Logic, Loops and Literacy Workshop, May 1993.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
SIGCSE '95: Proceedings of the twenty-sixth SIGCSE technical symposium on Computer science education
March 1995
436 pages
ISBN:089791693X
DOI:10.1145/199688
  • Chairman:
  • Cary Laxer,
  • Editors:
  • Curt M. White,
  • James E. Miller,
  • Judy Gersting
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]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 15 March 1995

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Conference

SIGCSE95
Sponsor:

Acceptance Rates

Overall Acceptance Rate 1,595 of 4,542 submissions, 35%

Upcoming Conference

SIGCSE TS 2025
The 56th ACM Technical Symposium on Computer Science Education
February 26 - March 1, 2025
Pittsburgh , PA , USA

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)81
  • Downloads (Last 6 weeks)22
Reflects downloads up to 09 Feb 2025

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media