Regular expression (x/y)(x/y) denotes which of the following set?

Phương Linh

New member
Regular expression (x/y)(x/y) denotes which of the following set?
A. {xy,xy}
B. {xx,xy,yx,yy}
C. {x,y}
D. {x,y,xy}
 
Answer: b
Explanation: From first part if we take x then from the latter part x then it forms xx
From first part if we take x then from the latter part y then it forms xy
From first part if we take y then from the latter part x then it forms yx
From first part if we take y then from the latter part y then it forms yy.
 

Tìm kiếm

Back
Top