nowfound

AI · July 27, 2023

IT

Introduction to Algorithms and Machine Learning [pdf]

From 2020-23 I taught at a highly accelerated math program in Pasadena, CA and was given the opportunity to develop and teach a quantitative computer science track for participating 10th-12th graders who had an interest in CS. I developed the curriculum on the fly while teaching the courses, and eventually consolidated it all into this textbook. The students had already learned a surprising amount of math for their age using a system that is now commercially available at www.mathacademy.com, where they progressed from prealgebra through AP Calculus BC in only three years (6th-8th grade), and…

What it does

In the maker’s words, at launch

From 2020-23 I taught at a highly accelerated math program in Pasadena, CA and was given the opportunity to develop and teach a quantitative computer science track for participating 10th-12th graders who had an interest in CS. I developed the curriculum on the fly while teaching the courses, and eventually consolidated it all into this textbook. The students had already learned a surprising amount of math for their age using a system that is now commercially available at www.mathacademy.com, where they progressed from prealgebra through AP Calculus BC in only three years (6th-8th grade), and by the end of 9th grade had learned the core topics of linear algebra, multivariable calculus, and differential equations. They often expressed an interest in applying the math they had learned, and given my background in both algorithm development and data science, I became the natural candidate to teach the course. (Incidentally, I also developed the adaptive algorithms for the mathacademy.com system itself.) The classes began with some basic coding exercises (since most of the incoming 10th graders had little to no coding background) after which we moved on to core data structures & algorithms, regression modeling, machine learning models, and game trees/minimax. The capstone project involved reproducing academic research papers in 90's artificial intelligence – specifically, the papers in the Blondie24 research program, which involved using evolutionary algorithms to train neural networks to play board games. The program ended last month (I've recently relocated out of state), but I figured the book could be useful to anyone looking to get up to speed quickly in the fundamentals of algorithms and machine learning.

Does the same job

all alternatives →
  • IW
    I wished for a site with a growing list of math problems, I built it2024 · teachyourselfmath.app · ▲384

    Good math problems are hidden inside textbooks and online documents. To keep up with all the sources in the world is hard. For someone who just wants to continuously solve problems, finding and going through all the sources feels like a hassle. I wished for a website that could just dump all the math problems available in the world out there. And if I could filter the problems by topics, that would be beautiful. teachyourselfmath is a side project that was born out of this need. At its core, it is a math PDF extraction engine. The engine has some machine learning going on behind the scenes…

  • MC
    Maths, CS and AI CompendiumFeb 2026 · github.com · ▲88

    Hey HN, I don’t know who else has the same issue, but: Textbooks often bury good ideas in dense notation, skip the intuition, assume you already know half the material, and get outdated in fast-moving fields like AI. Over the past 7 years of my AI/ML experience, I filled notebooks with intuition-first, real-world context, no hand-waving explanations of maths, computing and AI concepts. In 2024, a few friends used these notes to prep for interviews at DeepMind, OpenAI, Nvidia etc. They all got in and currently perform well in their roles. So I'm sharing. This is an open & unconventional…

  • Quant2017 · ▲133

    Machine learning based mental math training.

  • AA
    Algorithms and Data Structures in TypeScript – Free Book (~400 Pages)Mar 2026 · amoilanen.github.io · ▲65

    I started writing this book 10 years ago in JavaScript, got through a few chapters (asymptotic notation, basic techniques, start of sorting), and then abandoned it. Recently I picked it back up, converted everything to TypeScript, and used AI (Zenflow [1] + Claude Opus 4.6) to complete the remaining chapters. I provided the structure, direction, and initial chapters; the AI generated the bulk of the remaining content under a spec-driven workflow. The book covers roughly a first 1-2 year CS curriculum: sorting, dynamic programming, graph algorithms, trees, heaps, hash tables, and more. All…

  • AI
  • IM
    I'm 15 and built a neural network from scratch in C++,just math2025 · github.com · ▲8

    I’m 15 and self-taught. I'm learning ML from scratch because I want to really understand how things work. I’m not into frameworks. I prefer math, logic, and C++. I implemented a basic MLP that supports different activation and loss functions. It was trained via mini-batch gradient descent. I wrote it from scratch, using no external libraries except Eigen (for linear algebra). I learned how a Neural Network learns (all the math) -- how the forward pass works, and how learning via backpropagation works. How to convert all that math into code. I’ll write a blog soon explaining how MLPs work in…

More ai this month

the category →
  • I trained a 125M-parameter transformer to autocomplete piano performances in real time (~108 notes/sec on an iPhone 15). The idea is basically GitHub Copilot or Tabnine, except instead of prompting it with code, you prompt it by playing a few notes on a MIDI piano. The model then continues what you played, entirely on-device. The app is free if anyone wants to try it. Happy to answer questions about the model, training, Core ML, or the many things that didn't work.

    AI · 17d ago · simedw.com

  • Astute585

    Automate your B2B brand going viral, with new media creators

    AI · 18d ago · company-app.joinastute.com

  • Grok Bot547

    AI teammates that you can give real work to

    AI · 25d ago · x.ai

  • Hey HN, Henry from Cactus here! We previously released Cactus Needle, a 14MB agentic LLM for tool call, device use, and structured extraction for phones, wearables, smart homes, small robots and microcontrollers. We got really great feedback here, and have now incorporated the suggestions to release Needle 2. The whole model is a single 14MB binary that runs a full session in 28MB of RAM; 45m parameters at 2bit compression. Needle hits 500 tokens/sec decode speed on a Raspberry Pi 5, sits between 400-1,500 tokens/sec on VR devices like Meta Quest 3S and Apple Vision Pro, and ranges…

    AI · 27d ago · cactuscompute.com

  • Monid474

    OpenRouter for agent tools

    AI · 6d ago · monid.ai

  • Turn website visitors into qualified pipeline

    AI · 19d ago · clarasdr.ai

Launched alongside, July 2023

the whole month →
  • Clustr1,529

    The reality check for your crypto portfolio

    Commerce · 2023 · clustr.io

  • WL

    Hey everyone, I here is a small open-source project I've been working on lately. I'd love to hear your thoughts and improvement ideas :) GitHub: [github.com/Vincenius/workout-lol](https://github.com/Vincenius/workout-lol)

    Dev tools · 2023 · workout.lol

  • HN

    I saw this [0] pretty cool thread by user revskill, and wanted a quicker way to search through it, but also to keep them all in one place so I can read them at my leisure whenever I get time. Right now is like 60 lines of Ruby using Nokogiri, but I will certainly look into it further down the line and improve the list. There's a cronjob checking the thread every 12 hours but I will eventually shut that down and it will become static after that. There are some really awesome blogs in there. I really recommend going through the list, it made my day. [0] "Could you share your personal blog…

    Life & fun · 2023 · dm.hn

  • Lazy929

    Capture at the speed of thought

    AI · 2023 · lazy.so

  • A safe space for your thoughts, private, local, p2p & open

    Commerce · 2023 · anytype.io

  • n8n 1.0788

    Workflow automation for technical people

    Dev tools · 2023 · n8n.io