# Computer science applied to life?!

# Introduction

The book [Algorithms To Live By](https://www.amazon.com/Algorithms-Live-Computer-Science-Decisions-ebook/dp/B015DLA0LE) was great.

![ʀᴀsᴇɴɢᴀɴ • naruto one-shots | Naruto smile, Naruto gif, Naruto](https://i.pinimg.com/originals/cd/97/bd/cd97bd8f81dc733964e2c5275d2d65e4.gif align="left")

I enjoyed it. Especially the first half of the book. The second half was okay, but I still thought it was a fantastic read.

It's about applying computer science to our lives besides tech. My favorite part was avoiding Overfitting.

Here are notes for myself.

# Notes

## Optimal stopping

* Set a threshold or deadline to force yourself to eventually make decisions and stop waiting for the **perfect moment or person.**
    

## Explore/Exploit

* Explore -&gt; Explore different options and experiment to find something better.
    
* Exploit -&gt; Use your existing knowledge to make the decision
    
* It depends on the situation. Sometimes it's better to explore, sometimes to exploit.
    

## Sorting

* Sort things in your life for quick access.
    
* Closet, food, fridge, books etc.
    

## Caching

* Preparation prevents poor performance.
    
* Prepare things you often need and have them ready for quick access.
    
* I do this by always having my workout clothes ready.
    
* Food, clothes, water, charging, keys etc.
    

## Overfitting

* Avoid Overfitting.
    
* Don't be too fixated on the details or too focused on the presence.
    
* Zoom out, see the big picture and don't focus too much on the present feelings.
    
* Work out, eat healthily, abstain from temporary pleasures that ruin you in the long term, and consistently put in hard work.
    

## Networking

* Networking increases your opportunities.
    
* Seek a diverse network.
    
* Networking is like a graph that compounds.
    
* You can get in touch with people connected to those you know.
    

# Conclusion

I wish I had read the book earlier.

It gave me new ways of seeing things.

A must-read.
