• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
How does Floyd–Warshall handle negative edge weights?
  1. Ignores negative edges
  2. Finds shortest paths even with negative edges
  3. Converts negative edges to zero
  4. Throws an error
Explanation
  • The Floyd–Warshall algorithm computes shortest paths between all pairs of vertices.
  • It supports negative edge weights, as long as there are no negative cycles.
  • Negative cycles make the shortest path undefined, which Floyd–Warshall can detect.
  • Related MCQs

    بڑی زبانی ماڈلز کے لیے سب سے زیادہ استعمال ہونے والی پروگرامنگ زبان کون سی ہے؟
    1. Python
    2. Java
    3. C++
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر سیکیورٹی کا حصہ کون سا ہے؟
    1. Installing reliable
    2. Reputable security
    3. Anti-virus software
    4. All of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر کا بانی کس کو کہا جاتا ہے؟
    1. Barbara Liskov
    2. Tim Berners-Lee
    3. Charles Babbage
    4. John von Neumann
    اس سوال کو وضاحت کے ساتھ پڑھیں

    ہائپر لنک داخل کرنے کے لیے کون سی شارٹ کٹ کی استعمال ہوتی ہے؟
    1. Ctrl+S
    2. Ctrl+M
    3. Ctrl+K
    4. None of the above
    اس سوال کو وضاحت کے ساتھ پڑھیں

    مائیکروسافٹ ونڈوز کس کی اہم ایجاد ہے؟
    1. Charles Ranlett Flint
    2. Paul Allen
    3. Bill Gates
    4. Both B and C
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com