# Practical instances can make worst-case hard problems easy

Markdown copy of https://realalpha.app/s/practical-instances-can-make-worst-case-hard-problems-easy/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Ankur Moitra](https://realalpha.app/people/ankur-moitra/) · Mathematician, MIT · Develops provably guaranteed algorithms for machine learning, bridging theoretical computer science and machine learning.
- Host: [Lex Fridman](https://realalpha.app/people/lex-fridman/) · Host, Lex Fridman Podcast · Robotics and AI researcher at MIT; started the show in 2018.
- Show: Lex Fridman Podcast
- Episode: [AI Crisis in Math: Navier-Stokes, Riemann Hypothesis & Complexity Theory | Lex Fridman Podcast #503](https://realalpha.app/v/ZAzWPE9CItg/), Oct 26, 2026
- Moment: 3:04:07 to 3:08:11 of the episode (4 min), playing on https://realalpha.app/s/practical-instances-can-make-worst-case-hard-problems-easy/; the episode from there: https://realalpha.app/v/ZAzWPE9CItg/?t=11047

## Quote

> “it could be that in practice a lot of the problems that we model in the worst case are **secretly easy**”
> — [Ankur Moitra](https://realalpha.app/people/ankur-moitra/) at [3:06:23](https://realalpha.app/v/ZAzWPE9CItg/?t=11183) · Lex Fridman Podcast

## Takeaways

1. Worst-case hardness doesn't describe every real-world instance.
2. SAT solvers work well on some compiler and register-allocation problems.
3. Different instances may be easy for different structural reasons.

## About this segment

Ankur Moitra says SAT solvers handle real compiler problems despite worst-case hardness. The challenge is identifying the structure that makes practical instances tractable.

From “AI Crisis in Math: Navier-Stokes, Riemann Hypothesis & Complexity Theory | Lex Fridman Podcast #503”, Oct 26, 2026. [Watch the full episode](https://realalpha.app/v/ZAzWPE9CItg/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[3:04:13](https://realalpha.app/v/ZAzWPE9CItg/?t=11053) I'm still going with P versus NP. You think that? By the way, do you think it's possible it turns out that P equals NP? Sure. Anything's possible. What does that world look like to you? So it depends on what the running time of the algorithm is. So it could be so large that it's impractical and then it doesn't really matter that much. That's more of a, you know, a tidal wave for the theory research. Yeah, but that that seems like a very important problem and very hard to fall.

[3:04:44](https://realalpha.app/v/ZAzWPE9CItg/?t=11084) in fact i remember back when i was a graduate student there was um there was an attempt on p versus np which was actually semi-serious some people started all having rumors that hey has it been solved and my first reaction was no it has not been solved and i remember spending an afternoon thinking about the betting markets were still pretty new then so it wouldn't let me take a counter bet to p versus np has not been solved so instead what i did was i bet on all the other millennium prize problems because that seemed like a good way to hedge because the question was which millennium prize problem will be solved first but uh is it possible that p equals np in the real way so there's something deeply that we don't understand about complexity theory about computer science, about algorithms, where there are fast algorithms for satisfiability?

[3:05:44](https://realalpha.app/v/ZAzWPE9CItg/?t=11144) So I think there are two threads in there that are important to tease out. So first, it seems at least so far that you can always manufacture hard instances of problems. And we use that to great effect for our cryptography systems. But it does seem like in practice, a lot of problems are much easier than we give them credit for. So for things like SAT, one of the places where they come up is in compilers and register allocation.

[3:06:12](https://realalpha.app/v/ZAzWPE9CItg/?t=11172) And SAT solvers are amazingly effective at solving those kinds of SAT problems. Now, we don't really know what makes those problems so eminently solvable compared to the other hard problems that come out of cryptography or other areas. but it could be that in practice a lot of the problems that we model in the worst case are secretly easy and that the harder part is articulating what kinds of structures they have that makes them eminently easy but that there are still a rich source of hard problems that we can do a lot of things like building cryptographic systems out of that would be my bet in the world we live in, but that's just a guess.

[3:06:54](https://realalpha.app/v/ZAzWPE9CItg/?t=11214) So maybe there's some way to basically quickly classify that this particular example of the problem is easy. So be able to identify quickly that this is one of the easier instances. Like there's a whole set, subset. It could be. So I'm reminded of the opening line for Anna Karinina, you know, Every happy family is happy in the same way and every unhappy family is unhappy in their own way. I think my worry is that, you know, many problems are easier than we make them out to be, but they're easy for very different reasons.

[3:07:36](https://realalpha.app/v/ZAzWPE9CItg/?t=11256) Now, that doesn't mean that algorithmic perspectives aren't useful in trying to classify or developing an ontology of what those structures are. But I think the types of SAT problems that come out of register allocation are very different than the other SAT problems that come out of other domains, even though they might be easy to. I just think they're easy for very different reasons. So to you, the hard problem is P.

[3:08:02](https://realalpha.app/v/ZAzWPE9CItg/?t=11282) NP. So you'll be impressed if that, within the next couple of years, that's false. I would be pretty impressed.
