Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Can anybody help me to find a potential application for this

 
   Database Forums (Home) -> General Discussion RSS
Next:  USENIX NSDI '09 Call For Papers  
Author Message
simon

External


Since: Jun 13, 2008
Posts: 2



(Msg. 1) Posted: Fri Jun 13, 2008 12:22 am
Post subject: Can anybody help me to find a potential application for this
Archived from groups: comp>databases (more info?)

Suppose there are N parties. Each party has R records, each of which
has D dimensions.

For example, N=3, parties are P1, P2, P3.
D=4, dimensions are named as (A,B,C,D).
R=2, P1 has records T1=(a1,b1,c1,d1),T2=(a2,b1,c2,d1);
P2 has records T3=(a1,b1,c1,d1),T4=(a2,b1,c2,d3);
P3 has records T5=(a1,b1,c1,d1),T6=(a1,b1,c2,d4);

Then, the 3-party union on dimension A ={T1.A, T2.A, ..., T6.A}={4*a1,
2*a2};
union on B={T1.B, T2.B, ..., T6.B}={6*b1};
union on C={3*c1,3*c2};
union on D={4*d1,d3,d4};

The mathematical problem is: given the parties and their records, the
parties want to find whether each record T has the property that the
value on T.A appears at least k1 times in the 3-party union on
dimension A, the value on T.B appears at least k2 times in the union
on B, the value on T.C appears at least k3 times in the union on C,
and the value on T.D appears at least k4 times in the union on D.

For example, when k1=k2=k3=k4=2, T2 has this property, because a2, b1,
c2, d1 appear at least 2 times in the 3-party union on dimension
A, B, C, D respectively. T1, T3, T5 have also the property, but T4 and
T6 haven't.

Is there any application for this problem? I mean, given the parties
and their records, what are the motivations to find such a property? I
find some applications in customer management in chain stores, and
intrusion alert in distributed network monitoring, but
feel that they are still not very appropriate.

Can anybody help me? Thanks a lot!

Simon

 >> Stay informed about: Can anybody help me to find a potential application for this 
Back to top
Login to vote
Philipp Post

External


Since: Mar 21, 2008
Posts: 19



(Msg. 2) Posted: Fri Jun 13, 2008 7:29 am
Post subject: Re: Can anybody help me to find a potential application for this [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Simon,

> Is there any application for this problem? <

I am not sure if I understand correctly - you have dimensions from A
to D and have values from 1 to 4 and want to make sure that at least
one entry exists for each combination. - Anyway any SQL product should
be able to do that if you created proper tables. I could think at one
lookup table ("Dimensions") which contains all these combinations and
then two other tables such as "Parties" (one column "PartyCode"
containing P1, P2 etc which is primary key) and
"PartyDimensions" (columns PartyCode, TNumber, Dimension,
DimensionValue). Then you should be able to join the "Dimensions"
table with the "PartyDimensions" and find out what combinations do not
exist - in your example it is D2 which is missing. An other query
could find out the count of each dimension / dimension value
combination. - Look at some SQL books and examples to find out how.

> what are the motivations to find such a property? <
Lord knows... to get the homework done? Smile I could think at customers
and orders where you want to see which products are not ordered by a
customer and how many were ordered in total for each one.

brgds

Philipp Post

 >> Stay informed about: Can anybody help me to find a potential application for this 
Back to top
Login to vote
--CELKO--

External


Since: Apr 17, 2007
Posts: 417



(Msg. 3) Posted: Fri Jun 13, 2008 1:38 pm
Post subject: Re: Can anybody help me to find a potential application for this [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This sounds like a version of the golf partnership puzzle. How many
ways can you group (n) people into (t) teams such that no two people
play together more than (x) times?
 >> Stay informed about: Can anybody help me to find a potential application for this 
Back to top
Login to vote
simon

External


Since: Jun 13, 2008
Posts: 2



(Msg. 4) Posted: Sun Jun 22, 2008 7:18 pm
Post subject: Re: Can anybody help me to find a potential application for this [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jun 14, 5:38 am, --CELKO-- wrote:
> This sounds like a version of the golf partnership puzzle. How many
> ways can you group (n) people into (t) teams such that no two people
> play together more than (x) times?

Hi, dear Philipp and Celko, thank you very much! I've finally found
some motivations for variants of this problem, but not for this
original problem.

One variant is to treat each record as a time series, in which the
dimensions A, B, C, D, etc are successive time points, the values are
categorical values describing a trend property on the corresponding
time. For example, a record can be (Up, Up, Up, Up) which means on the
4 time points there are all upward trend on the measured object. The
measured object can be sales of a commodity or something else.

Then if each vendor holds such a record describing trend on sales of a
commodity, for example, vendor 1 has T1=(Up, Up, Up, Up), vendor 2 has
T2=(Up, Down, Up, Down), vendor 3 has T3=(Down, Up, Down, Up), there
is a motivation for each vendor to check whether on all time points
his trend is as the same as 2/3 (majority) vendors. In this example,
T1 has this property. From this, the vendors can find whether on the
successive time points their sales trend follows the majority of the
vendors.
 >> Stay informed about: Can anybody help me to find a potential application for this 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to find Brothers and Sisters? - Suppose Adam has children named John(male), Jack(male) and Mary(female). What schema/query finds John's brothers and sisters based only on direct relationships to parent and gender. A direct relationship would be parent/child. An indirect/derived..

find open trouble tickets - by date - This one has me stumped. We have a help desk system in which we create a ticket on the BeginDate and close it on the EndDate. How would I find out how many tickets were open for each day in a range. I can do it easily for one day, because i'm entering...

Trying to find logic behind simple SQL statement join - I need a sql statement wich would return all matching SecID and SourceID where the quantity are different but the SecID are the same SecurityID SourceID Quantity ------------- ----------- ----------- 15 3 199 15 ...

How to find the backup date of a restored daabase? - Hi All, I have a few SQL backups restored from a set of backup files. The backup files have been removed from the drive because of some storage constrains... For some data comparison reasons, I need to figure out the actual date of these backup files..

Unify Database information? - Hi. I am trying to find any and all information out there regarding the Unify database. Specifically the older version which runs on SCO OpenServer. I am trying to export data from this database with an applcation's query tool, but the tool is causing..
   Database Forums (Home) -> General Discussion All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]