| Ramit007 asks : how to recognize that the verb is transitive or intransitive |
| Tarunpal singh asks : we have a realation R:[ (x,y) such that x is a wife of y ] whether this relation is transitive or not? |
| Tarunkashyap pulijala asks : Assume you have a file containing 20 names, each separated by newlines. Write a program to group the people as relatives. Two people are assumed to be relatives if they have at least one name in common. Also, assume that relationships are transitive. i.e., if A is related to B, and B is related to C, then we assume that A is related to C. Output the names, grouped by relationships. The names in each group should appear in the same order they appeared in the initial list, and the groups should appear in the order of their first name (as they appeared in the initial list). Each group must be separated by a line containing a single % symbol. Input: Output: Anand Kumar Anand Kumar Ajay Singh Kumar Gandharv Kumar Gandharv % John Abraham Ajay Singh Karan Singh Karan Singh % John Abraham |