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.
Simplify the Boolean expression.
Y= AB+A(B+C)+B(B+C)
What is the primary use of the printf function in C/C++ programming?
Data warehouse has historical data
What is the primary function of the CICS (Customer Information Control System) in mainframe computing?
What does the term "serializable" refer to in the context of database transactions?
Which statement is FALSE regarding Programmable Logic Controller?
Maximum Power transfer occurs when the_____
In a binomial heap, if the root is greater than the left child and less than the right child, which of the following statements is correct?
Which of the following best explains why communication latency is generally higher in microservices compared to monolithic architectures?Â
Which statement is FALSE about open loop system?