GATE CS 2001 · ER-Model

MCQ · 1 mark · Problem DBMS-RELM-0098

Suppose the adjacency relation of vertices in a graph is represented in a table Adj(X,Y). Which of the following queries cannot be expressed by a relational algebra expression of constant length ?
  1. A
    List all vertices adjacent to a given vertex.
  2. B
    List all vertices which have self loops
  3. C
    List all vertices which belong to cycles of less than three vertices
  4. D
    List all vertices reachable from a given vertex

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/717/gate2001-1-24

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