Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged merging
1.1k
views
2
answers
12
votes
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 50
Given an unsorted array of $n$ distinct elements, you want to find this set of $\log n$ elements: those at positions $1,2,4,8,16, \ldots, n/2$ if array were sorted. In ... \Theta(\log n)$\Theta(n)$\Theta(n \log n)$\Theta\left(n^{2}\right)$
GO Classes
1.1k
views
GO Classes
asked
Jan 13
Algorithms
goclasses2024-mockgate-11
goclasses
algorithms
merging
time-complexity
2-marks
+
–
1.0k
views
1
answers
0
votes
DSA
Given two max heap, one of size n and other m. Calculate the time complexity of merging them to get a max heap.
shub2204
1.0k
views
shub2204
asked
Dec 5, 2022
DS
binary-heap
time-complexity
merging
+
–
323
views
1
answers
5
votes
GO Classes Test Series 2023 | Algorithms | Test 1 | Question: 17
Consider the following pseudo-code of function fun(). fun() takes k arrays as input and return merged array of all. Assume that merge function takes $O(p+q)$ where $p$ is length of first ... $T(k)=O(n \log nk )$
GO Classes
323
views
GO Classes
asked
Jun 13, 2022
Algorithms
goclasses2024-algo-1-weekly-quiz
goclasses
algorithms
merging
time-complexity
2-marks
+
–
1.1k
views
0
answers
0
votes
Merge Sort
Can anyone help me to understand this problem….??
Vikas123
1.1k
views
Vikas123
asked
Jan 8, 2019
Algorithms
merge-sort
algorithms
sorting
merging
+
–
529
views
1
answers
0
votes
Self Doubt
What is the minimum and maximum number of comparisons required to merge two lists of size m and n ?
Vipin Rai
529
views
Vipin Rai
asked
Nov 11, 2018
Algorithms
merging
+
–
1.8k
views
1
answers
3
votes
Merge sort
How many swaps are performed in Merge sort algorithm in worst case?
Kaushal Sanadhya
1.8k
views
Kaushal Sanadhya
asked
Oct 9, 2018
Algorithms
merge-sort
algorithms
sorting
merging
+
–
1.7k
views
2
answers
0
votes
Self doubt
The total number of comparions required to merge 4 sorted files containing 15, 3, 9 and 8 records into a single sorted file is A.66 B.39 C.15 D.33
Raj Kumar 7
1.7k
views
Raj Kumar 7
asked
Jul 17, 2018
Algorithms
algorithms
merging
sorting
+
–
1.6k
views
3
answers
0
votes
Merge Sort
A list of n string, each of length n, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is(A) (B) (C) (D)
pradeepchaudhary
1.6k
views
pradeepchaudhary
asked
Jul 8, 2018
Algorithms
merge-sort
algorithms
sorting
merging
+
–
18.4k
views
2
answers
3
votes
Merge Sort
The average no. of comparisons performed by the merge sort algorithm, in merging two sorted lists of length 2 is -a) 8/3b) 8/5c) 11/7d) 11/6
garvit_vijai
18.4k
views
garvit_vijai
asked
Jul 1, 2018
Algorithms
merge-sort
merging
time-complexity
+
–
631
views
2
answers
0
votes
Why we take min heap in optimal merge pattern
Ajeet Singh
631
views
Ajeet Singh
asked
Apr 20, 2018
Algorithms
binary-heap
merging
+
–
961
views
0
answers
1
votes
Ace Test Series: Algorithms - Dynamic Programming Optimal Merging Of Files
I got 206???
rasto mapp
961
views
rasto mapp
asked
Jan 21, 2018
Algorithms
ace-test-series
algorithms
dynamic-programming
merging
graph-theory
optimal-merge-pattern
+
–
4.0k
views
1
answers
2
votes
Optimal Merge Pattern
Given a set of sorted files f1,f2,f3,f4,f5 of lengths 99,27,71,199,259 we need to merge these files into a single sorted file Using Optimal Merge Pattern.
VIKAS TIWARI
4.0k
views
VIKAS TIWARI
asked
Dec 13, 2017
Algorithms
merging
algorithms
+
–
1.5k
views
2
answers
2
votes
Optimal Merge Pattern,similar to http://gateoverflow.in/1997/gate2014-2-38
To merge 2 files of size m and n it takes m + n time What will be the optimal time Complexity to merge the files of size 10, 15, 40, 70, 75 and 80?
Ali Jazib Mahmood
1.5k
views
Ali Jazib Mahmood
asked
Aug 18, 2017
Algorithms
algorithms
merging
numerical-answers
+
–
3.7k
views
4
answers
2
votes
Comparisons for merging four arrays
Suppose there are 4 sorted lists of 8 elements each. If we merge these lists into a single sorted list of 32 elements. The key comparisons that are needed in the worst case using an efficient algorithm are ____.
GateAspirant999
3.7k
views
GateAspirant999
asked
Feb 2, 2017
Algorithms
algorithms
merging
array
+
–
328
views
0
answers
0
votes
testbook Algorithm
How?
Jason_Roy
328
views
Jason_Roy
asked
Jan 23, 2017
Algorithms
testbook-test-series
algorithms
merging
+
–
696
views
0
answers
0
votes
Testbook
Can anyone clarify hy they are getting 269 and and I am getting 258?
Sushant Gokhale
696
views
Sushant Gokhale
asked
Jan 23, 2017
DS
merging
+
–
2.1k
views
4
answers
2
votes
Testbook Test Series: Algorithms - Greedy Algorithm
The optimal time required in merging the list of size 11, 21, 33, 34,45,54,60 ismy answer (11+21)*4+ 33*3 +(34+45)*3 + (54+60)*2but the provided ... think I have solved it wrong but just want to confirm is there any other way to do this?
Pankaj Joshi
2.1k
views
Pankaj Joshi
asked
Jan 22, 2017
Algorithms
testbook-test-series
test-series
merging
algorithms
greedy-algorithm
+
–
312
views
1
answers
0
votes
Ace Test Series
Vignesh Kamath
312
views
Vignesh Kamath
asked
Jan 14, 2017
Algorithms
algorithms
ace-test-series
merging
+
–
433
views
1
answers
0
votes
file size
Let $F_1,F_2,..............F_n$ be files with length $L_1,L_2........L_n$ we would like to merge all of the files together to make a single file .The cost ... of merging ten files whose length are $5,3,10,20,15,10,5,1,2,4$ is _____________.
shivanisrivarshini
433
views
shivanisrivarshini
asked
Feb 2, 2016
Algorithms
merging
greedy-algorithm
+
–
314
views
1
answers
0
votes
merge algo
Number of comparisions in worst case required to merge two sorted arrays of size 40 and 60 are-------
Kamalkant Patel
314
views
Kamalkant Patel
asked
Jan 30, 2016
Algorithms
algorithms
merging
array
+
–
11.8k
views
2
answers
0
votes
A average number of comparison performed by the merge sort algorithm ,In Merging two sorted lists of length 2 is
If I have two lists of length 2 then no of comparisons in the worst case would be 2 only , since If I have say 10,20 in list A and 5,7 in list B ... have merged both the lists , so then how to calculate the average no of comparisons here ?
radha gogia
11.8k
views
radha gogia
asked
Jul 31, 2015
Algorithms
algorithms
merging
time-complexity
+
–
48.5k
views
6
answers
35
votes
GATE CSE 1995 | Question: 1.16
For merging two sorted lists of sizes $m$ and $n$ into a sorted list of size $m+n$, we require comparisons of$O(m)$O(n)$O(m+n)$O(\log m + \log n)$
Kathleen
48.5k
views
Kathleen
asked
Oct 8, 2014
Algorithms
gate1995
algorithms
sorting
normal
merging
+
–
25.6k
views
8
answers
86
votes
GATE CSE 2014 Set 2 | Question: 38
Suppose $P, Q, R, S, T$ are sorted sequences having lengths $20, 24, 30, 35, 50$ respectively. They are to be merged into a single sequence by ... that will be needed in the worst case by the optimal algorithm for doing this is ____.
go_editor
25.6k
views
go_editor
asked
Sep 28, 2014
Algorithms
gatecse-2014-set2
algorithms
sorting
normal
numerical-answers
merging
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register