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
Online Question from a test
parulnabi
asked
in
Algorithms
Sep 2, 2016
retagged
Jul 9, 2022
by
Lakshman Patel RJIT
442
views
0
votes
0
votes
Which of the following algorithm has the smallest memory requirement, including data space and run time stack for recursive calls?
A. Insertion Sort
B. Quick Sort
C. Selection Sort
D. Merge Sort
space-complexity
sorting
algorithms
test-series
parulnabi
asked
in
Algorithms
Sep 2, 2016
retagged
Jul 9, 2022
by
Lakshman Patel RJIT
by
parulnabi
442
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
0
votes
Both selection and Insertion sort requires O(1)
cse23
answered
Sep 2, 2016
by
cse23
comment
Follow
share this
2 Comments
by
diksha kahensa
commented
Sep 27, 2016
reply
Follow
share this
This question is asked in ace test series. There they mention the correct answer is: Quick Sort
Plz expln.
0
0
by
Pankaj kumar
commented
Sep 27, 2016
reply
Follow
share this
there is no requirement of stack and extra array space for selection and insertion sort
0
0
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
3
answers
1
Akash Kumar Roy
asked
in
DS
Apr 21, 2018
1,988
views
MY DOUBT: Worst case space complexity of Quick sort (NOT FOR A STRAIGHT ANSWER)
First read it properly. I am not asking a specific question about space complexity. Question: What is worst case space complexity of quick sort? Everywhere it is showing O(logn). My understanding about it: I know that Quick ... done by ratio 1:n-1 which is worst case, wouldn't it be requesting for O(n) stack records?
Akash Kumar Roy
asked
in
DS
Apr 21, 2018
by
Akash Kumar Roy
2.0k
views
algorithms
sorting
data-structures
space-complexity
0
votes
0
votes
1
answer
2
Daniyal89
asked
in
Algorithms
Sep 30, 2018
368
views
ACE algo test series
Ans given is option-B
Daniyal89
asked
in
Algorithms
Sep 30, 2018
by
Daniyal89
368
views
sorting
space-complexity
algorithms
ace-test-series
5
votes
5
votes
1
answer
3
Chhotu
asked
in
Algorithms
Nov 2, 2017
1,069
views
In-place Merge Sort via Doubly linked list in place of Array
In general merge sort is not considered in-place sorting technique. Because an auxiliary array is used. If we will try to do it in-place in array data structure then our merge procedure will take O($n^2$) time. so overall ... list in place of Array (for storing and merging data) ? Please share your valuable opinion. It will be great help.
Chhotu
asked
in
Algorithms
Nov 2, 2017
by
Chhotu
1.1k
views
algorithms
sorting
space-complexity
linked-list
time-complexity
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
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
DRDO Previous Year Papers
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
What are the key things to focus on during the final 10-15 days before the GATE exam to improve performance?
All India GO Classes Mock test
NTA UGC NET JRF December 2022 Apply Online Form 2023
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.8k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.6k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(842)
Tier 1 Placement Questions
(17)
Job Queries
(74)
Projects
(9)
Unknown Category
(853)
Recent Blog Comments
Can Someone guide me how to prepare for interview...
It's not a standard resource, don't follow them.
https://byjus.com/maths/diagonalization/
@amit166 can you share the reference of the...
Twist at every point Man
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy