Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged quick-sort
0
votes
3
answers
1
GATE DS&AI 2024 | Question: 20
Consider sorting the following array of integers in ascending order using an inplace Quicksort algorithm that uses the last element as the pivot. \begin{array}{|l|l|l|l|l|} \hline 60 & 70 & 80 & 90 & 100 \\ \hline \end{array} The minimum number of swaps performed during this Quicksort is $\_\_\_\_\_\_\_\_$.
Arjun
asked
in
Algorithms
Feb 16
by
Arjun
1.2k
views
gate-ds-ai-2024
numerical-answers
algorithms
quick-sort
1
vote
1
answer
2
Memory Based GATE DA 2024 | Question: 25
Consider the QuickSort algorithm with the last element chosen as the pivot. If the goal is to sort the given array \(a = [30, 40, 50, 60, 70, 80]\) in ascending order, how many swaps will occur during the execution of the algorithm?
GO Classes
asked
in
Algorithms
Feb 4
by
GO Classes
238
views
gate2024-da-memory-based
goclasses
algorithms
quick-sort
numerical-answers
5
votes
2
answers
3
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 29
Consider an array that has $10$ distinct elements. Suppose we use randomized quicksort (with the pivot chosen uniformly at random). What is the probability that the partition method will result in an array such that the size of the ... the left and one on the right of the chosen pivot. The pivot itself is not part of any subarray.
GO Classes
asked
in
Algorithms
Jan 21
by
GO Classes
630
views
goclasses2024-mockgate-12
goclasses
numerical-answers
algorithms
sorting
quick-sort
2-marks
0
votes
1
answer
4
Quick sort
13, 60,19,52,45,27,41,30,34,32.. Is this sequence in an array a worst case for Quicksort if first element is choosen as pivot always? I have tried to run algorithm of Quicksort on this sequence but not getting it.. Can anyone please explain this? My ... hence for whole array it would not be a worst of if sorting using Quicksort.. Can someone please tell me where I am thinking wrong??
Kanha3112
asked
in
Algorithms
Sep 12, 2023
by
Kanha3112
385
views
algorithms
quick-sort
1
vote
1
answer
5
Made Easy Test Series 2024
Which of the following statement(s) is/are true? (a) Quicksort and merge sort are both examples of divide and conquer algorithms. (b) If we randomly choose a pivot element each time, quicksort will always terminate in time $O(n log n).$ (c) For every fixed ... in time $O(1)$, quicksort would have worst case complexity $O(n log n)$. plese give answer and explain it why ?
Ray Tomlinson
asked
in
Algorithms
Aug 9, 2023
by
Ray Tomlinson
860
views
made-easy-test-series
made-easy-booklet
algorithms
divide-and-conquer
quick-sort
merge-sort
time-complexity
3
votes
2
answers
6
In QuickSort algorithm, which of the following statements is NOT true regarding the partition process?
dhruba
asked
in
Algorithms
Jun 5, 2023
by
dhruba
989
views
algorithms
quick-sort
time-complexity
array
0
votes
1
answer
7
Consider performing QuickSort on an array of n distinct elements. What is the probability that no comparisons will be made between the smallest and largest element?
dhruba
asked
in
Algorithms
Jun 5, 2023
by
dhruba
413
views
algorithms
quick-sort
probability
0
votes
2
answers
8
Sort the following array using quicksort algorithm. [40,11,4,72,17,2,49]
Sort the following array using quicksort algorithm. [40,11,4,72,17,2,49]
Ajink123
asked
in
Algorithms
May 10, 2023
by
Ajink123
533
views
algorithms
quick-sort
1
vote
1
answer
9
GO Classes 2023 | IIITH Mock Test 1 | Question: 43
Recall the Partition subroutine that we used in QuickSort. Suppose that the following array has just been partitioned around some pivot element $: 3,1,2,4,5,8,7,6,9.$ Which of these element(s) could have been the pivot element? $4$ $5$ $2$ $9$
GO Classes
asked
in
Algorithms
Mar 26, 2023
by
GO Classes
780
views
goclasses2023-iiith-mock-1
goclasses
algorithms
sorting
quick-sort
easy
multiple-selects
1-mark
0
votes
1
answer
10
Quicksort
In Quick sort of the following numbers, if the pivot is chosen as the first element, what will be the order of the numbers after the use of partition function ? Assume we are sorting in increasing order. 11, 15, 9, 13, 17, 7, 5, 12, 6, 18
someshawasthi
asked
in
Algorithms
Nov 25, 2022
by
someshawasthi
575
views
quick-sort
0
votes
2
answers
11
UGC NET CSE | October 2022 | Part 1 | Question: 74
Which of the following algorithm design approach is used in Quick sort algorithm? Dynamic programming Back Tracking Divide and conquer Greedy approach
admin
asked
in
Others
Oct 23, 2022
by
admin
336
views
ugcnetcse-oct2022-paper1
algorithm-design
quick-sort
1
vote
2
answers
12
#Quicksort
In Quicksort of the following numbers, if the pivot is chosen as the first element, what will be the order of the numbers after the use of partition function? Assume we are sorting in increasing order. 11, 15, 9, 13, 17, 7, 5, 12, 6, 18
Nitesh_Yadav
asked
in
Algorithms
Apr 8, 2022
by
Nitesh_Yadav
447
views
algorithms
quick-sort
1
vote
2
answers
13
NIELIT Scientific Assistant A 2020 November: 83
Which of the following is correct recurrence for worst case of QuickSort? $T(n)=T(n-4)+T(n-2)+O(1)$ $T(n)=T(n-1)+T(0)+O(n)$ $T(n)=2T(n/2)+O(n)$ $T(n)=4T(n/2)+O(n)$
gatecse
asked
in
Algorithms
Dec 9, 2020
by
gatecse
517
views
nielit-sta-2020
algorithms
quick-sort
recurrence-relation
2
votes
4
answers
14
NIELIT 2016 DEC Scientist B (CS) - Section B: 12
The running time of Quick sort algorithm depends heavily on the selection of: No. of inputs Arrangement of elements in an array Size of elements Pivot Element
admin
asked
in
Algorithms
Mar 31, 2020
by
admin
15.1k
views
nielit2016dec-scientistb-cs
algorithms
sorting
quick-sort
0
votes
3
answers
15
QUICK SORT- SELF DOUBT
In quick sort for sorting of n Numbers, the 75th greatest Element is selected as pivot using $O(n^2)$ time complexity algorithm than what is the worst case time complexity of quick sort. O($n^2$) O($n^3$) O(nlogn) O(n)
ajaysoni1924
asked
in
Algorithms
Sep 2, 2019
by
ajaysoni1924
3.5k
views
algorithms
divide-and-conquer
quick-sort
1
vote
1
answer
16
Cormen Edition 3 Exercise 7.4 Question 6 (Page No. 185)
Consider modifying the PARTITION procedure by randomly picking three elements from the array $A$ and partitioning about their median (the middle value of the three elements). Approximate the probability of getting at worst a $\alpha$-to-$(1-\alpha)$ split, as a function of $\alpha$ in the range $0<\alpha<1$.
akash.dinkar12
asked
in
Algorithms
Jun 28, 2019
by
akash.dinkar12
1.1k
views
cormen
algorithms
quick-sort
descriptive
difficult
0
votes
1
answer
17
Cormen Edition 3 Exercise 7.4 Question 5 (Page No. 185)
We can improve the running time of quicksort in practice by taking advantage of the fast running time of insertion sort when its input is nearly sorted. Upon calling quicksort on a subarray with fewer than $k$ elements, let it simply return without ... $k$, both in theory and in practice?
akash.dinkar12
asked
in
Algorithms
Jun 28, 2019
by
akash.dinkar12
520
views
cormen
algorithms
quick-sort
descriptive
0
votes
1
answer
18
Cormen Edition 3 Exercise 7.4 Question 4 (Page No. 184)
Show that RANDOMIZED-QUICKSORT’s expected running time is $\Omega(n\ lg\ n)$.
akash.dinkar12
asked
in
Algorithms
Jun 28, 2019
by
akash.dinkar12
520
views
cormen
algorithms
quick-sort
time-complexity
descriptive
Page:
1
2
3
4
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged quick-sort
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...