| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: PIZZA time again :-)
"mAsterdam" <mAsterdam_at_vrijdag.org> wrote in message
news:4318c6d5$0$11080$e4fe514c_at_news.xs4all.nl...
> VC wrote:
>> mAsterdam wrote: >>>vc wrote: >>>>mAsterdam wrote:
>>>>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. >> >> That is the merge function as used in functional languages like ML, >> Haskell or Lisp (not pure functional). My response relied on the common >> usage in those languages. >> >> Now, what is "a merge in its own right" ? Unless one defines >> 'merge_in_its_own_right', one cannot answer the question what >> 'merge_in_its_own_right' should do with lists where ordering is defined >> by an element position. >
>
>>
> - should not have assumptions about an
> intrinsic order of the listed values.
> - should preserve the order of the values
> and fail if it can't.
According to you specification the function should fail otherwise the function will behave as an ordinary (in the ML/Haskell sense) merge : 'if ordering(L1) == ordering(L2) merge otherwise fail'
Sorry, do not understand.
>
Well, whether one cares about the resulting ordering or not is entirely up to a specific task at hand, or I am missing something ?
E.g. if one does not care about ordering, one can just concatenate the lists and remove duplicates (emulating a union of two sets). Or just sort-merge using arbitrary (but the same) ordering.
> I don't know.
Received on Fri Sep 02 2005 - 18:56:24 CDT
![]() |
![]() |