Question
How was G's father related to A's sister's
mother A family had 8 members A, B, C, D, E, F, G and H. They belonged to 3 different generations and each child had either both or none of his parents alive. • Pointing towards C, G said "he is the only son of my mother's only son-in-law". • Pointing towards B, a person said, "He is the father of my son's mother". • Pointing towards G, a person said, "She is the only sister-in-law of E's father-in-law". • F said, "I have 2 children and 2 grandchildren". • Pointing towards a person, C said, "she is the only daughter of G's sister". • Pointing towards D, F said, "He is the son-in-law of H's grandfather". • A said, "My spouse has no daughter-in-law".Solution
​• Pointing towards C, G said, "he is the only son of my mother's only son-in-law". G's mother's son-in-law can be G's husband or G's sister's husband. Thus, C is either the son or nephew of G. • Pointing towards G a person said, "She is the only sister-in-law of E's father-in-law". • Pointing towards a person C said, "she is the only daughter of G's sister". G has a sister and a niece. Case 1: when C is the son of G
In this case we get 9 members, hence the case is invalid. Also, G's mother cannot have 2 sons-in-law. Case 2: When C is G's nephew
E will be either wife of C or husband of G's niece • Pointing towards B a person said, "He is the father of my son's mother". B must be a male. Thus, the person speaking the statement will be G's sister's husband and B will be G's father. • F said, "I have 2 children and 2 grandchildren". F will be G's mother. • Pointing towards D, F said, "He is the son-in-law of H's grandfather". D will be G's sister's husband. H will be G's niece. As E is in the 3rd generation, A will be G's sister.
• A said, "My spouse has no daughter-in-law". Thus, E will be H's husband. Thus, the final family tree is as follows: 
State True or False
Kernel level thread cannot share the code segment.
Which of the following protocol is a network layer protocol and used for reporting errors?
What is the time complexity of a Binary Search algorithm on a sorted array of 'n' elements?
What is the primary purpose of Named Entity Recognition (NER)?
Consider the in-order traversal of a Binary Search Tree. What characteristic does the sequence of visited nodes possess?
In a 0/1 Knapsack problem implemented using dynamic programming, a common mistake is to allow items to be reused, effectively turning it into an unbound...
In a backtracking algorithm, what happens when a partial solution is found to violate a constraint?
Consider the following Python code:
text = "banana"
char_to_find = 'a'
count = 0
for i in range(len(text)):
  if ...
What is a common disadvantage of greedy algorithms?
What is the primary purpose of the UNION ALL operator in SQL?