In this lesson, you will study a new data structure, the linked list, which is used to implement a list of elements arranged in some kind of order. This is the backbone of the LinkedList class that is part of the Java Collections. The linked list structure uses memory that shrinks and grows as needed but not in the same way as arrays. The discussion of linked lists includes the specification and implementation of a node class. This curriculum will use the node class suggested by College Board.
This lesson will present the common manipulations performed on a linked list: adding, removing and traversing. The concepts from this lesson will provide us with the tools to build our own more advanced data structure, the binary search tree.
The key topics for this lesson are:
- Declarations for a Linked List
- Methods for Manipulating Nodes
- Implementing Linked Lists
- Traversing a Linked List - Method printList
- Pitfalls of Linked Data Structures
- Building an Ordered Linked List
- Linked List Algorithms
- Static vs. Dynamic Data Structures
- Doubly-Linked Lists
- Deleting from a Doubly-Linked List
|