Table of Contents

1.1 Data structures
1.2 Introduction to algorithms
1.3 Relation between data structures and algorithms
1.4 Abstract data types
1.5 Applications of ADTs
1.6 Algorithm efficiency

2.1 Searching and algorithms
2.2 Binary search
2.3 Python: Linear and binary search
2.4 Constant time operations
2.5 Growth of functions and complexity
2.6 O notation
2.7 Algorithm analysis
2.8 Recursive definitions
2.9 Recursive algorithms
2.10 Analyzing the time complexity of recursive algorithms

3.1 Sorting: Introduction
3.2 Selection sort
3.3 Python: Selection sort
3.4 Insertion sort
3.5 Python: Insertion sort
3.6 Shell sort
3.7 Python: Shell sort
3.8 Quicksort
3.9 Python: Quicksort
3.10 Merge sort
3.11 Python: Merge sort
3.12 Radix sort
3.13 Python: Radix sort
3.14 Overview of fast sorting algorithms
3.15 Python: Sorting with different operators

4.1 List abstract data type (ADT)
4.2 Singly-linked lists
4.3 Singly-linked lists: Insert
4.4 Singly-linked lists: Remove
4.5 Linked list search
4.6 Python: Singly-linked lists
4.7 Doubly-linked lists
4.8 Doubly-linked lists: Insert
4.9 Doubly-linked lists: Remove
4.10 Python: Doubly-linked lists
4.11 Linked list traversal
4.12 Sorting linked lists
4.13 Python: Sorting linked lists
4.14 Linked list dummy nodes
4.15 Linked lists: Recursion
4.16 Array-based lists
4.17 Python: Array-based list

5.1 Stack abstract data type (ADT)
5.2 Stacks using linked lists
5.3 Python: Array-based stacks
5.4 Queue abstract data type (ADT)
5.5 Queues using linked lists
5.6 Python: Array-based queues
5.7 Python: Stacks and queues using linked lists
5.8 Deque abstract data type (ADT)

6.1 Hash tables
6.2 Chaining
6.3 Linear probing
6.4 Quadratic probing
6.5 Double hashing
6.6 Hash table resizing
6.7 Common hash functions
6.8 Direct hashing
6.9 Hashing Algorithms: Cryptography, Password Hashing
6.10 Python: Hash tables

7.1 Binary trees
7.2 Applications of trees
7.3 Binary search trees
7.4 BST search algorithm
7.5 BST insert algorithm
7.6 BST remove algorithm
7.7 BST inorder traversal
7.8 BST height and insertion order
7.9 BST parent node pointers
7.10 BST: Recursion
7.11 Tries
7.12 Python: Binary search tree

8.1 AVL: A balanced tree
8.2 AVL rotations
8.3 AVL insertions
8.4 AVL removals
8.5 Python: AVL Trees
8.6 Red-black tree: A balanced tree
8.7 Red-black tree: Rotations
8.8 Red-black tree: Insertion
8.9 Red-black tree: Removal
8.10 Python: Red-black trees

9.1 Heaps
9.2 Heaps using arrays
9.3 Python: Heaps
9.4 Heap sort
9.5 Python: Heap sort
9.6 Priority queue abstract data type (ADT)
9.7 Treaps

10.1 Set abstract data type
10.2 Set operations
10.3 Static and dynamic set operations
10.4 Python: Set implementation

11.1 Graphs: Introduction
11.2 Applications of graphs
11.3 Graph representations: Adjacency lists
11.4 Graph representations: Adjacency matrices
11.5 Graphs: Breadth-first search
11.6 Graphs: Depth-first search
11.7 Directed graphs
11.8 Weighted graphs
11.9 Python: Graphs
11.10 Python: Breadth-first search
11.11 Python: Depth-first search
11.12 Python: Dijkstra’s shortest path
11.13 Algorithm: Dijkstra’s shortest path
11.14 Algorithm: Bellman-Ford’s shortest path
11.15 Python: Bellman-Ford’s shortest path
11.16 Topological sort
11.17 Python: Topological sort
11.18 Minimum spanning tree
11.19 Python: Minimum spanning tree
11.20 All pairs shortest path
11.21 Python: All pairs shortest path

12.1 Huffman compression
12.2 Heuristics
12.3 Python: Heuristics
12.4 Greedy algorithms
12.5 Python: Greedy algorithms
12.6 Dynamic programming
12.7 Python: Dynamic programming

13.1 B-trees
13.2 2-3-4 tree search algorithm
13.3 2-3-4 tree insert algorithm
13.4 2-3-4 tree rotations and fusion
13.5 2-3-4 tree removal
13.6 Python: 2-3-4 trees

14.1 Bubble sort
14.2 Quickselect
14.3 Python: Quickselect
14.4 Bucket sort
14.5 List data structure
14.6 Circular lists

What You’ll Find In This zyBook:

More action with less text.

  • Uses pseudocode to teach essential data structures and algorithms, helping readers master the fundamental concepts.
  • Python-specific sections are also included, providing Python implementations of many of the data structures and algorithms.
  • Animations and tools are an excellent match for teaching data structures
  • Includes test banks

Instructors: Interested in evaluating this zyBook for your class?

The zyBooks Approach

Less text doesn’t mean less learning.

Studying data structures and algorithms often represents a person’s first study of the “science” of computing, beyond just programming. Mastery of these concepts is part of the foundation of the discipline of computing, leading to computing professionals as distinct from programmers.

Data structures is an extremely visual subject, forming an excellent match for the extensive use of animations that typifies a zyBook. Embedded learning questions help the reader understand and remember concepts.

The content is maximally modular to enable configuration by instructors. Instructors can rearrange sections, set sections as optional, add instructor’s notes to sections, and more. This zyBook can also be mixed-and-matched with others, such as with the Programming in Python zyBook; contact sales@zybooks.com for information.

“It is already clear that this represents the future of programming text books. Its basic expository content is the equal of any paper text, but it really shines in using the natural advantages of online vs. static teaching material ­ animation and interactivity ­ to excellent effect, giving the student an additional dimension of insight.”

Authors

Roman Lysecky
Professor of Electrical and Computer Engineering, Univ. of Arizona

Frank Vahid
Professor of Computer Science and Engineering, Univ. of California, Riverside

Evan Olds
Content Developer, zyBooks