Describe the merge sort principle and what will be its time complexity?

Answer Posted / shagun

Merge sort is basically work on divide and conquer approach i.e divide,conquer ,combine and time complexity of merge sort is o(nlogn) where log n is the height of the tree and n = no of elements

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need to use computers to help us sort lists?

573


Why is quicksort not stable?

449


Write an algorithm for inserting and deleting an element from doubly linked list?

499


Mention for which header list, you will found the last node contains the null pointer?

494


Can arraylist store objects?

455






Is it possible to insert different type of elements in a stack? How?

528


What is bubble sort and quick sort?

521


What is a priority queue?

569


What is difference between hashmap and arraylist?

512


Can a class have a constructor?

505


What are the main differences between the linked list and linear array?

524


What do you mean by hash table?

553


What is sorting and its types?

513


Define threaded binary tree. Explain its common uses

497


Which interfaces are implemented by enumset?

495