[理工] [DS] merge sort 觀念
想請教兩個觀念
1. merge sort 的 worst case time complexity
跟 base case 的一樣,那 worst case 會發生在什麼情況下呢?
2. merge sort 在合併2個sorted sub sequence 之時
這2個 sub sequence 使用 array或者使用 linked list
對 time complexity 與 space ocmplexity 有什麼影響
3Q
--
No time to pray....
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.8.77.72
推
02/13 16:02, , 1F
02/13 16:02, 1F
→
02/13 16:03, , 2F
02/13 16:03, 2F
→
02/13 16:04, , 3F
02/13 16:04, 3F
推
02/13 16:44, , 4F
02/13 16:44, 4F
→
02/13 16:44, , 5F
02/13 16:44, 5F