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

How to find the duplicate in an array?

735


What are linear and non linear data structures?

674


What is the impact of signed numbers on the memory?

746


How to create an Array?

748


Is stack a dynamic data structure?

685


What is a stable algorithm?

695


Can you dynamically allocate arrays in expanded memory?

838


Does hashset guarantee order?

668


Define depth and height of a node?

721


Is hashmap faster than arraylist?

674


What do you mean by general trees?

759


What are the categories of avl rotations?

784


Why is arraylist used?

696


What do you mean by 2-3 tree?

704


How does a hashmap work?

726