13
www.mcdtu.wordpress.com www.mcdtu.wordpress.com 1

 · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 1

Page 2:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 2

Page 3:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 3

Page 4:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 4

Page 5:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 5

Page 6:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 6

Page 7:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 7

Page 8:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 8

Page 9:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 9

Page 10:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 10

Page 11:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 11

Page 12:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 12

Page 13:  · Q.2(a) Explain Heap-sort Algorithm With the help of suitable example. (b) Sort the following array using Merge Sort: 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77,3 Mentions

www.mcdtu.wordpress.com

www.mcdtu.wordpress.com 13