Overview

1 Intuition of AI

Artificial intelligence is presented as a practical, foundational capability in modern software, and this chapter builds the intuition needed to use it well. It frames AI as systems that perform tasks associated with human intelligence, then surveys the field from “old AI” (explicit logic and search) to “new AI” (learning from data) through machine learning, deep learning, and generative models. It also introduces levels of capability—narrow systems that excel at specific tasks, the aspirational goal of general intelligence, and speculative superintelligence—emphasizing that useful solutions often emerge by combining specialized components. Throughout, the chapter sets expectations for the book’s journey: start with core search and biologically inspired methods, then progress to statistical learning, neural networks, and the transformer-based models behind today’s generative AI.

The chapter grounds intuition in first principles: intelligence as autonomy and adaptability powered by data; algorithms as “recipes” that transform inputs into outputs; and the crucial distinction between algorithms (the process) and models (the learned artifact they produce). It clarifies data types (quantitative versus qualitative), how raw data becomes information and then knowledge, and why rigorous, repeatable collection and evaluation are vital to mitigate bias. It categorizes problem types—search (finding paths), optimization (seeking good-enough solutions while avoiding local optima), prediction versus classification (numbers versus labels), and clustering (discovering structure)—and contrasts deterministic models with probabilistic ones that sample from distributions. These concepts scaffold the later chapters, showing how classical search, evolutionary strategies, and swarm behaviors underpin modern learning systems.

Finally, the chapter connects ideas to real-world impact: optimizing crops with sensor data, detecting financial fraud via anomaly patterns, filtering phishing through language understanding, assisting radiology with computer vision, orchestrating delivery routes and truck packing, personalizing fitness using wearable signals, and mastering complex games through reinforcement learning and self-play. The unifying thread is converting abundant, noisy data into actionable decisions and creative outputs. With the landscape mapped and the role of data, models, and problem types clarified, the book turns next to search algorithms—the planning machinery that lets machines navigate vast choice spaces efficiently.

Examples of data around us
Qualitative data versus quantitative data
An example showing that an algorithm is like a recipe
A number-guessing-game algorithm flow chart
The evolution of AI
Levels of AI
Categorization of concepts within AI
Using data to optimize crop farming
Using machine learning for feature recognition in brain scans
Using sensors and AI to guide fitness & health
Using neural networks to learn how to play games

Summary of Intuition of AI

FAQ

What is Artificial Intelligence according to this chapter?AI is defined as systems that perform tasks that typically require human intelligence—such as seeing and hearing, understanding and generating language, reasoning, and planning. Examples include mastering complex games, detecting tumors in medical images, generating art from text prompts, self-driving cars, and chatbots trained on internet-scale data. The emphasis is on usefulness and autonomy rather than a rigid academic definition.
Why is data called the fuel of AI, and what’s the difference between quantitative and qualitative data?AI systems depend on data to sense the world, learn patterns, and act. Quantitative data is numeric and fact-based (for example, temperature or age), while qualitative data captures perceptions or observations (for example, a movie review or the smell of a flower). Even seemingly objective datasets can become biased through sampling choices or collection context, so careful data practices are essential.
How do data, information, and knowledge differ in the AI context?Data are raw facts; information is meaningful insight derived from data; knowledge is the application of information with experience. Example: Data = 38°C, Information = the patient has a fever, Knowledge = administer medication to reduce the fever. AI systems aim to automate parts of this pipeline responsibly.
What is an algorithm, and why is it compared to a recipe?An algorithm is a finite set of rules or steps that transform inputs into outputs. Like a recipe, it specifies ingredients (inputs), tools, and step-by-step instructions to produce a dish (output). Flow charts (such as a number-guessing game) help visualize the decisions and actions that an algorithm takes along the way.
How are algorithms different from models in AI systems?Algorithms are the process; models are the resulting artifact. In search-based systems, the algorithm actively solves the problem each time it runs. In machine learning and deep learning, the algorithm is a builder that trains a model on data; the trained model is then deployed to make predictions or decisions.
What types of problems do AI algorithms commonly address?- Search: find a path of actions to reach a goal (for example, the best route on a map).
- Optimization: find a good solution under constraints when many exist (for example, packing a car trunk).
- Prediction (regression): estimate a quantity from patterns (for example, fuel consumption from engine size).
- Classification: assign a label or category (for example, vehicle type from features).
- Clustering: discover structure or groupings without predefined labels (for example, customer segments by behavior). These patterns underpin real-world uses across agriculture, banking fraud detection, cybersecurity, medical imaging, logistics, fitness, and games.
In optimization, what’s the difference between a local best and a global best?A local best is the top solution within a limited region of the search space, while the global best is the top solution across the entire space. AI optimization methods must avoid getting trapped in local bests to approach or find the true global optimum.
What is the difference between deterministic and probabilistic models?Deterministic models always produce the same output for the same input (for example, converting 100°C to 212°F). Probabilistic models output from a distribution of possible results (for example, text autocompletion might choose “cat” 40%, “dog” 35%, or “goldfish” 25%), so repeated runs can vary.
What do ANI, AGI, and ASI mean?- Artificial Narrow Intelligence (ANI): highly specialized systems for specific tasks (for example, speech-to-text). Multiple narrow systems can be combined to appear broader.
- Artificial General Intelligence (AGI): humanlike adaptability—transferring knowledge across tasks, reasoning, and learning new skills without explicit reprogramming.
- Artificial Super Intelligence (ASI): intelligence beyond human capability across domains; currently speculative.
What’s the difference between “Old AI” and “New AI,” and why learn both?Old AI relies on explicit logic and search (for example, Minimax in chess) where humans encode rules and heuristics. New AI learns patterns from data (for example, neural networks trained through self-play). They’re complementary: modern systems often blend search with learned models, so understanding both builds stronger intuition and better solutions.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking AI Algorithms, Second Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking AI Algorithms, Second Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking AI Algorithms, Second Edition ebook for free