Insurance (LIC / GIC) /Reasoning Ability

Blood relations

Verbal Reasoning · free study notes

Study Notes – Blood Relations (Advanced Reasoning Ability)

Audience: Graduate‑level students (MIT/Harvard) in logic, discrete mathematics, or advanced aptitude testing.
Goal: Provide a rigorous, first‑principles framework for reasoning about genealogical relationships, demonstrate algorithmic solutions, and present a challenging problem set.


1. Conceptual Foundations

1.1 Definitions

Term Formal Definition
Person An element of a finite, non‑empty set (P).
Parent Binary relation (R_{\text{parent}} \subseteq P \times P) where ((x,y)) means x is a parent of y.
Child Inverse relation: (R_{\text{child}} = R_{\text{parent}}^{-1}).
Sibling (R_{\text{sibling}} = {(x,y) \mid \exists z: (z,x)\in R_{\text{parent}} \land (z,y)\in R_{\text{parent}}, x\neq y}).
Ancestor Reflexive, transitive closure of (R_{\text{parent}}). Denote (R_{\text{anc}}).
Descendant Reflexive, transitive closure of (R_{\text{child}}). Denote (R_{\text{desc}}).
Cousin Two individuals who share a common ancestor but are not in the ancestor‑descendant chain.
Degree of Kinship Minimum number of edges in the undirected genealogical tree connecting two persons.

1.2 Genealogical Graph

  • Nodes: Persons (P).
  • Edges: Directed edges from parent to child (or undirected if we ignore direction).
  • Properties:
    • Acyclic: No cycles because time flows forward.
    • Root(s): Individuals with no parents (founders).
    • Tree vs. Forest: If every person has exactly two parents (biological), the structure is a directed acyclic graph (DAG) with a unique parent pair for each child.

1.3 Formal Logic

  • Let (P(x)) denote “(x) is a person”.
  • Parent relation: (Parent(x,y)).
  • Sibling relation: (Sibling(x,y) \equiv \exists z\ (Parent(z,x) \land Parent(z,y) \land x\neq y)).
  • Transitive closure: (Ancestor(x,y) \equiv x = y \lor \exists z\ (Parent(z,y) \land Ancestor(x,z))).

2. Theoretical Tools

2.1 Graph Algorithms

Problem Complexity Algorithm
Ancestor/Descendant query (O(1)) after preprocessing Pre‑compute depth and parents (Euler tour + RMQ).
Lowest Common Ancestor (LCA) (O(\log n)) Binary lifting or Tarjan’s offline LCA.
Degree of kinship (O(\log n)) LCA + depth difference.
Sibling detection (O(1)) Pre‑compute parent pair IDs.

2.2 Combinatorial Counting

  • Number of distinct ancestries: For a family tree with (n) individuals, maximum edges (2(n-1)) if each child has two parents.
  • Cousin enumeration: For each ancestor, all pairs of distinct descendants at the same generation are cousins.

2.3 Edge Cases & Constraints

Edge Case Handling
Adopted individuals Treat as children of adoptive parents; no biological link.
Polygamy / Multiple partners Graph remains a DAG; a child may have more than two parents.
Genetic vs. legal relations Distinguish biological vs. legal parent relations.
Missing data Use placeholder nodes; queries involving unknown ancestors return Unknown.

2.4 Complexity Analysis

  • Space: (O(n)) for storing parent arrays and depth.
  • Pre‑processing Time: (O(n)) for depth and binary lifting tables.
  • Query Time: (O(\log n)) for kinship degree, (O(1)) for sibling check.

3. Advanced Reasoning Patterns

3.1 Recursive Decomposition

  • Problem: Determine if (x) is a cousin of (y).
  • Approach:
    1. Find LCA (l).
    2. If (l = x) or (l = y), then one is ancestor of the other → Not cousins.
    3. Compute depths (d_x, d_y).
    4. If (d_x = d_y) and (l) is not a direct parent of either, then cousins.

3.2 Path Counting

  • Question: How many distinct paths exist from ancestor (a) to descendant (b)?
  • Solution: Dynamic programming on DAG: (dp[b] = \sum_{p \in Parents(b)} dp[p]) with (dp[a] = 1).

3.3 Graph Isomorphism in Genealogy

  • Two genealogical graphs are isomorphic if there is a bijection preserving parent-child relations.
  • Useful for recognizing identical family structures across cultures.

4. Practical Algorithmic Skeleton (Python‑like pseudocode)

class Genealogy:
    def __init__(self, n):
        self.n = n
        self.parent = [[] for _ in range(n)]   # list of parents for each node
        self.depth = [0]*n
        self.up = [[-1]*LOG for _ in range(n)]  # binary lifting table

    def add_parent(self, child, parent):
        self.parent[child].append(parent)

    def preprocess(self):
        # BFS from roots to compute depth and up[0]
        queue = deque([root for root in range(self.n) if not self.parent[root]])
        while queue:
            v = queue.popleft()
            for p in self.parent[v]:
                self.depth[v] = self.depth[p] + 1
                self.up[v][0] = p
                queue.append(v)
        # Build binary lifting table
        for k in range(1, LOG):
            for v in range(self.n):
                if self.up[v][k-1] != -1:
                    self.up[v

Your note

Page 1

Doubt hai is topic me?

Free AI teacher se poocho — 24/7, step by step.