Books
by Amir_

Seven books on artificial intelligence, algorithms, autonomy, generative art and the computers that built the modern world.

Covers of the seven books by Amir Husain, fanned out

Algorithms from Scratch

Solving Complex Problems with Simple Code · 2026

Algorithms from Scratch builds the core ideas of computing in plain, self-contained Python, with no libraries doing the thinking for you. Optimization, search, genetic algorithms, Monte Carlo simulation, Markov chains and graph problems are each worked through from first principles, in short programs you can read from top to bottom.

It is a book for people who want to understand what their code is doing. At a time when a great deal of code is generated by AI or borrowed from ready-made packages, Husain makes the case for knowing how the machinery works, and shows how far simple, carefully written code can go. Along the way he covers the tools he likes best in Python, from map and reduce to list comprehensions. It suits beginners and working programmers alike.

Algorithms from Scratch by Amir Husain, cover

The Cybernetic Society

How Humans and Machines Will Shape the Future Together · 2025

“Provides a useful, provocative picture of the AI revolution from someone who has been involved from the start.”The Wall Street Journal

Artificial intelligence is inescapable: at home, at work, in politics, and on the battlefield. In The Cybernetic Society, technologist Amir Husain argues that AI hasn’t simply encroached on everything we do. It has become part of us, and we, it. Humans and intelligent machines, he argues, are enmeshed in a symbiotic hybrid that he calls a “cybernetic society.”

Husain describes a present and future where AI isn’t a tool of humans but our equal partner, one where they can realize their own visions of the world. There is great potential and danger: Saudi Arabia’s Neom, a “cognitive city” being built in inhospitable desert, shows how this symbiosis can make life possible where otherwise it is not. But the profusion of intelligent military drones is making mass destruction possible where otherwise it is not.

As engrossing as it is urgent, The Cybernetic Society offers a new understanding of this revolutionary fusion of machine and mankind, and its profound implications for all our futures. The path ahead is challenging. But Husain shows why we can live harmoniously with our creations.

The Cybernetic Society by Amir Husain, cover

Serious Machines

The Story of the Computers That Built the Modern World · 2024

Computers fill our world, but for most of us, we own, use, and interact with just one type: computers designed for consumers. We use these at home to balance our checkbooks. We play online games with our friends. We catch up on our work email late at night. These home computers expand our world, but they’re only one segment of the market.

This book is about the “other” computers. The serious machines. The machines that run computer-aided design to build our modern world. The machines that simulate how the fastest fighter jets will fly. The ones that help us predict the weather and run our air traffic control systems.

Serious Machines by Amir Husain, cover

Generative AI for Leaders

Amir Husain · 2023

Generative AI goes beyond rule-following. It lets computer programs come up with ideas and create. It automates, amplifies and accelerates a great many parts of human work, and tasks that once demanded enormous resources can now be handled with ease.

Amir Husain, best-selling author and founder of a $1.4 billion industrial AI company, explains what leaders need to know to put these systems to work. What can generative AI actually do for your organization? How do you protect your data? Should you run models locally or in the public cloud? What are the ethical, transparency and safety questions, and what about regulation?

Drawing on his experience deploying AI across critical global industries, Husain explains the core principles of generative AI in clear terms and guides CEOs and leaders toward an AI strategy built for their own organizations.

Generative AI for Leaders by Amir Husain, cover

Generative Art

Use the Power of Algorithms to Create Stunning Patterns · 2023

Computers compose music, write poetry and make striking images. In Generative Art, Amir Husain explains how algorithmic art is made and walks through the methods behind computer-generated work.

The book is built around Generative Designer, a program he wrote that lets you combine algorithmic and aesthetic elements into patterns and visual structures. Husain explains how each algorithm works, so you can take the program further yourself.

It is written for programmers interested in generative design and for artists who want hand-made software to realize their own ideas. Generative Designer now runs in the browser on OpenWorks.

Generative Art by Amir Husain, cover

The Sentient Machine

The Coming Age of Artificial Intelligence · 2017

“In The Sentient Machine, Husain prepares us for a brighter future; not with hyperbole about right and wrong, but with serious arguments about risk and potential.”Dr. Greg Hyslop, Chief Technology Officer, The Boeing Company

Artificial “machine” intelligence is playing an ever-greater role in our society. We are already using cruise control in our cars, automatic checkout at the drugstore, and are unable to live without our smartphones. The discussion around AI is polarized; people think either machines will solve all problems for everyone, or they will lead us down a dark, dystopian path into total human irrelevance.

Regardless of what you believe, the idea that we might bring forth intelligent creation can be intrinsically frightening. But what if our greatest role as humans so far is that of creators? Amir Husain, inventor and computer scientist, argues that we are on the cusp of writing our next, and greatest, creation myth. It is the dawn of a new form of intellectual diversity, one that we need to embrace in order to advance the state of the art in many critical fields, including security, resource management, finance, and energy.

He addresses broad existential questions surrounding the coming of AI: Why are we valuable? What can we create in this world? How are we intelligent? What constitutes progress for us? And how might we fail to progress?

The Sentient Machine by Amir Husain, cover
The Sentient Machine, UK edition
UK edition
The Sentient Machine, Simplified Chinese
Simplified Chinese
The Sentient Machine, Traditional Chinese
Traditional Chinese
The Sentient Machine, Vietnamese edition
Vietnamese edition
The Sentient Machine, Korean edition
Korean edition
The Sentient Machine, Turkish edition
Turkish edition

Hyperwar

Conflict and Competition in the AI Century · 2018

“‘Hyperwar’ doesn’t just admire the problem of AI-fueled warfare, it offers concrete approaches to help U.S. policymakers and our allies prepare.”Ambassador Victoria Nuland

The fusion of distributed artificial intelligence with highly autonomous systems ushers in a type of lightning-quick conflict that has never been seen before. This is more than a revolution in military affairs. It is a revolution in human affairs that will transform the 21st century security environment.

Hyperwar: Conflict and Competition in the AI Century gathers essays by leading experts in artificial intelligence on the operational, technological, ethical and professional dimensions of this new era.

Hyperwar by Amir Husain, cover