Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6890397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:16:36+00:00 2026-05-27T06:16:36+00:00

Im doing a homework problem where I need to run the bellman-ford algorithm starting

  • 0

Im doing a homework problem where I need to run the bellman-ford algorithm starting at vertex z. It wants me to “In each pass, relax edges in the same order as in the figure, and show the d and pi values after each pass.”
From what i understand I thought this algo traverses the graph like a BFS which makes sense from the figure they want me to use, so I cant see how the same path would work. If anyone could point me in the right direction by pointing out how to start it would be very useful. The question, and the figure the question is referring to:
enter image description here

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:16:37+00:00Added an answer on May 27, 2026 at 6:16 am

    I’ll try to point out your mistake.

    I thought this algo traverses the graph like a BFS

    This is not true. This algorithm iterates over all the edges of the graph repeatedly, and “relax” them until it get to a stable state (when no relaxation can be done anymore)

    The example you attached is a bit confusing, and resembles a BFS execution. this is because that in each iteration they bold only the edges that have effected the nodes value (The edges that were relaxed).

    So, to answer your question, Choose any order for the edges, and start so-called “relaxing” them. For each edge, set its pointing node d value to be the shortest distance so far from Z, and set it’s pi to be it’s predecessor node. repeat this until all the values are stable.

    Hope that answers your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing a homework assignment in which I need to print out to the
Im doing a homework problem to make a function sumOdd to computer the sum
Im doing a homework problem in Standard ML which we just started learning, and
This is a homework problem that I have. I have been doing some research
I've got a c homework problem that is doing my head in and will
I'm new to c++ and got a problem when doing homework (sudoku). Instruction said:
I am doing homework and I got to the part where I need to
No problems here, just need explanation how does that work. I was doing homework
while doing some homework in my very strange C++ book, which I've been told
I'm doing some homework and while I have some experience with SML, Haskell has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.