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

What does map stand for?

487


What are the applications of stack?

503


Which interfaces are implemented by enumset?

503


Is treeset synchronized?

465


Which language is best to learn data structures?

581






Where is binary tree used?

513


Write program for Quick sort ?

611


Why would we use dynamically allocated arrays vs vectors?

448


What is stable sorting?

486


What is the prerequisite for binary searching?

577


What is the minimum number of nodes that a binary tree can have?

586


What are the 3 types of measurement?

552


What is an example of an array?

567


How will you check the validity of an expression containing nested parentheses?

549


What do you mean by structure property in a heap?

550