![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I'm still not sure if there are shorter versions. Marshall (who is apparently in stealth mode) used to work on a program that generates all valid RL expressions, and this looks like a problem fitted for such a tool. The other curiosity is how many different RL expressions one can generate with inversions and complements alone. For example, the identities |
#12
| |||
| |||
|
|
The other curiosity is how many different RL expressions one can generate with inversions and complements alone. For example, the identities x``` = x`. x'' = x. x`'`'`'=x`'. x'`'`'`=x'`. show some limitations, but what about less obvious interleavings of inversion and complement? |
#13
| |||
| |||
|
|
On Jun 6, 2:19*pm, vadim... (AT) gmail (DOT) com wrote: I'm still not sure if there are shorter versions. Marshall (who is apparently in stealth mode) used to work on a program that generates all valid RL expressions, and this looks like a problem fitted for such a tool. The other curiosity is how many different RL expressions one can generate with inversions and complements alone. For example, the identities Yes, these are both things my program can handle. The theoretical aspects are fairly far along; what is killing me is the practical aspects. Namely, the number of possible expressions in even mildly complex algebras is mega gigantic, and in algebras with operators that are both commutative and associative, simply noting that two complex terms of the same size are syntactically equivalent is excruciatingly slow. I have recently purchased a much more powerful machine but I'm not sure how much this will help; the big wins have all been the results of greater understanding of the nature of Universal Algebra. Marshall, |
|
I still have good ideas left for how to do better, and I believe a complete equational theory of Vadim's algebra is mechanically achievable. Yes it is but not without having a complete view of the problem and |
#14
| ||||
| ||||
|
|
On Jun 6, 11:43 am, cim... (AT) hotmail (DOT) com wrote: Snipped |
|
Now into the main topic -- set equality join. I am not sure that is actually the main topic. In my perception, the |
|
I prefer to focus on set equality rather than set containment because I expect it to have nicer algebraic properties. I am curious as to why you think that the idea of creating a new |
|
For one thing, set equality join is commutative, and set containment is not. Because set join is essentially universal quantifier, and the later is often is written as "/\" (capital join "^"), lets choose the notation appropriately, so that set equality join of relations x and y is written as x/\y. What is set equality join algebraically in terms of our basic operations? |
#15
| |||
| |||
|
|
On 6 juin, 23:19, vadim... (AT) gmail (DOT) com wrote:> On Jun 6, 11:43 am, cim... (AT) hotmail (DOT) com wrote: Snipped Now into the main topic -- set equality join. I am not sure that is actually the main topic. |
|
In my perception, the specific problem which was adressed was the opportunity of using a new operator to simplify relation handling in the context of relational division. set equality is only but one aspect of operations that could potentially be expressed more effectively using such operator. |
|
I am curious as to why you think that the idea of creating a new operator is *only* about *set containment*. As expressed the example provided (Question 1 to Question 8). The idea behind creating a new operator was actually that such operators allows a simpler but logically sound formulation of some operations that are tedious to express using traditional operators. |
#16
| |||
| |||
|
|
You are right, I didn't read your message carefully. It was "subset" in the topic that confused me. None of your 5 questions require set join/relational division. Thank you. The poor formulation I made of the issue have confused a |
|
In my perception, the specific problem which was adressed was the opportunity of using a new operator to simplify relation handling in the context of relational division. *set equality is only but one aspect of operations that could potentially be expressed more effectively using such operator. Well, all the questions decompose into the two parts: 1. Find a subset of sales by a certain criteria 2. Aggregate/group by it Inlike step 2, Step 1 is very well understood from relational theory perspective. One can mix standard relational algebra operators, rearrange their order under certain rules, etc. As soon as you lump 1 and 2 together, the optimization becomes much less clear (unless it is just a shorthand/macro, which RDBMS engine expands into traditional notation). In fact, this is an effort to develop operators than can take |
|
I am curious as to why you think that the idea of creating a new operator is *only* about *set containment*. *As expressed the example provided (Question 1 to Question 8). *The idea behind creating a new operator was actually that such operators allows a simpler but logically sound formulation of some operations that are tedious to express using traditional operators. As I mentioned before there is no relational division anywhere in the examples 1-5. Yet you introduced the "/" symbol and call it relational division and later wrote an expression containing CARSALE/salesman This doesn't make any sense to me, how can you divide a relation CARSALE by an attribute salesman? I apologize as it is a confusing choice on symbology used on my part. |
#17
| |||
| |||
|
|
On Jun 6, 2:19*pm, vadim... (AT) gmail (DOT) com wrote: I'm still not sure if there are shorter versions. Marshall (who is apparently in stealth mode) used to work on a program that generates all valid RL expressions, and this looks like a problem fitted for such a tool. The other curiosity is how many different RL expressions one can generate with inversions and complements alone. For example, the identities Yes, these are both things my program can handle. The theoretical aspects are fairly far along; what is killing me is the practical aspects. Namely, the number of possible expressions in even mildly complex algebras is mega gigantic, and in algebras with operators that are both commutative and associative, simply noting that two complex terms of the same size are syntactically equivalent is excruciatingly slow. I have recently purchased a much more powerful machine but I'm not sure how much this will help; the big wins have all been the results of greater understanding of the nature of Universal Algebra. I still have good ideas left for how to do better, and I believe a complete equational theory of Vadim's algebra is mechanically achievable. |
![]() |
| Thread Tools | |
| Display Modes | |
| |