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

Define ancestor and descendant ?

746


Which is better stack or queue?

628


Two linked lists are given, find out the sum of them without altering the linked list?

751


Write a program to insert an element and in the specific position in the array?

709


Define articulation point?

906


Will it create any problem if we add elements with key as user defined object into the treemap?

708


What method removes the value from the top of a stack?

724


What are the classification of data structures?

684


How does the size of arraylist increases dynamically?

642


Which interfaces are implemented by hashmap?

737


Define heap order property?

729


Which sorting algorithm is best for large data?

676


What is the difference between Array and LinkedList?

775


What are different techniques for making hash function?

688


What is the use of threaded binary tree?

766