Random Memories

Why Your GPS Solves a Problem Computers Can't Fully Crack

GPS Medium

The traveling salesman problem — find the shortest route visiting every city exactly once — sounds simple but belongs to the NP-hard class, meaning no known algorithm finds the true optimal route efficiently for large inputs. Your GPS doesn't compute perfection; it uses heuristics like nearest-neighbor and 2-opt swaps to deliver "good enough" routes in milliseconds. This gap between solutions we can verify quickly and solutions we can find quickly is the P versus NP question, the most important unsolved problem in computer science, carrying a $1 million Millennium Prize. If P ever equaled NP, modern cryptography would collapse overnight.