📘
Grokking-Algorithms book
Search...
Ctrl
K
PostgreSQL
More
Content
Next
Introduction to Algorithms
Last updated
1 year ago
Was this helpful?
1. Introduction to Algorithms
2. Selection sort
3. Recursion
4. Quicksort
5. Hash tables
6. Breadth-first search
7. Dijkstra's algorithm
8. Greedy Algorithms
9. Dynamic programming
10. K-nearest neighbors
11. Where to go next
Answers to exercises
Chapter 8
Chapter 9
Chapter 10
How memory works
Arrays and linked lists
Selection sort
Recap
Recursion
Base case and recursive case
The stack
Recap
Divide & conquer
Quicksort
Big O notation revisited
Recap
Hash functions
Use cases
Collisions
Performance
Recap
Introduction to graph
What is a graph
Breadth-first search
Implementing the graph
Implementing the algorithm
Recap
Working with Dijkstra's algorithm
Terminology
Trading for a piano
Negative-weight edges
Implementation
Recap
The classroom scheduling problem
The knapsack problem
The set-covering problem
NP-complete problems
Traveling salesperson, step by step
Recap
The knapsack problem
Knapsack problem FAQ
Longest common substring
Recap
Classifying oranges vs. grapefruit
Building a recommendations system
Introduction to machine learning
Recap
Trees
Inverted indexes
The Fourier transform
Parallel algorithms
MapReduce
Bloom filters and HyperLogLog
The SHA algorithms
Locality-sensitive hashing
Diffie-Hellman key exchange
Linear programming
Epilogue
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Introduction
What you'll learn about solving problems
Binary search
Big O notation
Recap
Linked lists
Arrays
Terminology
Inserting into the middle of a list
Deletions
Merge sort vs. quicksort
Average case vs. worst case
The call stack
The call stack with recursion
Algorithm running times grow at different rates
Visualizing different Big O run times
Big O establishes a worst-case run time
Some common Big O run times
The traveling salesperson
A better way to search
Running time
Finding the shortes path
Queues
Running time
Load factor
A good hash function
Using hash tables for lookups
Preventing duplicate entries
Using hash tables as a cache
Recap
How do you tell if a problem is NP-complete?
Making the grid
Filling in the grid
The solution
Longest common subsequence
Longest common subsequence—solution
Approximation algorithms
OCR
Building a spam filter
Predicting the stock market
What you'll learn about performance
The simple solution
Dynamic programming
What happens if you add an item?
What happens if you change the order of the rows?
Can you fill in the grid column-wise instead of row-wise?
What happens if you add a smaller item?
Can you steal fractions of an item?
Optimizing your travel itinerary
Handling items that depend on each other
Is it possible that the solution will require more than two sub-knapsacks?
Is it possible that the best solution doesn't fill the knapsack completely?
Comparing files
Checking passwords
Feature extraction
Regression
Picking good features
Bloom filters
HyperLogLog
Why are distributed algorithms useful?
The map function
The reduce function