I tried search here and there to find what exactly in-place merge sort and where I need to use it ? But not found a straight answer. Please help me by answering below.
1) When and where in-place merge is required ? Practical usage of in-place merge.
2) What happens if the input arrays to the in-place merge is not sorted ?
3) Which eats more memory to sort among Merge sort, in-place merge sort and quick sort ?
Note : I am asking regarding "std::inplace_merge" which is an stl algorithm.