GATE CS 2004 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0233

Suppose each set is represented as a linked list with elements in arbitray order. Which of the operations among union, intersection, membership, cardinality will be the slowest?
  1. A
    union only
  2. B
    intersection, membership
  3. C
    membership, cardinality
  4. D
    union, intersection

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1037/gate2004-40

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com