hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    Match List - I with List – II. List - I List - II A. Dijkstra’s Algorithms I. Find
    Question

    Match the columns.

    Match List - I with List – II.
    List - I
    List - II
    A.
    Dijkstra’s Algorithms
    I.
    Find the shortest path between all pairs of vertices in a graph with positive or negative edge weights.
    B.
    Floyd-Warshall Algorithms
    II.
    Finds the shortest path in a weighted graph with non-negative edge weights.
    C.
    Bellman-frod Algorithms 
    III.
    Sorts elements by repeatedly moving them post neighboring elements that are smaller.
    D.
    Prim’s Algorithms
    IV.
    Determines the strongest connected components in a directed graph.
    Choose the correct answer from the options given below:

    A.

    A-II, B-I, C-III, D-IV

    B.

    A-II, B-I, C-IV, D-III

    C.

    A-I, B-II, C-III, D-IV

    D.

    A-III, B-II, C-IV, D-I

    Correct option is B

    The algorithms correspond to:
    A. Dijkstra’s Algorithm: Finds the shortest path in graphs with non-negative weights.
    B. Floyd-Warshall Algorithm: Finds the shortest path between all pairs of vertices in a graph with positive or negative edge weights.
    C. Bellman-Ford Algorithm: Handles negative weight edges and can detect negative cycles.
    D. Prim’s Algorithm: A greedy algorithm used to find the Minimum Spanning Tree (MST) in a graph.
    Information Booster:
    1. Dijkstra’s Algorithm: Fastest in weighted graphs with non-negative weights but fails with negative weights.
    2. Floyd-Warshall Algorithm: Handles graphs with negative weights and efficiently finds the shortest path for all pairs.
    3. Bellman-Ford Algorithm: Slower than Dijkstra but can manage negative weights, making it suitable for specific applications.
    4. Prim’s Algorithm: Creates an MST by progressively adding edges that connect the least costly adjacent vertex.
    Additional Knowledge:
    · Dijkstra’s Algorithm assumes non-negative weights, so it is not used in graphs with negative weights.
    · Floyd-Warshall Algorithm is primarily used in dense graphs since it checks every possible pair of vertices.

    Free Tests

    Free
    Must Attempt

    Basics of Education: Pedagogy, Andragogy, and Hutagogy

    languageIcon English
    • pdpQsnIcon10 Questions
    • pdpsheetsIcon20 Marks
    • timerIcon12 Mins
    languageIcon English
    Free
    Must Attempt

    UGC NET Paper 1 Mock Test 1

    languageIcon English
    • pdpQsnIcon50 Questions
    • pdpsheetsIcon100 Marks
    • timerIcon60 Mins
    languageIcon English
    Free
    Must Attempt

    Basics of Education: Pedagogy, Andragogy, and Hutagogy

    languageIcon English
    • pdpQsnIcon10 Questions
    • pdpsheetsIcon20 Marks
    • timerIcon12 Mins
    languageIcon English

    Similar Questions

    test-prime-package

    Access ‘UGC NET Computer Science’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    354k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow