Question
Easy
Time complexity of Merge Sort Algorithm and Binary Search Algorithm are respectively............
1
$O(\log_{2}n)$ and $O(n \log_{2}n)$
2
$O(n \log_{2}n)$ and $O(\log_{2}n)$
3
$O(n^2)$ and $O(\log_{2}n)$
4
$O(2^n)$ and $O(n^2)$
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Data Structures (Through C++)
Topic: Data Structure Concepts
Correct Answer
Option B
Explanation
The correct option is (2): $O(n \\log\{2}n)$ and $O(\\log\{2}n)$ Merge Sort is a highly efficient sorting algorithm that follows the Divide and Conquer paradigm. To calculate its time complexity, we consider the two main phases: the recursive division and the merging process. The division of the array into halves continues until the subarrays contain a single element, which results in $\\log\_{2}n$ levels of recursion. Crucially, the merging of the sorted…Read More
Similar Questions from HTET Exam - Level 3 - Year 2018
Question 1
Easy
Source :
HTET 2018
A double ellipse represents _______ attribute in ER-diagram.
Chapter :
Database Management System (DBMS) & SQL
Topic :
Database Concepts
Question 2
Easy
Source :
HTET 2018
Consider Column - 1 and Column - 2: Column-1 - Column-2 1. Bing - a. Social Networking 2. Flipkart - b. e-mail 3. Facebook, -…
Chapter :
Computer Networks & Internet
Topic :
Internet Fundamentals
Question 3
Easy
Source :
HTET 2018
In HTML the _______ element is used to contain characters that should be super script:
Chapter :
Web Designing using HTML
Topic :
HTML Basics
Question 4
Easy
Source :
HTET 2018
Consider Column-1 and Column-2: Column-1 - Column-2 1. Microsoft Office - a. File Archiver and Compressor 2. Windows-10 - b. Digital Library, 3. WinZip -…
Chapter :
Operating Systems & Software Concepts
Topic :
Computer Software