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

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


less than 1m read
·Nov 3, 2024

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

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

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

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

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

More Articles

View All
The Community Glue | Black Travel Across America
The Five Points District in Denver, Colorado, has a legacy of African-American excellence. Long time business owners like Franklin and Maedella Stiger take pride in carrying that torch forward as the neighborhood changes. The Frank and Miss Mae Thank yo…
Saving Endangered Jaguars in Mexico, One Photo at a Time | National Geographic
[Music] The Jaguar has several threats now in Mexico: habitat loss, the perception of Jaguar as a threat to livestock, and then illegal hunting. The question is, how do you protect the most elusive animal of the Yucatan Peninsula? [Music] By photographin…
Warren Buffett: How to Turn $10,000 Into $51 Million
We have operated in this country with the greatest tailwind at our back that you can imagine. It’s an investor’s—it means you can’t really fail at it unless you buy the wrong stock or just get excited at the wrong time. But if you owned a cross-section of…
Worked example: Using oxidation numbers to identify oxidation and reduction | Khan Academy
What we have here is a reaction that involves iodine, manganese, oxygen, and hydrogen. What we want to do in this video is think about which of the elements are being oxidized in this reaction and which of the elements are being reduced in this reaction. …
Genius: Aretha | Behind the Scenes with the A-Team
Hey, marker. Chat, here we go, and action. The queen of souls, I was looking the word up—genius, an exceptional quality. So, of course, Aretha Franklin has an exceptional quality. She has her beautiful voice, her amazing and brilliant piano playing, and …
Does Earth Have a Twin? These People Want to Find Out | Short Film Showcase
[Music] Curiosity and exploration are simply part of our DNA. What’s at the top of that mountain? What’s around that ridge? What’s in that forest? What’s across that body of water? This quest to explore things that we think might be beyond our reach or mi…