Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged sorting
1.4k
views
0
answers
1
votes
Can Merge Sort Time Complexity be O(n^2) in any condition?
aditykansara
1.4k
views
aditykansara
asked
Jan 31, 2019
Algorithms
algorithms
time-complexity
sorting
+
–
1.3k
views
1
answers
4
votes
ME Mock 4
Consider a new sorting algorithm similar to the BubbleSort algorithm, called RumbleSort. Given an array as input, RumbleSort attempts to sort the array and produces a sorted ... $\mathcal Ο(n^2)$ Which of the above statements is/are true?
balchandar reddy san
1.3k
views
balchandar reddy san
asked
Jan 30, 2019
Algorithms
time-complexity
algorithms
sorting
made-easy-test-series
+
–
3.2k
views
2
answers
3
votes
MadeEasy WorkBook: Algorithms - Sorting
Consider the following array with 7 elements for insertion sort?25, 15, 30, 9, 99, 20, 26 In how many passes, the given sequence will be sorted? (a) 4 pass ... pass (d) More than 6 passAnswer is 6 passes. Can anyone explain it step by step.
Jyoti Kumari97
3.2k
views
Jyoti Kumari97
asked
Jan 26, 2019
Algorithms
made-easy-booklet
algorithms
sorting
+
–
733
views
0
answers
0
votes
Merge sort
What is the extra memory needed for merge sort:1] In case of Iterative merge sort.(DS:Array)2]In case of Recursive merge sort.(DS:Array)3] In case of Iterative merge sort.(DS:Linked List)4]In case of Recursive merge sort.(DS:Linked List)
Nandkishor3939
733
views
Nandkishor3939
asked
Jan 21, 2019
Algorithms
merge-sort
algorithms
sorting
+
–
1.6k
views
4
answers
3
votes
MadeEasy Test Series: Algorithms - Sorting
Consider a scenario of modified quick sort, where we have given an input sorted array A[1 .. . n], all elements of array are distinct and n >=3. Pivot is the median of set of 3 ... sort?a.O($n^{2}$)b.O(nlogn)c.O($n^{2}$logn)d.O(nloglogn)
newdreamz a1-z0
1.6k
views
newdreamz a1-z0
asked
Jan 21, 2019
Algorithms
algorithms
sorting
quick-sort
made-easy-test-series
+
–
731
views
1
answers
1
votes
Self Doubt
The average no. of comparisons performed by the merge sort algorithm, in merging 2 sorted lists of length 2 is___________.Ans: $\frac{8}{3}$
kumar.dilip
731
views
kumar.dilip
asked
Jan 19, 2019
Algorithms
algorithms
merge-sort
sorting
+
–
406
views
1
answers
0
votes
Self Doubt Algorithms
When relative ordering of equal keys is preserved after sorting then it is called stable. Quick sort and heap sort is not a stable sorting algorithm . Doubt---IS Selection sort not a stable sorting algorithm ?
Prince Sindhiya
406
views
Prince Sindhiya
asked
Jan 19, 2019
Algorithms
algorithms
sorting
+
–
949
views
1
answers
2
votes
sorted list
we are given (log m) sorted list each of size (log n) / (log m) the time complexity of merging list into single sorted list using mergesort is equal to a) O ( log m log(log n) ) ... ) c) O ( log m log n) d) O ( m log log n)
Rahul_Rathod_
949
views
Rahul_Rathod_
asked
Jan 16, 2019
Algorithms
algorithms
sorting
time-complexity
+
–
529
views
0
answers
0
votes
ME_test_series
An array A of size n is known to be sorted except for the first k elements and the last k elements, where K is a constant. Which of the following ... sortD.) bubble sortI can't understand how can insertion sort be better in this case?
Shivam Kasat
529
views
Shivam Kasat
asked
Jan 13, 2019
Algorithms
algorithms
sorting
+
–
266
views
2
answers
0
votes
ME TEST SERIES
Shankar Kakde
266
views
Shankar Kakde
asked
Jan 10, 2019
Algorithms
sorting
made-easy-test-series
+
–
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
+
–
543
views
1
answers
0
votes
UPPCL AE 2018:46
Which one of the following algorithms cannot sort $n$ numbers in $O(n)$ comparisons?Counting sortRadix sortHeap sortBucket sort
admin
543
views
admin
asked
Jan 5, 2019
Algorithms
uppcl2018
algorithms
sorting
+
–
324
views
1
answers
0
votes
UPPCL AE 2018:20
Which of the following is not a stable sorting algorithm in its typical implementation?Merge sortBubble sortQuick sortInsertion sort
admin
324
views
admin
asked
Jan 5, 2019
Algorithms
uppcl2018
algorithms
sorting
+
–
1.2k
views
0
answers
0
votes
UGC NET CSE | December 2018 | Part 2 | Question: 30
The second smallest of $n$ elements can be found with ____ comparisons in the worst case.$n-1$\lg \: n$n + ceil(\lg \: n)-2$\frac{3n}{2}$
Arjun
1.2k
views
Arjun
asked
Jan 2, 2019
Unknown Category
ugcnetcse-dec2018-paper2
algorithms
sorting
+
–
698
views
0
answers
0
votes
MadeEasy Test Series: Programming & DS - Sorting
An array A of size n is known to be sorted except for the first k elements and the last k elements, where k is a constant. Which of the ... the best choice for sorting the array A?a-Insertion Sortb-Bubble sortc-Quicksortd-Selection sort
Shamim Ahmed
698
views
Shamim Ahmed
asked
Jan 1, 2019
DS
data-structures
made-easy-test-series
sorting
+
–
1.7k
views
1
answers
6
votes
GATE Overflow | Mock GATE | Test 1 | Question: 62
Which of the following sorting algorithms performs efficiently to sort a singly linked list containing $\log n$ ... n ))$\text{Quick sort, } O ( \log 2)(\log n ))$
Ruturaj Mohanty
1.7k
views
Ruturaj Mohanty
asked
Dec 27, 2018
Algorithms
go-mockgate-1
data-structures
linked-list
sorting
algorithms
+
–
9.1k
views
1
answers
1
votes
Highest best case implies worst case?
Which of the below given sorting techniques has highest best-case runtime complexity.(A) Quick sort(B) Selection sort(C) Insertion sort(D) Bubble sortAnswer: (B) ... case time should be O(n) sorting method what does highest best cases mean?
sripo
9.1k
views
sripo
asked
Dec 23, 2018
Algorithms
algorithms
sorting
time-complexity
+
–
848
views
0
answers
0
votes
Self Doubt
Please correct if any of the point is wrong :Quicksort:1.Need more random accesses2 Used when Random access is fast (hence preferred on array and not on ... makes it faster than merge sort in many cases like in virtual memory environment.
jatin khachane 1
848
views
jatin khachane 1
asked
Dec 21, 2018
Programming in C
programming
data-structures
sorting
+
–
1.3k
views
1
answers
0
votes
cormen 7.2 -5
Suppose that the splits at every level of quicksort are in the proportion 1 - α to α, where 0 < α ≤ 1/2 is a constant. Show that ... but couldn't understand https://stackoverflow.com/questions/17684680/maximum-and-minimum-depth-of-quicksort
vijju532
1.3k
views
vijju532
asked
Dec 21, 2018
Algorithms
algorithms
sorting
data-structures
recursion
cormen
+
–
2.5k
views
4
answers
2
votes
MadeEasy Subject Test 2019: Algorithms - Sorting
Suppose there are 4 sorted list of 16 elements each. If we merge these lists into a single sorted list of 64 elements. The key comparisons that are needed in the worst case using an efficient algorithm are
Ramij
2.5k
views
Ramij
asked
Dec 20, 2018
Algorithms
made-easy-test-series
algorithms
sorting
merge-sort
+
–
659
views
0
answers
0
votes
MadeEasy Test Series: Algorithms - Sorting
Which of the following sorting algorithm represented by above code?
Abhishek Kumar 38
659
views
Abhishek Kumar 38
asked
Dec 19, 2018
Algorithms
made-easy-test-series
algorithms
sorting
+
–
5.7k
views
1
answers
2
votes
bubble sort
How many passes of bubble sort are required to sort the following sequence (Pass is counted only when at least one swap is performed in the bubble sort pass)? ... (d) 3I am getting ans as 3 but given answer in 4. please verify it
Mak Indus
5.7k
views
Mak Indus
asked
Dec 18, 2018
Algorithms
bubble-sort
sorting
+
–
4.7k
views
1
answers
0
votes
MadeEasy Subject Test 2019: Algorithms - Sorting
Which of the following input will give best case time for selection sort?(A) 1 2 3 4 5 6 7 8 9 10(B) 2 3 1 5 9 7 8 6 10(C) 10 9 8 7 6 5 4 3 2 1 (D) All of above take same amount of time
Rajat Agrawal007
4.7k
views
Rajat Agrawal007
asked
Dec 17, 2018
Algorithms
made-easy-test-series
algorithms
sorting
+
–
894
views
1
answers
2
votes
MadeEasy Test Series: Algorithms - Sorting
An array of size n is known to be sorted except for the 1st k elements and the last k elements, where k is a constant. which of the following algorithm is the best ... in average case and O(k^2) in the worst case. what's wrong in that?
aambazinga
894
views
aambazinga
asked
Dec 15, 2018
Algorithms
made-easy-test-series
algorithms
sorting
+
–
339
views
0
answers
0
votes
Self doubt
The tightest lower bound on the number of comparisons, in the worst case, for comparison-based sorting is The tightest upper bound on the number of comparisons ... the number of comparisons, in the best case, for comparison-based sorting is
jatin khachane 1
339
views
jatin khachane 1
asked
Dec 13, 2018
Algorithms
algorithms
sorting
+
–
561
views
0
answers
0
votes
made_easy_test_2019 (Algorithms)
explain how to solve the above question !
air1ankit
561
views
air1ankit
asked
Dec 11, 2018
Algorithms
algorithms
sorting
+
–
325
views
1
answers
0
votes
Ace test series
abhishekmehta4u
325
views
abhishekmehta4u
asked
Dec 8, 2018
Algorithms
algorithms
sorting
time-complexity
array
ace-test-series
+
–
17.1k
views
1
answers
1
votes
NIELIT 2018-47
______ sorting algorithms has the lowest worst-case complexity.Selection SortBubble SortMerge SortQuick Sort
Arjun
17.1k
views
Arjun
asked
Dec 7, 2018
Algorithms
nielit-2018
algorithms
sorting
+
–
1.2k
views
2
answers
1
votes
GATE CSE 2003 | Question: 22 Self doubt
The unusual $\Theta(n^2)$ implementation of Insertion Sort to sort an array uses linear search to identify the position where an element is to be inserted ... what the binary search will be performed for every element. Can someone confirm?
Mk Utkarsh
1.2k
views
Mk Utkarsh
asked
Dec 3, 2018
Algorithms
algorithms
sorting
+
–
5.2k
views
2
answers
1
votes
Adaptive sorting Algorithm.
Is Quick sort an adaptive sorting Algorithm? I think no. Because as per the definition given in the Wikipedia is that A adaptive sorting Algorithm is one who ... preorderedness of the input. But in case of Quick sort it act as disadvantage.
Shubhanshu
5.2k
views
Shubhanshu
asked
Dec 1, 2018
Algorithms
algorithms
sorting
quick-sort
merge-sort
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
...
19
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register