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
quick sort
dd
asked
in
Algorithms
Jan 20, 2017
2,236
views
2
votes
2
votes
If we use quicksort algorithm to sort the elements: $16, 13, 14, 12, 21, 16, 23$ and $15$ in ascending order, what is the output after the first pass of quicksort? (Assume pivot element is beginning of an array)
algorithms
quick-sort
sorting
dd
asked
in
Algorithms
Jan 20, 2017
by
dd
2.2k
views
answer
comment
Follow
share this
share
4 Comments
Show 3 previous comments
by
prateekdwv
commented
Jan 20, 2017
reply
Follow
share this
(15,13,14,12,16) ->16<- (23,21)
Do you want a an illustrative answer?
1
1
by
prateekdwv
commented
Jan 20, 2017
reply
Follow
share this
You might find this link interesting
https://visualgo.net/sorting
0
0
by
cse23
commented
Jan 25, 2017
reply
Follow
share this
can u tell the algo.. ..when 1st element is pivot
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
3
votes
15 13 14 12 16 -- 16 -- 23 21
arun.sm
answered
Jun 22, 2018
by
arun.sm
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
3
votes
3
votes
1
answer
1
iarnav
asked
in
Algorithms
Jan 14, 2018
2,483
views
quick sort
You have an array of n elements. Suppose you implement quick sort by always choosing the central element of the array as the pivot. Then the tightest lower bound for the best case performance is a) O(n2) b) O(nlogn) c) Θ(nlogn) d) O(n3)
iarnav
asked
in
Algorithms
Jan 14, 2018
by
iarnav
2.5k
views
quick-sort
algorithms
sorting
time-complexity
3
votes
3
votes
3
answers
2
Sourajit25
asked
in
Algorithms
Sep 3, 2017
1,624
views
Quick Sort
"Quick sort has good cache performance" , Can anyone explain this statement.How is cache related to quick sort.I searched for this over the internet but could not find a good article.
Sourajit25
asked
in
Algorithms
Sep 3, 2017
by
Sourajit25
1.6k
views
algorithms
sorting
time-complexity
quick-sort
3
votes
3
votes
1
answer
3
SHALINI PORWAL
asked
in
Algorithms
Aug 10, 2017
1,374
views
Quick sort
When array is already sorted in reverse order then what will be the recurrence relation for number of swaps on array of n elements using quick sort?
SHALINI PORWAL
asked
in
Algorithms
Aug 10, 2017
by
SHALINI PORWAL
1.4k
views
algorithms
sorting
time-complexity
quick-sort
2
votes
2
votes
3
answers
4
LavTheRawkstar
asked
in
Algorithms
Apr 15, 2017
1,211
views
With quick sort The results after first partioning of the given array
With quick sort The results after first partioning of the given array. A = (2,8,7,1,3,5,6,4,9). Analysis the time complexity of Quick sort in the best case.
LavTheRawkstar
asked
in
Algorithms
Apr 15, 2017
by
LavTheRawkstar
1.2k
views
algorithms
quick-sort
time-complexity
sorting
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 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:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy