9

Linked Lists

Linked Lists Linked Lists

Contents

  • Limitations of arrays
  • Linked lists as dynamic structures
  • Linked list operations
  • Circular lists, doubly linked lists
  • Implementing lists
9.1 INTRODUCTION

Discussion so far has dealt with lists in the form of arrays. Let us examine the concept of a list itself in more detail. We will describe it as an abstract data type (ADT) in terms of what it is and the operations it should be capable of, before considering how it may be created in practice. We shall then choose a strategy to implement the ADT as an actual structure.

There are a number of ways of describing an ADT, and we shall do so in an informal functional ...

Get Introducing Data Structures with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.