Re: More on lists and sets




Mikito Harakiri wrote:
Mikito Harakiri wrote:
Definition. List intersection is a cartesian product with equijoin of
the list nodes and lexicographic order. Example: 1->2->1 /\ 2->1->2 =
2->1->1->2

2 2
^ ^
| \
1 1 ------> 1
^ ^
| \
2 2
1 -> 2 -> 1


This is actually amusing. Selection from list is join of two lists.

It just occured to me that conventional meaning of join of two lists is
their concatenation. The conventional terminology is absurd, of course.
Join is intersection and list intersection is quite different from list
concatenation.

As
join/intersection is noncommutative, we have left selection and right
selection. Example:

Select all the elements greater than one from list

1->2->1->3->2

Formally we evaluate either

1->2->1->3->2 /\ 'x>1'

or

'x>1' /\ 1->2->1->3->2

The "list predicate" `x>1' evaluates to infinite list 2->3->4->5->...

Therefore:

1->2->1->3->2 /\ 'x>1' = 2->2->3

'x>1' /\ 1->2->1->3->2 = 2->3->2

To add to this, list selection with equality predicate is commutative.

.



Relevant Pages

  • Re: multiple pick from drop-down list
    ... Each sheet will have anywhere from a couple pay items up to ... selection model is the accidental over-writing of existing data. ... We have setup drop-down lists through data ...
    (microsoft.public.excel)
  • Re: Asp.net Dropdownlist selected index in changed
    ... back it will lose selection from fifth to first item in the list. ... The selected index of first two lists remain same but only thirds are ... private void BindSectionDropDownlist() ... Code for Searching according to the selection of third dropdown ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: multiple pick from drop-down list
    ... Let all your friends at NJDOT know that you are still working ... selection model is the accidental over-writing of existing data. ... We have setup drop-down lists through ...
    (microsoft.public.excel)
  • Re: Asp.net Dropdownlist selected index in changed
    ... The selected index of first two lists remain same but only thirds are ... private void BindSectionDropDownlist() ... Code for Searching according to the selection of third dropdown ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: multiple pick from drop-down list
    ... selection model is the accidental over-writing of existing data. ... We have setup drop-down lists through data ... Now a user wants to be able to select multiple items and ...
    (microsoft.public.excel)