Suppose the adjacency relation of vertices in a graph is represented in a…

GATE · 2001 · CS · Question 1 subparts

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 of 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

Attempted by 378 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…