My Computer Has Been Running for Six Hours and It’s Still Finding the Perfect Route Between 22…

📰 Medium · Programming

Learn how a computer's literal interpretation of a request can lead to infinite computation, and why this matters for AI and programming

intermediate Published 13 Jun 2026
Action Steps
  1. Ask a computer to find the perfect route between 22 cities using a brute force algorithm
  2. Observe how the computer's literal interpretation of the request leads to an exponential explosion of possible routes
  3. Apply optimization techniques, such as dynamic programming or heuristic search, to find a near-optimal solution in a reasonable amount of time
  4. Configure the algorithm to terminate after a certain amount of time or number of iterations
  5. Test the algorithm on smaller inputs to ensure it is working correctly before scaling up to larger problems
Who Needs to Know This

Developers and AI engineers can benefit from understanding the limitations of computational optimization, and how to design systems that avoid getting stuck in infinite loops

Key Insight

💡 Computers can interpret requests too literally, leading to infinite computation, and optimization techniques are necessary to find practical solutions

Share This
🤖 Computers can get stuck in infinite loops when asked for perfect answers! 🚀

Key Takeaways

Learn how a computer's literal interpretation of a request can lead to infinite computation, and why this matters for AI and programming

Full Article

What happens when you ask a computer for the perfect answer and it takes the request too literally Continue reading on Medium »
Read full article → ← Back to Reads

Related Videos

SQLite3 Tutorial - Learn SQL for Python in 17 Minutes
SQLite3 Tutorial - Learn SQL for Python in 17 Minutes
Thomas Janssen
How to Train AI to Play Games ? How AI Learns to Play ? Several Methods EXPLAINED
How to Train AI to Play Games ? How AI Learns to Play ? Several Methods EXPLAINED
MaxonShire
Introduction to Machine Learning: Lesson 05
Introduction to Machine Learning: Lesson 05
Stephen Blum
Pytorch Embedding Model Part 1
Pytorch Embedding Model Part 1
Stephen Blum
Introduction to Machine Learning: Lesson 04
Introduction to Machine Learning: Lesson 04
Stephen Blum
Introduction to Machine Learning: Lesson 03
Introduction to Machine Learning: Lesson 03
Stephen Blum