Cho đồ thị: A → B (trọng số 4), A → C (trọng số 2), C → B (trọng số -3). Hãy chạy Dijkstra từ A và giải thích tại sao kết quả sai. : Cho đồ thị vô hướng:
Cập nhật
Chọn đỉnh có $dist$ nhỏ nhất trong tập chưa duyệt là E ($dist = 5$). A → C (trọng số 2)
Kề D: B (đã xét), C (đã xét), E (2), F (6)
Working...
X
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.