Questions: Reflexive and Transitive Closure

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In a directed graph, node A has no self-loop and no directed path from A back to A (no cycles involving A). Which statement is correct?

AA R* A is false, because there is no self-loop at A
BA R⁺ A is true, because every node trivially reaches itself
CA R* A is true, because R* includes zero-step reachability via the identity relation
DBoth A R* A and A R⁺ A are false, because there is no directed path from A to A
Question 2 Multiple Choice

A compiler models variable influence: the relation holds when variable x influences variable y. The system needs x to trivially influence itself (any assignment to x affects x). Should the compiler use R⁺ or R* to represent this influence relation?

AR⁺, because a genuine one-step connection from x to itself must be established first
BR*, because it includes the identity relation and thus captures zero-step self-influence as a built-in property
CEither — they produce the same result when self-loops are explicitly added to the input relation
DNeither — variable influence is not a closure relation in the mathematical sense
Question 3 True / False

In R*, two elements a and b are related if and mainly if there exists a directed path of one or more edges from a to b.

TTrue
FFalse
Question 4 True / False

For an acyclic directed graph, R* and R⁺ produce identical results, because there are no cycles to create self-loops in either closure.

TTrue
FFalse
Question 5 Short Answer

In one or two sentences, explain why 'zero or more steps' correctly describes R* but not R⁺, and give a context where this distinction matters.

Think about your answer, then reveal below.