Chapter 0 Introduction to Pointers in Java¶
Chapter 1 Linear Structures¶
- 1.1. Chapter Introduction: Lists
- 1.2. The List ADT
- 1.3. Array-Based List Implementation
- 1.4. Linked Lists
- 1.5. Comparison of List Implementations
- 1.6. Doubly Linked Lists
- 1.7. List Element Implementations
- 1.8. Stacks
- 1.9. Linked Stacks
- 1.10. Freelists
- 1.11. Implementing Recursion
- 1.12. Queues
- 1.13. Linked Queues
- 1.14. Linear Structure Summary Exercises
Chapter 2 Recursion¶
- 2.1. Introduction
- 2.2. Writing a recursive function
- 2.3. Code Completion Practice Exercises
- 2.3.1. Introduction
- 2.3.2. Recursion Programming Exercise: Largest
- 2.3.3. Recursion Programming Exercise: Multiply
- 2.3.4. Recursion Programming Exercise: GCD
- 2.3.5. Recursion Programming Exercise: log
- 2.3.6. Recursion Programming Exercise: Cummulative Sum
- 2.3.7. Recursion Programming Exercise: Add odd positions
- 2.3.8. Recursion Programming Exercise: Sum Of the Digits
- 2.3.9. Recursion Programming Exercise: Count Characters
- 2.4. Writing More Sophisticated Recursive Functions
- 2.5. Harder Code Completion Practice Exercises
- 2.6. Writing Practice Exercises
- 2.7. Tracing Recursive Code
- 2.8. Tracing Practice Exercises
- 2.9. Summary Exercises
Chapter 3 Algorithm Analysis¶
- 3.1. Chapter Introduction
- 3.2. Problems, Algorithms, and Programs
- 3.3. Comparing Algorithms
- 3.4. Best, Worst, and Average Cases
- 3.5. Faster Computer, or Faster Algorithm?
- 3.6. Asymptotic Analysis and Upper Bounds
- 3.7. Lower Bounds and \(\Theta\) Notation
- 3.8. Calculating Program Running Time
- 3.9. Analyzing Problems
- 3.10. Common Misunderstandings
- 3.11. Multiple Parameters
- 3.12. Space Bounds
- 3.13. Code Tuning and Empirical Analysis
- 3.14. Algorithm Analysis Summary Exercises
- 3.15. Algorithm Analysis Summary Exercises
Chapter 4 Searching¶
Chapter 5 Sorting¶
- 5.1. Chapter Introduction: Sorting
- 5.2. Sorting Terminology and Notation
- 5.3. Insertion Sort
- 5.4. Bubble Sort
- 5.5. Selection Sort
- 5.6. The Cost of Exchange Sorting
- 5.7. Optimizing Sort Algorithms with Code Tuning
- 5.8. Shellsort
- 5.9. Mergesort Concepts
- 5.10. Implementing Mergesort
- 5.11. Quicksort
- 5.12. Heapsort
- 5.13. Binsort
- 5.14. Radix Sort
- 5.15. An Empirical Comparison of Sorting Algorithms
- 5.16. Lower Bounds for Sorting
- 5.17. Sorting Summary Exercises
Chapter 6 Binary Trees¶
- 6.1. Binary Trees Chapter Introduction
- 6.2. Binary Trees
- 6.3. Binary Tree as a Recursive Data Structure
- 6.4. The Full Binary Tree Theorem
- 6.5. Binary Tree Traversals
- 6.6. Implementing Tree Traversals
- 6.7. Information Flow in Recursive Functions
- 6.7.1. Information Flow in Recursive Functions
- 6.7.2. Binary Tree Set Depth Exercise
- 6.7.3. Collect-and-return
- 6.7.4. Binary Tree Check Sum Exercise
- 6.7.5. Binary Tree Leaf Nodes Count Exercise
- 6.7.6. Binary Tree Sum Nodes Exercise
- 6.7.7. Combining Information Flows
- 6.7.8. Binary Tree Check Value Exercise
- 6.7.9. Combination Problems
- 6.7.10. Binary Tree Height Exercise
- 6.7.11. Binary Tree Get Difference Exercise
- 6.7.12. Binary Tree Has Path Sum Exercise
- 6.8. Binary Tree Node Implementations
- 6.9. Composite-based Expression Tree
- 6.10. Binary Tree Space Requirements
- 6.11. Binary Search Trees
- 6.12. Dictionary Implementation Using a BST
- 6.13. Binary Tree Guided Information Flow
- 6.14. Multiple Binary Trees
- 6.15. A Hard Information Flow Problem
- 6.16. Array Implementation for Complete Binary Trees
- 6.17. Heaps and Priority Queues
- 6.18. Huffman Coding Trees
- 6.19. Trees versus Tries
- 6.20. Proof of Optimality for Huffman Coding
- 6.21. Binary Tree Chapter Summary