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 is pivot in quicksort?

489


Write a program to sum values of given array.

557


List all data structures you would use for a memory management module.

561


What are the disadvantages of linear list?

512


What is the capacity of arraylist?

475






Are linked lists considered linear or non-linear data structure?

618


Explain the terms base case, recursive case, binding time, run-time stack and tail recursion.

468


Why is treeset sorted?

525


Define primary data structures?

582


What differences exist between hashmap and hashtable?

510


Which sorting has less time complexity?

512


Explain in brief a linked list.

539


What is a stable algorithm?

478


Where will be the free node available while inserting a new node in a linked list?

578


Traverse the given tree using Inorder, Preorder and Postorder traversals. Inorder : D H B E A F C I G J Preorder: A B D H E C F G I J Postorder: H D E B F I J G C A

653