100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2050 Module 12 - Graphs Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution £6.37   Add to cart

Exam (elaborations)

CSE 2050 Module 12 - Graphs Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

 4 views  0 purchase

CSE 2050 Module 12 - Graphs Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Preview 1 out of 1  pages

  • June 24, 2024
  • 1
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (68)
avatar-seller
Hkane
CSE 2050 Module 12 - Graphs
DFS - ANS-Strongly Connected Components
Useful for exploring graphs, finding connected components

BFS - ANS-Shortest Path in unweighted graphs
Useful for exploring graphs, finding connected components

Weighted Graph - ANS-Each edge has a weight or cost
Typically numeric (ints, decimals, doubles, etc.)
Some graphs allow negative weights; many do not
Shortest path may not be from BFS

Dijkstra's Algorithm - ANS-Single-source shortest path problem
No negative-weight edges
Maintain a set S of vertices whose shortest-path distances from s are known.
Initially S = {s}, and d(s) = 0
At each step add to S the vertex u exists in V - S whose distance estimate from s is
minimal
Update the distance estimates of vertices adjacent to u
d[v] = min(d[v], d[u] + w(u,v))

Relaxation - ANS-Maintaining this shortest discovered distance d[v] is called relaxation

Prim's Algorithm - ANS-Same as Dijkstra's, except that you are greedily adding shortest
edges. Edges with minimal weights causing no cycles is selected.
Only looks at neighbor weights, not total weight: k[v] = min(k[v], w(u,v))

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Hkane. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £6.37. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79271 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£6.37
  • (0)
  Add to cart