i have a program that run merge on sorted arrays
each array is in size n and i have k arrays
by dividing to 2 until merge receive only 2 arrays merge them and then merge 2 bigger arrays i found that my complexity is:
t(nk)=2(t(k/2)) + cnk
what is the running time complexity?
guyeyal 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.