Grokking Algorithms



Yüklə 348,95 Kb.
Pdf görüntüsü
səhifə4/122
tarix05.12.2023
ölçüsü348,95 Kb.
#173611
1   2   3   4   5   6   7   8   9   ...   122
grokking-algorithms-illustrated-programmers-curious

Graph algorithms
—Covered in chapters 6 and 7. Graphs are a way to 
model a network: a social network, or a network of roads, or neurons
or any other set of connections. Breadth-first search (chapter 6) and 
Dijkstra’s algorithm (chapter 7) are ways to find the shortest distance 
between two points in a network: you can use this approach to 
calculate the degrees of separation between two people or the shortest 
route to a destination.
• 
K-nearest neighbors (KNN)
—Covered in chapter 10. This is a 
simple machine-learning algorithm. You can use KNN to build a 
recommendations system, an OCR engine, a system to predict stock 
values—anything that involves predicting a value (“We think Adit will 
rate this movie 4 stars”) or classifying an object (“That letter is a Q”).
• 
Next steps
—Chapter 11 goes over 10 algorithms that would make 
good further reading.


xvii
How to use this book
The order and contents of this book have been carefully designed. If 
you’re interested in a topic, feel free to jump ahead. Otherwise, read the 
chapters in order—they build on each other.
I strongly recommend executing the code for the examples yourself. I 
can’t stress this part enough. Just type out my code samples verbatim 
(or download them from www.manning.com/books/grokking-
algorithms or https://github.com/egonschiele/grokking_algorithms), 
and execute them. You’ll retain a lot more if you do.
I also recommend doing the exercises in this book. The exercises are 
short—usually just a minute or two, sometimes 5 to 10 minutes. They 
will help you check your thinking, so you’ll know when you’re off track 
before you’ve gone too far.
Who should read this book
This book is aimed at anyone who knows the basics of coding and 
wants to understand algorithms. Maybe you already have a coding 
problem and are trying to find an algorithmic solution. Or maybe 
you want to understand what algorithms are useful for. Here’s a short, 
incomplete list of people who will probably find this book useful:
• Hobbyist coders
• Coding boot camp students
• Computer science grads looking for a refresher
• Physics/math/other grads who are interested in programming

Yüklə 348,95 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   122




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin