Chapter 0 Preface¶
Chapter 1 Introduction for Data Structures and Algorithms Courses¶
Chapter 2 Algorithm Analysis¶
Chapter 3 Introduction to Pointers in Java¶
Chapter 4 Linked Lists¶
Chapter 5 Stacks¶
Chapter 6 Queues¶
Chapter 7 Binary Trees¶
- 7.1. Binary Trees Chapter Introduction
- 7.2. Binary Trees
- 7.3. Binary Tree as a Recursive Data Structure
- 7.4. The Full Binary Tree Theorem
- 7.5. Binary Tree Traversals
- 7.6. Implementing Tree Traversals
- 7.7. Information Flow in Recursive Functions
- 7.7.1. Information Flow in Recursive Functions
- 7.7.2. Binary Tree Set Depth Exercise
- 7.7.3. Collect-and-return
- 7.7.4. Binary Tree Check Sum Exercise
- 7.7.5. Binary Tree Leaf Nodes Count Exercise
- 7.7.6. Binary Tree Sum Nodes Exercise
- 7.7.7. Combining Information Flows
- 7.7.8. Binary Tree Check Value Exercise
- 7.7.9. Combination Problems
- 7.7.10. Binary Tree Height Exercise
- 7.7.11. Binary Tree Get Difference Exercise
- 7.7.12. Binary Tree Has Path Sum Exercise
- 7.8. Binary Tree Node Implementations
- 7.9. Composite-based Expression Tree
- 7.10. Binary Tree Space Requirements
- 7.11. Binary Search Trees
- 7.12. Dictionary Implementation Using a BST
- 7.13. Binary Tree Guided Information Flow
- 7.14. Multiple Binary Trees
- 7.15. A Hard Information Flow Problem
- 7.16. Array Implementation for Complete Binary Trees
- 7.17. Heaps and Priority Queues
- 7.18. Huffman Coding Trees
- 7.19. Trees versus Tries
- 7.20. Proof of Optimality for Huffman Coding
- 7.21. Binary Tree Chapter Summary
Chapter 8 Sorting¶
Chapter 9 Recursion¶
- 9.1. Introduction
- 9.2. Writing a recursive function
- 9.3. Code Completion Practice Exercises
- 9.3.1. Introduction
- 9.3.2. Recursion Programming Exercise: Largest
- 9.3.3. Recursion Programming Exercise: Multiply
- 9.3.4. Recursion Programming Exercise: GCD
- 9.3.5. Recursion Programming Exercise: log
- 9.3.6. Recursion Programming Exercise: Cummulative Sum
- 9.3.7. Recursion Programming Exercise: Add odd positions
- 9.3.8. Recursion Programming Exercise: Sum Of the Digits
- 9.3.9. Recursion Programming Exercise: Count Characters
- 9.4. Writing More Sophisticated Recursive Functions
- 9.5. Harder Code Completion Practice Exercises
- 9.6. Writing Practice Exercises
- 9.7. Tracing Recursive Code
- 9.8. Tracing Practice Exercises
- 9.9. Summary Exercises