The Gateway to Computer Science Excellence
For all GATE CSE Questions
Toggle navigation
Email or Username
Password
Remember
Login
Register

I forgot my password
Activity
Questions
Unanswered
Tags
Subjects
Users
Ask
Prev
Blogs
New Blog
Exams
Cormen Edition 3 Exercise 6.3 Question 3 (Page No. 159)
0
votes
30
views
Show that there are at most $\lceil n/2^{h+1}\rceil$ nodes of height $h$ in any $n$element heap.
cormen
algorithms
heap
descriptive
asked
Jun 26, 2019
in
Algorithms
by
akash.dinkar12

30
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
0
Answers
← Prev.
Next →
← Prev. Qn. in Sub.
Next Qn. in Sub. →
Related questions
0
votes
0
answers
1
Cormen Edition 3 Exercise 6.3 Question 2 (Page No. 159)
Why do we want the loop index $i$ in line $2$ of BUILDMAXHEAP to decrease from $\lfloor A.length/2 \rfloor$ to 1 rather than increase from 1 to $\lfloor A.length/2 \rfloor$?
asked
Jun 26, 2019
in
Algorithms
by
akash.dinkar12

19
views
cormen
algorithms
heap
descriptive
0
votes
0
answers
2
Cormen Edition 3 Exercise 6.3 Question 1 (Page No. 159)
BUILDMAXHEAP(A) 1 A.heapsize=A.length 2 for i=A.length/2 downto 1 3 MAXHEAPIFY(A,i) Using Figure $6.3$ as a model, illustrate the operation of BUILDMAXHEAP on the array $A=\langle 5,3,17,10,84,19,6,22,9 \rangle $
asked
Jun 26, 2019
in
Algorithms
by
akash.dinkar12

46
views
cormen
algorithms
heap
descriptive
0
votes
0
answers
3
Cormen Edition 3 Exercise 6.5 Question 9 (Page No. 166)
Give an $O(n\lg\ k)$ time algorithm to merge $k$ sorted lists into one sorted list, where $n$ is the total number of elements in all the input lists. (Hint: Use a minheap for $k$way merging.)
asked
Jun 27, 2019
in
Algorithms
by
akash.dinkar12

32
views
cormen
algorithms
heap
descriptive
0
votes
1
answer
4
Cormen Edition 3 Exercise 6.5 Question 8 (Page No. 166)
The operation HEAPDELETE$(A, i)$ deletes the item in node $i$ from heap $A$. Give an implementation of HEAPDELETE that runs in $O(lg\ n)$ time for an $n$element maxheap.
asked
Jun 27, 2019
in
Algorithms
by
akash.dinkar12

53
views
cormen
algorithms
heap
descriptive
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
Interview Experience for MS(R)IIT Delhi (School of Information Technology)
How am I preparing
PGEE 2020 (CSE) Experience
IIT Tirupati MS Interview 2020
IIT Bombay Mtech RA  interview experience (2020)
Subjects
All categories
General Aptitude
2k
Engineering Mathematics
8.2k
Digital Logic
2.9k
Programming and DS
5k
Algorithms
4.4k
Theory of Computation
6.2k
Compiler Design
2.2k
Operating System
4.6k
Databases
4.2k
CO and Architecture
3.4k
Computer Networks
4.2k
Non GATE
1.2k
Others
1.5k
Admissions
595
Exam Queries
562
Tier 1 Placement Questions
23
Job Queries
71
Projects
19
Unknown Category
1k
Recent Blog Comments
After getting so many mails from you...
Refund will be given for such cases if applied...
@sreejit007 they don't publish any cutoff or...
@ranjanabhi Can you please elaborate what did...
ISI 2019 : Aarushi Aiyyar's answer to How do...
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
52,315
questions
60,438
answers
201,783
comments
95,262
users