Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/800178.810103acmconferencesArticle/Chapter ViewAbstractPublication Pagesacm-national-conferenceConference Proceedingsconference-collections
Article
Free access

Programming with abstract data types, some examples

Published: 01 January 1978 Publication History

Abstract

The data structuring facilities of contemporary languages like Algol-68, Pascal and Simula supports only one type of graphs, the general graph. It is only possible to define the structure of a node in a graph, not to define how the nodes are interrelated. Nothing in the languages prevents the programmer from using for instance a node in a binary tree as an element in a double list. This means that the programmer has to prove a lot of invariants on graphs which would not be necessary if the language supported declarations of different graphs.
This paper contains some examples of algorithms on different graphs. We use a presentation language which is based on Pascal. We have replaced the pointers in Pascal with a set of type constructors. These type constructors give us a possibility to manipulate different graphs in a safe way.

References

[1]
Dijkstra EW: A note on two problems in connexion with graphs. Numerische Matematik 1,269-271 (1959).
[2]
Nordström Bengt: Some concepts for very high level languages without explicit pointers, Ph D thesis. University of Umeá, Sweden.
[3]
Scott D: Data types as lattices, Siam Journal on computing, 5 (1976), pp 522-587
[4]
Scott D: Lattice theory, data types and semantics, NYU Symposium on formal semantics (ed R. Rustin), Prentice Hall, NY (1972)
[5]
Bauer, Eickel (ed): Compiler Construction, an advanced course. Springer Lecture Notes 21, Berlin 1974.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ACM '78: Proceedings of the 1978 annual conference - Volume 2
January 1978
990 pages
ISBN:0897910001
DOI:10.1145/800178
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: 01 January 1978

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Graphs
  2. Mappings
  3. Pascal
  4. Pointers

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 299
    Total Downloads
  • Downloads (Last 12 months)48
  • Downloads (Last 6 weeks)13
Reflects downloads up to 10 Oct 2024

Other Metrics

Citations

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media