Recent content by sodiumbromate
-
S
Algorithm Complexity: Sorted Arrays into Sorted Array
Shouldn't it just be kn? That's what the pattern seems to suggest.- sodiumbromate
- Post #8
- Forum: Engineering and Comp Sci Homework Help
-
S
Algorithm Complexity: Sorted Arrays into Sorted Array
Where do you get k^2 from? Don't fully follow.- sodiumbromate
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
S
Algorithm Complexity: Sorted Arrays into Sorted Array
Well, merging will happen k-1 times. So the merging complexity would be (k-1)n? Which is in big theta of n? (The merging part of mergesort is linear, not logarithmic, my bad).- sodiumbromate
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
S
Algorithm Complexity: Sorted Arrays into Sorted Array
Homework Statement We have k >= 1 sorted arrays, each one containing n >= 1 elements (all equal length). We want to combine all of them into a single sorted array with kn elements. We have a "naive" algorithm: merge the first two arrays, then merge the third array into the result, then merge...- sodiumbromate
- Thread
- Algorithm Array Arrays Complexity
- Replies: 12
- Forum: Engineering and Comp Sci Homework Help