Question
Which sorting algorithm is the most efficient for large
datasets and uses a divide-and-conquer approach?Solution
Merge Sort is a divide-and-conquer algorithm that divides the dataset into smaller subarrays, sorts each recursively, and merges them back to form a sorted array. Its time complexity is O(n log n) in all cases, making it highly efficient for large datasets.Advantages of Merge Sort include:
- Stability: It maintains the order of equal elements.
- Predictable performance: Consistent time complexity across best, worst, and average cases.
- Handles large datasets effectively, especially when external memory (e.g., disk storage) is involved.
How is T related to S?
If the expression ‘U & Z # Y * W & V’ is true, then how is Z’s son related to father in law of only sister in law of Y?
Answer the questions based on the information given below.
A ÷ B means ‘A is the mother of B’
A × B means A is the husband of ...
'A + B' means 'A is the sister of B'. 'A - B' means 'A is the brother of B'. 'A X B' means 'A is the father of B'. 'A ÷ B' means 'A is the wife of B'. ...
Answer the following question based on the direction given below.
If 'A#B' means 'A is father of B'
'A&B' means 'A is wife of B'
...Answer the questions based on the information given below.
L + M means L is the wife of M.
L ? M means L is the son of M.
L > M m...
If ' S # F % G, R $ N $ G, H % N, P $ S % T' is true, then which among the following statement/statements is/are correct?
Statements:
I...
In a certain code language,
X + Y means 'X is the father of Y'
X - Y means 'X is the brother of Y',
X X Y means 'X is the sister of...
A + B means ‘A is father of B’
A – B means ‘A is mother of B’
A × B means ‘A is daughter of B’
A ÷ B means �...
A + B means ‘A is the mother of B’; A – B means ‘A is the husband of B’; A × B means ‘A is the son of B’; A ÷ B means ‘A is the daught...