ArticleslgStudy

computer science

Walls and Mirrors

Walls and Mirrors is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Walls and Mirrors rather than just read about it. In short: Walls And Mirrors is a computer science textbook, for undergraduates taking a second computer science course (typically on the subject of data structures and algorithms), originally written by Paul Helman and Robert Veroff. The book attempts to strike a balance between being too mathematically rigorous and formal, and being so informal, practical, and hands-on that computer science theory is not taught.

Walls and Mirrors — main illustration
Walls and Mirrors — illustration

Key takeaways

  • Walls and Mirrors belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Walls and Mirrors to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Walls and Mirrors from memory before moving on to harder problems.

Reference excerpt

Walls And Mirrors is a computer science textbook, for undergraduates taking a second computer science course (typically on the subject of data structures and algorithms), originally written by Paul Helman and Robert Veroff. The book attempts to strike a balance between being too mathematically rigorous and formal, and being so informal, practical, and hands-on that computer science theory is not taught. The "walls" of the title refer to the abstract data type (ADT) which has a wall between its public interface and private implementation. Early languages like Pascal did not build this wall very high; later languages like Modula-2 did create a much stronger wall between the two; and object-oriented languages such as C++ and Java implement walls using the class concept. The "mirrors" of the title refer to recursion. The idea is of looking at a reflection in two mirrors placed in opposition to one another, so a repeated image is reflected smaller and smaller in them.

Editions The first edition, which used the language Pascal, was published in 1986. An edition that used Modula-2 was published in 1988. Modula-2 had much better support for the sort of ADT the book taught than Pascal. Later editions from the mid-1990s and the 2000s used C++ and Java, reflecting a fundamental shift in how computer science was taught. The original authors' names have been removed from the most recent editions of the book.

Publication history Walls and Mirrors, Intermediate Problem Solving and Data Structures (Pascal edition) (1986), Paul Helman and Robert Veroff. ISBN 0-8053-8940-7 (Benjamin Cummings Publishing Co.) Walls and Mirrors, Intermediate Problem Solving and Data Structures (Modula-2 edition) (1988), Paul Helman and Robert Veroff. ISBN 0-8053-8945-8 (Benjamin Cummings Publishing Co.) Intermediate Problem Solving and Data Structures: Walls and Mirrors, Second Pascal edition, (1991), Paul Helman, Robert Veroff, and Frank M. Carrano. ISBN 0-8053-0321-9 (Benjamin Cummings Publishing Co.) Data Structures and Problem Solving with Turbo Pascal: Walls and Mirrors, (1993), Frank M. Carrano, Paul Helman, and Robert Veroff. ISBN 0-8053-1217-X (Benjamin Cummings Publishing Co.) Data Abstraction and Problem Solving with C++: Walls and Mirrors, (1995), Frank M. Carrano, Paul Helman, and Robert Veroff. ISBN 0-8053-1226-9 (Benjamin Cummings Publishing Co.) Data Abstraction and Problem Solving with C++: Walls and Mirrors, Second edition, (1998), Frank M. Carrano, Paul Helman, and Robert Veroff. ISBN 0-201-87402-4 (Addison Wesley Longman, Inc.) Data Abstraction and Problem Solving with Java: Walls and Mirrors, (2001), Frank M. Carrano and Janet J. Prichard. ISBN 0-201-70220-7. (Addison Wesley Longman, Inc.) Data Abstraction and Problem Solving with C++: Walls and Mirrors, Third edition, (2002), Frank M. Carrano and Janet J. Prichard. ISBN 0-201-74119-9 (Pearson Education, Inc.) Data Abstraction and Problem Solving with Java: Walls and Mirrors, Updated edition (2004), Frank M. Carrano and Janet J. Prichard. ISBN 0-321-19717-8 (.) Data Abstraction and Problem Solving with C++: Walls and Mirrors, Fourth edition, (2005), Frank M. Carrano. ISBN 0-321-24725-6 (Pearson Education, Inc.) Data Abstraction and Problem Solving with Java: Walls and Mirrors, Second edition, (2006), Frank M. Carrano and Janet J. Prichard. ISBN 0-321-30428-4. (Pearson/Addison Wesley) Data Abstraction and Problem Solving with C++: Walls and Mirrors, Fifth edition, (2007), Frank M. Carrano. ISBN 0-321-43332-7. (Pearson Education, Inc.) Data Abstraction and Problem Solving with Java: Walls and Mirrors, Third edition, (2011), Janet J. Prichard and Frank M. Carrano. ISBN 0-13-212230-8. (Addison Wesley, an imprint of Pearson) Data Abstraction and Problem Solving with C++: Walls and Mirrors, Sixth edition, (2013), Frank M. Carrano and Timothy M. Henry. ISBN 0-13-292372-6. (Pearson Education, Inc.) Data Abstraction and Problem Solving with C++: Walls and Mirrors, Seventh edition, (2017), Frank M. Carrano and Timothy M. Henry. ISBN 0-13-446397-8. (Pearson Education, Inc.)

Worked examples

Example 1 — a first encounter with Walls and Mirrors

Start with the simplest possible case. Write down what Walls and Mirrors claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Walls and Mirrors before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Walls and Mirrors ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Walls and Mirrors

In research
Walls and Mirrors appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Walls and Mirrors in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Walls and Mirrors is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1986 non-fiction books, 1988 non-fiction books, 2004 non-fiction books, so understanding it makes those chapters shorter.
In everyday life
Look for Walls and Mirrors outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Walls and Mirrors” →

How to study Walls and Mirrors in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Walls and Mirrors means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Walls and Mirrors out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Walls and Mirrors in simple terms?

Walls And Mirrors is a computer science textbook, for undergraduates taking a second computer science course (typically on the subject of data structures and algorithms), originally written by Paul Helman and Robert Veroff. The book attempts to strike a balance between being too mathematically rigo…

Why does Walls and Mirrors matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Walls and Mirrors?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Walls and Mirrors.

Tags

  • 1986 non-fiction books
  • 1988 non-fiction books
  • 2004 non-fiction books
  • Computer science textbooks

Keep exploring