| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: PIZZA time again :-)
VC wrote:
> mAsterdam wrote:
>>vc wrote:
>>>mAsterdam wrote:
[snip]
>>>Since 'merge' is commonly defined for lists with the same ordering, the >>>function cannot be applied to lists with different orderings, e.g [a, >>>b] and [b,a,c] (ordering is defined by an element position in the list) >>>clearly cannot be merged. >> >>That is the merge as used in some sorting algorithms, not a merge >>in it's own right. But if you feel more comfortable calling the discussed >>merge mymerge, truemerge, falsemerge or >>order_preserving_merge - ok.
Let's see if we can come closer to a definition by listing desiderata:
merge_in_its_own_right merges a list of lists into a list. It
Should it also respect the order /of/ (as opposed to /in/) the lists?
order_preserving_merge would, I guess - but there are two different orders, and assumption 1 (in the original post) only declares the order /in/ the lists to be of consequence. Also declaring the order /of/ the list of consequence makes order_preserving_merge(+, -) determististic. I suspect that is an advantage - but is it a good enough reason? I don't know. Received on Fri Sep 02 2005 - 16:40:55 CDT
![]() |
![]() |