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

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


less than 1m read
·Nov 3, 2024

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

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

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

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

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

More Articles

View All
Passive Income: How Much You Need Invested To Make $200 Per Day
What’s up you guys? It’s Graham here. So today, we’re going to be finally answering the age-old question that everyone wants to know. It’s something that affects all of us, and it’s a topic that mathematicians and philosophers have been analyzing since th…
Investors don’t validate your startup — users do.
You don’t need every investor to like what you’re building. You just need a few of them to believe. The reality is that no matter how great your product is, how much traction you have, investors are going to reject you, and that’s okay. In fact, it puts y…
The U.S. Economy Just Hit a Big Turning Point. (Howard Marks' Sea Change Is Here)
People believe in the ability to predict the future, and in general, uh, I agree with uh, John Kenneth Galbraith, who said, “There are two kinds of forecasters: the ones who don’t know and the ones who don’t know they don’t know.” There is Howard Marks, …
The Hard-Working Man | Port Protection
When you get to my age, you always got to go slow. Makes everything harder, but I plan to continue doing my work if I can. Setting down roots in Port Protection requires a commitment to living at the edge of one’s limitations. If you comprehend that commi…
Insurance-funded stateless military: a defense
Fringe elements posted a video recently explaining the difficulties with different proposals for how a stateless society will deal with military defense. He looked at militias, PDAs, and drew a nuclear arsenal insurance agencies, and explained problems wi…
Why polls can be wrong
[Instructor] In previous lessons, we’ve talked about how polls and surveys are used to measure public opinion, but the important thing to recognize is that they are estimates of public opinion. Ideally, they’re done as scientifically as possible, as stati…