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
GATE Overflow | Algorithms | Test 1 | Question: 30
Bikram
asked
in
Algorithms
Oct 4, 2016
463
views
2
votes
2
votes
Match the following:
i.
BFS
a.
$O(\mid E \mid + \mid V \mid \log \mid V \mid)$
ii.
DFS
b.
$O(E)$
iii.
Kruskal's algorithm
c.
Stack
iv.
Dijikstra's Algorithm
d.
$O(E \log V)$
i - b, ii - c, iii - a, iv - d
i - c, ii - b, iii - d, iv - a
i - b, ii - c, iii - d, iv - a
i - c, ii - d, iii - a, iv - b
go-alogrithms-1
algorithms
graph-algorithms
Bikram
asked
in
Algorithms
Oct 4, 2016
by
Bikram
463
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.
2
Answers
2
votes
2
votes
c is correct answer
Harshit Pradhan
answered
Oct 10, 2016
reshown
Oct 10, 2016
by
Harshit Pradhan
by
Harshit Pradhan
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
1
vote
1
vote
When use fibanocci heap dijkstra take O(E+VlogV). Kruskal always takes O(ElogE+VlogV) .. Ei s O(V^2) so T=O(2ElogV+VlogV) or
O( ElogV)(assuming graph is not a sparse graph)
DFS is implemented using stack
BFS O(E+V) =O(E) (again assuming graph is a dense graph)
Shreya Roy
answered
Nov 1, 2016
by
Shreya Roy
comment
Follow
share this
3 Comments
by
Vijay Thakur
commented
Nov 5, 2016
reply
Follow
share this
Kruskal's and Dijikstra have same TC. if you can implement Dijikstr'as algo with FIbnocci heap then kruskal's can also be done.
this paper is really strange!!
1
1
by
Harsh181996
commented
Jan 4, 2017
reply
Follow
share this
Kruskal can take O(∣E∣+∣V∣log∣V∣) , if sorting of edges is done in preprocessing step.
And Dijkstra can take O(ElogV) , by min heap.
so A) is also possible.
1
1
by
Harsh181996
commented
Jan 4, 2017
reply
Follow
share this
Kruskal can be done in O(∣E∣+∣V∣log∣V∣) , edges are sorted in pre processing step.
Dijkstra can be implemented in O(ElogV) by min heap .
So A) is also possible.
1
1
Please
log in
or
register
to add a comment.
Answer:
C
← Previous
Next →
← Previous in category
Next in category →
Related questions
2
votes
2
votes
1
answer
1
Bikram
asked
in
Algorithms
Oct 4, 2016
448
views
GATE Overflow | Algorithms | Test 1 | Question: 28
Match the following i. Dijkstra's Algorithm a. All pairs shortest path ii. Bellman Ford Algorithm b. Greedy iii. Floyd-Warshall Algorithm c. Reweighting iv. Johnson Algorithm d. Single source shortest path i - c, ii - d, iii - a, iv - b i - d, ii - a, iii - c, iv - b i - b, ii - d, iii - a, iv - c i - d, ii - b, iii - a, iv - c
Bikram
asked
in
Algorithms
Oct 4, 2016
by
Bikram
448
views
go-alogrithms-1
algorithms
graph-algorithms
2
votes
2
votes
2
answers
2
Bikram
asked
in
Algorithms
Oct 4, 2016
358
views
GATE Overflow | Algorithms | Test 1 | Question: 29
$T(n) = \begin{cases} 4 & \quad if \: \: n =1 \\ T(n-1) + 4 & \quad otherwise \end{cases}$ Value of $T(1000)$ is ___
Bikram
asked
in
Algorithms
Oct 4, 2016
by
Bikram
358
views
go-alogrithms-1
recurrence-relation
algorithms
numerical-answers
1
vote
1
vote
2
answers
3
Bikram
asked
in
Algorithms
Oct 4, 2016
751
views
GATE Overflow | Algorithms | Test 1 | Question: 27
Consider a hash table of size $m = 10$ and a corresponding hash function $h(k) = k A \mod m$ for $A = 5$ where collisions are resolved by quadratic probing. The location (starting from 1) to which the key 65 is mapped if the current contents of hashtable is $4 \;8 \;\_ \;\_ \;7 \;8 \;6 \;\_\; 0\; \_$ is _______
Bikram
asked
in
Algorithms
Oct 4, 2016
by
Bikram
751
views
go-alogrithms-1
numerical-answers
algorithms
hashing
3
votes
3
votes
1
answer
4
Bikram
asked
in
Algorithms
Oct 4, 2016
517
views
GATE Overflow | Algorithms | Test 1 | Question: 26
Maximum element in a min-heap represented by an array, can be computed in _____ time $O(n)$ $O(\log n)$ $O(n \log n)$ but not $O(n)$ $O(1)$
Bikram
asked
in
Algorithms
Oct 4, 2016
by
Bikram
517
views
go-alogrithms-1
binary-heap
algorithms
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