Claims
- 1. A method for dynamically generating, with the aid of a digital computer, a relational database scheme that is prevented from being overtly non-acyclic in a homological sense, comprising the steps of:
- a) providing said computer with a database having attributes A.sub.i, i=1 to n, and relational schemes R.sub.j, j=1 to m, each relational scheme R.sub.j comprising an acyclic, non-empty subset of said attributes A.sub.i ;
- b) selecting a first relational scheme R.sub.1 as a base relational database scheme S;
- c) initializing j to 1;
- d) selecting another relational scheme R.sub.j+1 ;
- e) determining a scheme acyclicity condition of a union (S .orgate. R.sub.j+1) between said base scheme S and said another relational scheme R.sub.j+1 ;
- f) selectively updating said base scheme S to include the relational database scheme R.sub.j+1 when said union's scheme acyclicity condition is not indicative of an overtly non-acyclic database scheme;
- g) incrementing j by 1; and
- h) repeating steps d) through g) for j=2 to m-1.
- 2. A method according to claim 1, each relational scheme R.sub.j being a single relational scheme wherein, for each non-empty subset of said union, each non-empty subset having from 1 to k.sub.max attributes contained therein, said step of determining comprises the steps of:
- a) generating a set a.sub.k, k=1 to k.sub.max, from said union, wherein each set member a.sub.k has a value indicating the number of subsets within said union having k attributes; and
- b) calculating in said computer an equation ##EQU5## wherein each relational scheme R.sub.j is connected with all relational schemes R.sub.y, y=1 to m and y.noteq.j, and wherein said union is overtly non-acyclic when the result of said equation is not equal to one.
- 3. A method according to claim 2 wherein said union further comprises p non-connected groups of connected subsets, and wherein said union is overtly non-acyclic when the result of said equation is not equal to p.
- 4. A method for dynamically adjoining, with the aid of a digital computer, relational database schemes into a unified database scheme that is prevented from being overtly non-acyclic in a homological sense, comprising the steps of:
- a) providing said computer with a plurality of database schemes S.sub.h, h=1 to L, having attributes A.sub.i and relational schemes R.sub.j, each relational scheme R.sub.j comprising an acyclic, non-empty subset of said attributes A.sub.i ;
- b) selecting a first database scheme S.sub.1 as a base scheme S;
- c) initializing h to 1;
- d) selecting another database scheme S.sub.h+1, wherein an intersection (S .andgate. S.sub.h+1) between said base scheme S and said another database scheme S.sub.h+1 is non-empty;
- e) determining a scheme acyclicity condition of a union (S .orgate. S.sub.h+1) between said base scheme S and said another database scheme S.sub.h+1 ;
- f) selectively updating said base scheme S to include the database scheme S.sub.h+1 when said union's scheme acyclicity condition is not indicative of an overtly non-acyclic database scheme;
- g) incrementing h by 1; and
- h) repeating steps d) through g) for h=2 to L-1 to generate the unified database scheme.
- 5. A method according to claim 4, each relational scheme R.sub.j being a single relational scheme wherein, for each non-empty subset of said union, each non-empty subset having from 1 to k.sub.max attributes contained therein, said step of determining comprises the steps of:
- a) generating a set a.sub.k, k=1 to k.sub.max, from said union, wherein each set member a.sub.k has a value indicating the number of subsets within said union having k attributes; and
- b) calculating in said computer an equation ##EQU6## wherein each database scheme S.sub.h is connected with all database schemes S.sub.y, y=1 to L and y.noteq.L, and wherein said union is overtly non-acyclic when a result of said equation is not equal to one.
- 6. A method according to claim 5 wherein said union further comprises p non-connected groups of connected subsets, and wherein said union is overtly non-acyclic when the result of said equation is not equal to p.
ORIGIN OF THE INVENTION
The invention described herein was made in the performance of official duties by an employee of the Department of the Navy and may be manufactured, used, licensed by or for the Government for any governmental purpose without payment of any royalties thereon.
US Referenced Citations (5)