Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Search results for merging
12
votes
2
answers
1
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 other words, find the largest element, the second largest element, the ... the subarray) $\Theta(\log n)$ $\Theta(n)$ $\Theta(n \log n)$ $\Theta\left(n^{2}\right)$
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 ot...
GO Classes
987
views
GO Classes
asked
Jan 13
Algorithms
goclasses2024-mockgate-11
goclasses
algorithms
merging
time-complexity
2-marks
+
–
0
votes
1
answer
2
DSA
Given two max heap, one of size n and other m. Calculate the time complexity of merging them to get a max heap.
Given two max heap, one of size n and other m. Calculate the time complexity of merging them to get a max heap.
shub2204
908
views
shub2204
asked
Dec 5, 2022
DS
binary-heap
time-complexity
merging
+
–
5
votes
1
answer
3
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 input array to merge and $q$ is length of second input array to merge. In the ... $T(k)=O(n k \log k)$ $T(k)=O(n k \log n)$ $T(k)=O(n \log nk )$
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...
GO Classes
298
views
GO Classes
asked
Jun 13, 2022
Algorithms
goclasses2024-algo-1-weekly-quiz
goclasses
algorithms
merging
time-complexity
2-marks
+
–
3
votes
2
answers
4
Merge Sort
The average no. of comparisons performed by the merge sort algorithm, in merging two sorted lists of length 2 is - a) 8/3 b) 8/5 c) 11/7 d) 11/6
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.0k
views
garvit_vijai
asked
Jul 1, 2018
Algorithms
merge-sort
merging
time-complexity
+
–
3
votes
1
answer
5
Merge sort
How many swaps are performed in Merge sort algorithm in worst case?
How many swaps are performed in Merge sort algorithm in worst case?
Kaushal Sanadhya
1.7k
views
Kaushal Sanadhya
asked
Oct 9, 2018
Algorithms
merge-sort
algorithms
sorting
merging
+
–
0
votes
3
answers
6
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)
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.5k
views
pradeepchaudhary
asked
Jul 8, 2018
Algorithms
merge-sort
algorithms
sorting
merging
+
–
0
votes
0
answers
7
Merge Sort
Can anyone help me to understand this problem….??
Can anyone help me to understand this problem….??
Vikas123
1.0k
views
Vikas123
asked
Jan 8, 2019
Algorithms
merge-sort
algorithms
sorting
merging
+
–
0
votes
1
answer
8
Self Doubt
What is the minimum and maximum number of comparisons required to merge two lists of size m and n ?
What is the minimum and maximum number of comparisons required to merge two lists of size m and n ?
Vipin Rai
502
views
Vipin Rai
asked
Nov 11, 2018
Algorithms
merging
+
–
2
votes
1
answer
9
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.
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
3.9k
views
VIKAS TIWARI
asked
Dec 13, 2017
Algorithms
merging
algorithms
+
–
0
votes
2
answers
10
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
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.6k
views
Raj Kumar 7
asked
Jul 17, 2018
Algorithms
algorithms
merging
sorting
+
–
2
votes
4
answers
11
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 ____.
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 ca...
GateAspirant999
3.6k
views
GateAspirant999
asked
Feb 2, 2017
Algorithms
algorithms
merging
array
+
–
0
votes
2
answers
12
Why we take min heap in optimal merge pattern
Ajeet Singh
599
views
Ajeet Singh
asked
Apr 20, 2018
Algorithms
binary-heap
merging
+
–
1
votes
0
answers
13
Ace Test Series: Algorithms - Dynamic Programming Optimal Merging Of Files
I got 206???
I got 206???
rasto mapp
896
views
rasto mapp
asked
Jan 21, 2018
Algorithms
ace-test-series
algorithms
dynamic-programming
merging
graph-theory
optimal-merge-pattern
+
–
2
votes
2
answers
14
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?
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.4k
views
Ali Jazib Mahmood
asked
Aug 18, 2017
Algorithms
algorithms
merging
numerical-answers
+
–
2
votes
4
answers
15
Testbook Test Series: Algorithms - Greedy Algorithm
The optimal time required in merging the list of size 11, 21, 33, 34,45,54,60 is my answer (11+21)*4+ 33*3 +(34+45)*3 + (54+60)*2 but the provided answer is 269 to 282 I don't think I have solved it wrong but just want to confirm is there any other way to do this?
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 answer is 269 to 282I don...
Pankaj Joshi
2.0k
views
Pankaj Joshi
asked
Jan 22, 2017
Algorithms
testbook-test-series
test-series
merging
algorithms
greedy-algorithm
+
–
0
votes
2
answers
16
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 so then on merging 10 is ...
radha gogia
11.6k
views
radha gogia
asked
Jul 31, 2015
Algorithms
algorithms
merging
time-complexity
+
–
0
votes
0
answers
17
Testbook
Can anyone clarify hy they are getting 269 and and I am getting 258?
Can anyone clarify hy they are getting 269 and and I am getting 258?
Sushant Gokhale
664
views
Sushant Gokhale
asked
Jan 23, 2017
DS
merging
+
–
0
votes
0
answers
18
testbook Algorithm
How?
How?
Jason_Roy
318
views
Jason_Roy
asked
Jan 23, 2017
Algorithms
testbook-test-series
algorithms
merging
+
–
0
votes
1
answer
19
Ace Test Series
Vignesh Kamath
299
views
Vignesh Kamath
asked
Jan 14, 2017
Algorithms
algorithms
ace-test-series
merging
+
–
0
votes
1
answer
20
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 files is $m+n$ if the files have length $m$ and $n$ .Find the minimum cost of merging ten files whose length are $5,3,10,20,15,10,5,1,2,4$ is _____________.
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 file...
shivanisrivarshini
413
views
shivanisrivarshini
asked
Feb 2, 2016
Algorithms
merging
greedy-algorithm
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register