recategorized by
193 views
0 votes
0 votes

The running time of using two-way merge-sort technique to sort a file of $n>1$ record is

  1. $2T (n/2) + \theta (n)$
  2. $\text{lg}(n) + \theta(n)$
  3. $\theta (n)$
  4. $O(n)$
recategorized by

1 Answer

0 votes
0 votes
Ans: A

 In case of 2-way Merge sort we get the equation: T(n) = 2T(n/2) + θ(n) Similarly, in case of 3-way Merge sort we get the equation: T(n) = 3T(n/3) + θ(n)

Related questions

0 votes
0 votes
1 answer
1
gatecse asked Aug 4, 2019
304 views
In relational DBMS, the closure of functional dependencies facilitates To determine the candidate key To determine the foreign key To determine the dependency of an attr...
0 votes
0 votes
1 answer
2
gatecse asked Aug 4, 2019
335 views
The schema for the entire database is designed using Data definitional languageStructured query languageData manipulation language Schema structure language
0 votes
0 votes
0 answers
3
gatecse asked Aug 4, 2019
243 views
The Software Development Life Cycle (SDLC) is used in allProcess modelsDesign modelsProgramming modelsNone of these
0 votes
0 votes
0 answers
4
gatecse asked Aug 4, 2019
256 views
The complexity of algorithms is comparatively more accurate in the use ofAsymptotic analysisAmortized analysisBoth of theseNot dependent on the nature of analysis.