yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

🔢 Графы и алгоритм Дейкстры #математикаграф #математика


less than 1m read
·Nov 3, 2024

Представим себе, что у нас есть граф. А что такое граф? Это значит, что есть какие-то вершины, и эти вершины как-то соединены рёбрами. Какие-то вершины могут быть соединены, какие-то — нет.

Можете для простоты представлять себе, что вершина — это некий перекрёсток. Ну, а между перекрёстками протянуты улицы, которые соединяют эти перекрёстки, или, если вам так проще, города, которые соединены авиалиниями. Всё это примеры графов.

У каждого ребра есть свой вес. Весом может быть что угодно. В случае с нашим графом улицами это может быть длина этой самой улицы или время, за которое автомобиль проедет. Да, если мы говорим про задачу, которую решает наш навигатор — за кратчайшее время.

Если мы перевели задачу в сторону навигатора проехать из одной точки в другую, в случае с графом нам нужно найти кратчайший путь по этим рёбрам, учитывая веса соответствующих рёбер. Разумеется, просто перебор всех возможных путей — это совсем не оптимально.

А так или иначе, эти алгоритмы есть. Вот про алгоритм Дейкстры я сейчас и поговорю.

More Articles

View All
I Looked Inside A Live Egg .... Smarter Every Day 254
Okay. I’m at the Exploratorium in San Francisco, and this is one of the most amazing exhibits I’ve ever seen. It’s very simple, but it’s mindblowing. These are live chicken embryos, right? They’ve got them laid out here. It’s basically an egg without the …
Safari Live - Day 162 | National Geographic
This program features live coverage of an African safari and may include animal kills and carcasses. Viewer discretion is advised. One minute, please. Always remember to switch the lights off. We’re ready for safari! Sorry, everybody, you know sometimes t…
Action and reaction forces | Movement and forces | Middle school physics | Khan Academy
You’ve probably heard the phrase that for every force there’s an equal and opposite reaction force, and this is also known as Newton’s third law of motion. But it’s also one of the most misunderstood laws of physics. So that’s why we’re going to dig into …
Lecture 14 - How to Operate (Keith Rabois)
So I’m going to talk about how to operate. I’ve watched some of the prior classes, and I’m going to assume that you’ve already sort of hired a bunch of relentlessly resourceful people, that you built a product that at least some people love, that you prob…
Sun Tzu | How to Fight Smart (The Art of War)
This video doesn’t condone violence or war of any kind, but simply explores the tactics from an ancient text, and how these might work in everyday (non-military) settings in the modern world. Nevertheless, some information and graphics in this video could…
Everything You Need To Know About Death and the End of Times
what we do know is that death for most people is not lonely or at least it does not feel that way. Speaking of the Soul, this is one concept that science has not been able to figure out yet, or at least have some kind of explanation for. What was the numb…