0:00

Припустімо, я дам вам маршрут через п’ять міст.

0:03

Ви зможете обчислити його загальну довжину за секунди.

0:06

Але що, як я попрошу вас знайти найкоротший можливий маршрут серед усіх можливих варіантів?

0:12

Це задача комівояжера. Відвідайте кожне місто рівно один раз, поверніться туди, звідки вирушили, і зробіть загальну довжину маршруту якомога меншою.

0:22

Ось один із можливих маршрутів. Його довжина — приблизно 16,61 одиниці.

0:28

Коли маршрут задано, перевірити його нескладно.

0:31

Переконайтеся, що кожне місто зустрічається рівно один раз.

0:34

Додайте відстані, а потім порівняйте загальну довжину з обраною межею.

0:38

Цей маршрут коротший за 17 одиниць, і ми можемо швидко це підтвердити.

0:44

Але чи можна краще? Так, ось інший маршрут.

0:47

Його довжина — рівно 14 одиниць. Це коротше за наш перший маршрут.

0:51

Знайти кращий маршрут було можливо, але як дізнатися, чи це справді абсолютний мінімум?

0:58

Щоб довести, що маршрут найкоротший, треба виключити всі коротші варіанти.

1:03

Якщо є лише п’ять міст, можна перевірити всі 12 різних маршрутів із поверненням.

1:08

Але зі збільшенням кількості міст ця проста стратегія стає неймовірно дорогою.

1:14

Ось чому ця задача складна. Для п’яти міст є лише 12 різних маршрутів із поверненням.

1:21

Для 10 міст — понад 180 тисяч. Для 15 — понад 43 мільярди.

1:26

А для 20 — понад 60 квадрильйонів. Кількість можливостей зростає вибухово.

1:34

Комп’ютерники позначають літерою P задачі на прийняття рішень, які можна розв’язати алгоритмами, час виконання яких зростає не швидше, ніж поліноміально, зі збільшенням розміру вхідних даних.

1:44

У теорії складності такі задачі вважаються ефективно розв’язуваними.

1:50

NP описує задачі, де відповідь «так» можна підтвердити сертифікатом, який перевіряється за поліноміальний час.

1:58

Для нашої задачі про маршрут сертифікатом є запропонований тур.

2:01

Ми можемо перевірити його порядок, обчислити його довжину, і з’ясувати, чи вкладається він у встановлене обмеження.

2:08

Кожна задача з P також належить до NP. Але чи справді ці два класи рівні?

2:14

Чи можна кожну відповідь «так», яку ефективно перевірити, також знайти за допомогою ефективного алгоритму?

2:20

Ніхто не знає. Це проблема P проти NP. Це питання виходить далеко за межі маршрутів.

2:28

Суміжні питання складності виникають у плануванні, логістиці, оптимізації та розв’язуванні математичних задач.

2:36

Відкриття щодо P проти NP змінило б наше розуміння того, що комп’ютери можуть ефективно обчислювати.

2:44

Перевіряти запропоновану відповідь і з’ясовувати, чи є вона правильною,— це принципово різні завдання.

2:49

Питання P проти NP полягає в тому, чи є ця очевидна відмінність справжнім обмеженням ефективних обчислень, і відповідь досі залишається одним із великих відкритих питань математики.

End of transcript · 380 words · machine translated

Original transcript (English)

Suppose I give you a route through five cities.

You can calculate its total distance in seconds.

But what if I ask you to find the shortest possible route among every arrangement?

This is the traveling salesperson problem.

Visit every city exactly once, return to where you started, and make the total journey as short as possible.

Here's one possible route. Its length is about 16.61 units.

Once a route is given, checking it is straightforward.

Verify that every city appears exactly once.

Add the distances, then compare the total with a chosen limit.

This route is shorter than 17 units, and we can confirm that quickly.

But can we do better? Yes, here is another route.

Its length is exactly 14 units. That's shorter than our first route.

Finding a better route was possible, but how do we know whether 14 is the absolute minimum?

To prove that a route is shortest, we must rule out every shorter alternative.

With only five cities, we can check all 12 distinct round trips.

But as the number of cities grows, that simple strategy becomes enormously expensive.

Here's why the problem becomes difficult.

With five cities, there are just 12 distinct round trips.

With 10, more than 180,000. With 15, over 43 billion.

And with 20, more than 60 quadrillion. The number of possibilities grows explosively.

Computer scientists use the letter P for decision problems that can be solved by algorithms whose running time grows at most polynomially with the input size.

These are the problems considered efficiently solvable in complexity theory.

NP describes decision problems where a yes answer can be supported by a certificate that is checked in polynomial time.

For our route problem, the certificate is the proposed tour.

We can check its order, calculate its length, and verify whether it stays within the required limit.

Every problem in P is also in NP. But are the two classes actually equal?

Could every efficiently verifiable yes answer also be found by an efficient algorithm?

Nobody knows. That's the P versus NP problem.

This question reaches far beyond travel routes.

Related complexity questions appear in scheduling, logistics, optimization, and mathematical problem-solving.

A discovery about P versus NP would change our understanding of what computers can efficiently calculate.

Checking a proposed answer and discovering one are fundamentally different tasks.

P versus NP asks whether that apparent difference reflects a genuine limit of efficient computation, and the answer remains one of mathematics' great open questions.

iPhone app Translate videos on your iPhone Paste a TikTok, Instagram or X link, add subtitles in your language and save the video to Photos.

Made with TranslateMom

TranslateMom transcribes and translates videos from X, TikTok, YouTube and Instagram. Paste a link and you get a page like this one, in your language.

Transcribed and translated with TranslateMom. Paste any video link to get subtitles and a transcript in your language.

© 2026 TranslateMom · AI video translation and subtitles Transcripts Sources Pricing Legal