Chapter 0 modules¶
- 0.1. Data Structures and Algorithms
- 0.2. Spotlight: Carl Friedrich Gauss
- 0.3. Spotlight: Francis Bacon
- 0.4. Command Line Basics
- 0.5. Parsing Command Line Parameters In Your Progam
- 0.6. Using Parameters in Eclipse
- 0.7. Installing the Web-CAT Submission Plug-in for Eclipse
- 0.8. Common Debugging Methods
- 0.9. Debugging In Eclipse
- 0.10. Reading Input (from Files or Otherwise)
- 0.11. Random Access Files In Java
- 0.12. JUnit Testing And You
- 0.13. Writing JUnit Tests
- 0.14. Code Coverage In JUnit
- 0.15. Abstract Data Types
- 0.16. Introduction to Object Oriented Programming
- 0.17. The Unified Modeling Language
- 0.18. Software Development Processes
- 0.19. Pointers Chapter Introduction
- 0.20. Basic References Part 1
- 0.21. Basic References Part 2
- 0.243. Syntax of the Lambda Calculus
- 0.23. Local Memory
- 0.24. Heap Memory
- 0.25. Link Nodes
- 0.26. Link Nodes Practice Exercises
- 0.27. Additional Practice Exercises
- 0.28. Chapter Introduction
- 0.29. Sets and Relations
- 0.30. Miscellaneous Notation
- 0.31. Logarithms
- 0.32. Summations
- 0.33. Recurrence Relations
- 0.34. Mathematical Proof Techniques
- 0.35. Estimation
- 0.36. Chapter Summary Questions
- 0.37. Searching in an Array
- 0.38. Chapter Introduction
- 0.39. Problems, Algorithms, and Programs
- 0.40. Comparing Algorithms
- 0.41. Best, Worst, and Average Cases
- 0.42. Faster Computer, or Faster Algorithm?
- 0.43. Asymptotic Analysis and Upper Bounds
- 0.44. Lower Bounds and \(\Theta\) Notation
- 0.45. Calculating Program Running Time
- 0.46. Analyzing Problems
- 0.47. Common Misunderstandings
- 0.48. Multiple Parameters
- 0.49. Space Bounds
- 0.50. Code Tuning and Empirical Analysis
- 0.51. Algorithm Analysis Summary Exercises
- 0.52. Algorithm Analysis Summary Exercises
- 0.53. Chapter Introduction: Lists
- 0.54. The List ADT
- 0.55. Array-Based List Implementation
- 0.56. Linked Lists
- 0.57. Comparison of List Implementations
- 0.58. Doubly Linked Lists
- 0.59. List Element Implementations
- 0.60. Stacks
- 0.61. Linked Stacks
- 0.62. Freelists
- 0.63. Implementing Recursion
- 0.64. Queues
- 0.65. Linked Queues
- 0.66. Linear Structure Summary Exercises
- 0.67. Introduction
- 0.68. Writing a recursive function
- 0.69. Code Completion Practice Exercises
- 0.69.1. Introduction
- 0.69.2. Recursion Programming Exercise: Largest
- 0.69.3. Recursion Programming Exercise: Multiply
- 0.69.4. Recursion Programming Exercise: GCD
- 0.69.5. Recursion Programming Exercise: log
- 0.69.6. Recursion Programming Exercise: Cummulative Sum
- 0.69.7. Recursion Programming Exercise: Add odd positions
- 0.69.8. Recursion Programming Exercise: Sum Of the Digits
- 0.69.9. Recursion Programming Exercise: Count Characters
- 0.70. Writing More Sophisticated Recursive Functions
- 0.71. Harder Code Completion Practice Exercises
- 0.72. Writing Practice Exercises
- 0.73. Tracing Recursive Code
- 0.74. Tracing Practice Exercises
- 0.75. Summary Exercises
- 0.76. Design Patterns
- 0.77. Alternative List ADT Designs
- 0.78. Comparing Records
- 0.79. The Dictionary ADT
- 0.80. Binary Trees Chapter Introduction
- 0.81. Binary Trees
- 0.82. Binary Tree as a Recursive Data Structure
- 0.83. The Full Binary Tree Theorem
- 0.84. Binary Tree Traversals
- 0.85. Implementing Tree Traversals
- 0.86. Information Flow in Recursive Functions
- 0.86.1. Information Flow in Recursive Functions
- 0.86.2. Binary Tree Set Depth Exercise
- 0.86.3. Collect-and-return
- 0.86.4. Binary Tree Check Sum Exercise
- 0.86.5. Binary Tree Leaf Nodes Count Exercise
- 0.86.6. Binary Tree Sum Nodes Exercise
- 0.86.7. Combining Information Flows
- 0.86.8. Binary Tree Check Value Exercise
- 0.86.9. Combination Problems
- 0.86.10. Binary Tree Height Exercise
- 0.86.11. Binary Tree Get Difference Exercise
- 0.86.12. Binary Tree Has Path Sum Exercise
- 0.87. Binary Tree Node Implementations
- 0.88. Composite-based Expression Tree
- 0.89. Binary Tree Space Requirements
- 0.90. Binary Search Trees
- 0.91. Dictionary Implementation Using a BST
- 0.92. Binary Tree Guided Information Flow
- 0.93. Multiple Binary Trees
- 0.94. A Hard Information Flow Problem
- 0.95. Array Implementation for Complete Binary Trees
- 0.96. Heaps and Priority Queues
- 0.97. Huffman Coding Trees
- 0.98. Trees versus Tries
- 0.99. Proof of Optimality for Huffman Coding
- 0.100. Binary Tree Chapter Summary
- 0.101. Chapter Introduction: Sorting
- 0.102. Sorting Terminology and Notation
- 0.103. Insertion Sort
- 0.104. Bubble Sort
- 0.105. Selection Sort
- 0.106. The Cost of Exchange Sorting
- 0.107. Optimizing Sort Algorithms with Code Tuning
- 0.108. Shellsort
- 0.109. Mergesort Concepts
- 0.110. Implementing Mergesort
- 0.111. Quicksort
- 0.112. Heapsort
- 0.113. Binsort
- 0.114. Radix Sort
- 0.115. An Empirical Comparison of Sorting Algorithms
- 0.116. Lower Bounds for Sorting
- 0.117. Sorting Summary Exercises
- 0.118. Chapter Introduction: File Processing
- 0.119. Primary versus Secondary Storage
- 0.120. Disk Drives
- 0.121. Buffer Pools
- 0.122. The Programmer's View of Files
- 0.123. External Sorting
- 0.124. Introduction
- 0.125. Hash Function Principles
- 0.126. Sample Hash Functions
- 0.127. Open Hashing
- 0.128. Bucket Hashing
- 0.129. Collision Resolution
- 0.130. Improved Collision Resolution
- 0.131. Analysis of Closed Hashing
- 0.132. Deletion
- 0.133. Hashing Chapter Summary Exercises
- 0.134. Chapter Introduction: Memory Management
- 0.135. Dynamic Storage Allocation
- 0.136. Sequential-Fit Methods
- 0.137. First Fit
- 0.138. Circular First Fit
- 0.139. Best Fit
- 0.140. Worst Fit
- 0.141. Sequential Fit Peformance
- 0.142. Other Memory Allocation Methods
- 0.143. Failure Policies and Garbage Collection
- 0.144. Indexing Chapter Introduction
- 0.145. Linear Indexing
- 0.146. ISAM
- 0.147. Tree-based Indexing
- 0.148. 2-3 Trees
- 0.149. B-Trees
- 0.150. Indexing Summary Exercises
- 0.151. General Trees
- 0.152. Union/Find and the Parent Pointer Implementation
- 0.153. Sequential Tree Representations
- 0.154. Graphs Chapter Introduction
- 0.155. Graph Implementations
- 0.156. Graph Traversals
- 0.157. Topological Sort
- 0.158. Shortest-Paths Problems
- 0.159. Minimal Cost Spanning Trees
- 0.160. Kruskal's Algorithm
- 0.161. All-Pairs Shortest Paths
- 0.162. Spatial Data Structures
- 0.163. The PR Quadtree
- 0.164. KD Trees
- 0.165. The Bintree
- 0.166. Other Spatial Data Structures
- 0.167. Data and Algorithm Analysis
- 0.168. An Introduction to Problem Solving
- 0.169. Semester Overview
- 0.170. Introduction to Analyzing a Problem
- 0.171. Bounds Review
- 0.172. Growth Rates Review
- 0.173. Summation Techniques
- 0.174. Solving Recurrence Relations
- 0.175. Chapter Introduction: Search
- 0.176. Analyzing Search in Unsorted Lists
- 0.177. Search in Sorted Arrays
- 0.178. Self-Organizing Lists
- 0.179. Bit Vectors for Representing Sets
- 0.180. Perfect Hashing
- 0.181. Finding the Maximum Value
- 0.182. Adversarial Lower Bounds Proofs
- 0.183. State Space Lower Bounds Proofs
- 0.184. Finding the \(i\) th Best Element
- 0.185. Optimal Sorting
- 0.186. Number Problems
- 0.187. The Transformation Concept
- 0.188. The Fast Fourier Transform
- 0.189. Introduction to Probabilistic Algorithms
- 0.190. Finding Prime Numbers
- 0.191. Random Numbers
- 0.192. Skip Lists
- 0.193. Balanced Trees
- 0.194. The AVL Tree
- 0.195. The Splay Tree
- 0.196. The Red-Black Tree
- 0.197. The Sparse Matrix
- 0.198. Dynamic Programming
- 0.199. Amortized Analysis
- 0.200. 0/1 Knapsack Problem
- 0.201. Edit Distance
- 0.202. KMP String Search Algorithm
- 0.203. Boyer-Moore String Search Algorithm
- 0.204. Rabin-Karp String Search Algorithm [Draft]
- 0.205. General Tree Implementations
- 0.206. K-ary Tree Implementations
- 0.207. Limits to Computing
- 0.208. Reductions
- 0.209. NP-Completeness
- 0.210. Circuit Satisfiability
- 0.211. Formula Satisfiability
- 0.212. 3-CNF Satisfiability
- 0.213. The Clique Problem
- 0.214. The Independent Set Problem
- 0.215. The Vertex Cover Problem
- 0.216. The Hamiltonian Cycle Problem
- 0.217. The Traveling Salesman Problem
- 0.218. NP-Completeness Proofs
- 0.219. Reduction of Circuit SAT to SAT
- 0.220. Reduction of SAT to 3-SAT
- 0.221. Reduction of 3-SAT to Clique
- 0.222. Reduction of Clique to Independent Set
- 0.223. Reduction of Independent Set to Vertex Cover
- 0.224. Reduction of 3-SAT to Hamiltonian Cycle
- 0.225. Reduction of Hamiltonian Cycle to Traveling Salesman
- 0.226. Coping with NP-Complete Problems
- 0.227. Unsolveable Problems
- 0.228. Turing Machines
- 0.229. Grammars - Part 1 - Derivations and Parse Trees
- 0.230. Grammars - Part 2 - Ambiguous Grammars
- 0.231. Grammars - Part 3 - Establishing Order of Operations
- 0.232. Grammars - Part 4 - Parser Generators
- 0.233. Grammars - Part 5 - Using Parser Generators to Interpret a Language
- 0.234. Introduction to Functional Programming - List Construction and Deconstruction
- 0.235. Functional Programming - Developing basic, recursive list-processing functions
- 0.236. Functional Programming - Recurring On Lists That Aren't Flat
- 0.237. Functional Programming - Using Helper Functions with Accumulators
- 0.238. Functional Programming - Scope, Closures, Higher-order Functions, Static vs. Dynamic Binding
- 0.239. Functional Programming - Procedural Abstraction: Map, Curry, and Compose
- 0.240. Functional Programming - Procedural Abstraction: The Filtering and Folding (Reduce) Patterns
- 0.241. Functional Programming - Combining Map and Reduce
- 0.242. Functional Programming - Continuations and Continuation Passing
- 0.243. Syntax of the Lambda Calculus
- 0.244. Semantics of the Lambda Calculus
- 0.245. Free and Bound Variables
- 0.246. Alpha-Conversion
- 0.247. The Substitution-Based Model of Evaluation
- 0.248. Beta-Reduction
- 0.249. Reduction Strategies
- 0.250. Church Numerals and Booleans
- 0.251. Recursive Functions
- 0.252. Defining SLang1
- 0.253. Environment-based Model of Evaluation
- 0.254. Let Expressions
- 0.255. Defining SLang2
- 0.256. Tying The Knot
- 0.257. Parameter-Passing Mechanisms
- 0.258. Lazy Lists
- 0.259. Variations on how Languages Think about Types
- 0.259.1. Examples of Type-related Considerations in Programming Languages
- 0.259.2. Type Environments and Typing Rules Expressed as Post Systems
- 0.259.3. Type Inferencing Problem 1
- 0.259.4. Type Inferencing Problem 2
- 0.259.5. Type Inferencing Problem 3
- 0.259.6. Type Inferencing Problem 4
- 0.259.7. Type Inferencing Problem 5
- 0.259.8. Type Inferencing Problem 6
- 0.260. GLOSSARY
- 0.261. Formal Languages
- 0.262. Overview
- 0.263. Major Concepts
- 0.264. Deterministic Finite Acceptors
- 0.265. Non-Deterministic Finite Automata
- 0.266. Minimizing the Number of States in a DFA
- 0.267. Regular Expressions
- 0.268. Regular Grammars
- 0.269. Closure Properties of Regular Grammars
- 0.270. Identifying Non-regular Languages
- 0.271. Properties
- 0.272. Context-Free Languages
- 0.273. Transforming Grammars
- 0.274. Pushdown Automata
- 0.275. PDAs and Context Free Languages
- 0.276. Deterministic Pushdown Automata
- 0.277. Properties of Context-Free Languages
- 0.278. Parsing Introduction
- 0.279. LL Parsing
- 0.280. LR Parsing
- 0.281. CYK Parsing
- 0.282. Structure of a Compiler
- 0.283. Recursively Enumerable Languages
- 0.284. List Iteration
- 0.285. List Iteration Visualizations
- 0.286. Classwork 8
- 0.287. Homework 8