Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Sort sets in the relational model

Published: 01 May 1986 Publication History

Abstract

The notion of sort set is introduced here to formalize the fact that certain database relations can be sorted so that two or more columns are simultaneously listed in order. This notion is shown to be applicable in several ways to enhance the efficiency of an implemented database. A characterization of when order dependency implies the existence of sort sets in a database is presented, along with several corollaries concerning complexity, Armstrong relations, and cliques of certain graphs. Sort-set dependencies are then introduced. A (finite) sound and complete set of inference rules for sort-set dependencies is presented, as well as a proof that there is no such set for functional and sort-set dependencies taken together. Deciding logical implication for sort-set dependencies is proved to be polynomial, but if functional dependencies are included the problem is co-NP-complete. Each set of sort-set and functional dependencies is shown to have an Armstrong relation. A natural generalization of Armstrong relation, here called separator, is given and then used to study the relationship between order and sort-set dependencies.

References

[1]
ARMSTRONG, W.W. Dependency structures of database relationships. In Proceedings of the IFIP 74. North-Holland, Amsterdam, 1974, pp. 580-583.
[2]
ATZENI, P., AND MORFUNI, N.M. Functional dependencies and disjunctive existence constraints in database relations with null values. In Proceedings of the 1 l th International Colloquium on Automata, Languages, and Programming (ICALP 84), J. Paredaens, Ed. Springer-Vedag, Berlin, 1984, pp. 69-8 I.
[3]
BEERI, C., AND BERNSTEIN, P.A. Computational problems related to the design of normal form relational schemas. ACM Trans. Database Syst. 4, l (Mar. 1979), 30-59.
[4]
BEERI, C., FAGIN, R., AND HOWARD, J. H. A complete axiomatization for functional and multivalued dependencies in database relations. In Proceedings of the ACM SIGMOD International Conference on the Management of Data (Toronto, Ont., Canada, Aug. 3-5). ACM, New York, 1977, pp. 47-6 i.
[5]
CASANOVA, M. A., FAGIN~ R., AND PAPADIMITRIOU, C. H. Inclusion dependencies and their interaction with functional dependencies. J. Comput. Syst. Sci. 28, l (1984), 29-59.
[6]
CODD, E. F., AND DATE, C. J. The relational and network approaches: Comparison of the application programming interfaces. Tech. Rep. RJ 1401 (#21706). IBM, San Jose, Calif., June 1974.
[7]
CODD, E. F., AND DATE, C. J. Interactive support for non-programmers: The relational and network approaches. Tech. Rep. RJ 1400 (#21638). IBM, San Jose, Calif., June 1974.
[8]
DONG, J., AND HULL, R. Applying approximate order dependency to reduce indexing space. In Proceedings of the ACM SIGMOD International Conference on the Management of Data (Orlando, Fla., June 2-4). ACM, New York, 1982, pp. 119-127.
[9]
FAGIN, R. Functional dependencies in a relational database and propositional logic. IBM J. Res. Develop. 21, 6 (Nov. 1977), 534-544.
[10]
GAREY, M. R., AND JOHNSON, D. S. Computers and Intractability." A Guide to NP-Completeness. Freeman, New York, 1979.
[11]
GINSBURG, S., AND HULL, R. Order dependency in the relational model. Theoret. Comput. Sci. 26 (1983), 149-195.
[12]
GINSBURG, S., AND ZAIDDAN, S.M. Properties of functional-dependency families. J. ACM 29, 3 (July 1982), 678-698.
[13]
PARKER, D. S., JR., AND PARSAYE-GHOMI, K. Inferences involving embedded multivalued dependencies and transitive dependencies. In Proceedings of the ACM S1GMOD International Conference on the Management of Data (Santa Monica, Calif., May 14-16). ACM, New York, 1980, pp. 52-57.
[14]
SAGIV, Y., AND WALECHA, S.F. Subset dependencies and a completeness result for a subclass of embedded multivalued dependencies. J. ACM 29, l (Jan. 1982), 103-117.
[15]
TSICHRITZIS, D. C., AND LOCHOVSKY, F.H. Data Models. Prentice-Hall, Englewood Cliffs, N.J., 1982.
[16]
ULLMAN, J.D. Principles of Database Systems. Computer Science Press, Potomac, Md., 1980.
[17]
YANNAKA~IS, M., AND PAPADIMITRIOU, C.H. Algebraic dependencies. J. Comput. Syst. Sci. 25 (1982), 2-41.

Cited By

View all
  • (2024)Efficient Differential Dependency DiscoveryProceedings of the VLDB Endowment10.14778/3654621.365462417:7(1552-1564)Online publication date: 1-Mar-2024
  • (2024)Efficient Set-Based Order Dependency Discovery with a Level-Wise Hybrid Strategy2024 IEEE 40th International Conference on Data Engineering (ICDE)10.1109/ICDE60146.2024.00059(692-704)Online publication date: 13-May-2024
  • (2024)An incremental algorithm for repairing denial constraint violationsInformation Systems10.1016/j.is.2024.102435126(102435)Online publication date: Dec-2024
  • Show More Cited By

Recommendations

Reviews

Don Goelman

The purpose of this paper is to introduce the notions of sort sets and sort set dependencies and to present certain fundamental results regarding them. Essentially, a set of attributes representing totally ordered domains is a sort set for an instance of a relation if that instance can be sorted simultaneously on those attributes; in this case, we also say that the instance satisfies the sort-set dependency defined by those attributes. The motivation presented for this type of dependency is not to avoid kinds of anomalies, as is the case with other types of dependencies. Here the primary reason for interest in sort-set dependencies, as illustrated in some examples, stems from the possibilities they afford for enhancing performance of a relational database. The subject and style in this paper are in the spirit of the authors' earlier one [1], which describes order dependencies. These were generalizations of functional dependencies; rather than insisting on equality of tuple components, as is the case with functional dependencies, order dependencies insist on specified order relationships (for example, >) to hold. Many of the results in the current paper either relate sort-set dependencies to order dependencies, or prove whether or not sort-set dependencies enjoy certain analogous properties to order dependencies. One example of the former type of result is contained in the third section of this paper; here, a correspondence is shown between eligible sort sets of an order-dependency schema and cliques of a simple graph induced by that schema. A related result in the same section is the co-NP-completeness of determining this property. In the fourth (and last) section of this paper, the authors present many results of the latter type. In particular, they exhibit a finite, sound, complete set of inference rules for sort-set dependencies; but they later prove that no such set exists for sets which include both sort-set and functional dependencies. Finally, existence of Armstrong relations, separators, and a further generalization called “weak separators” are examined for the various types of dependencies. The style of the paper is abstract, with theorems carefully stated and proved. There are, however, comments, previews, and summaries of the results which help put them into perspective.

Access critical reviews of Computing literature here

Become a reviewer for Computing Reviews.

Comments

Information & Contributors

Information

Published In

cover image Journal of the ACM
Journal of the ACM  Volume 33, Issue 3
July 1986
219 pages
ISSN:0004-5411
EISSN:1557-735X
DOI:10.1145/5925
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 May 1986
Published in JACM Volume 33, Issue 3

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)42
  • Downloads (Last 6 weeks)10
Reflects downloads up to 10 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Efficient Differential Dependency DiscoveryProceedings of the VLDB Endowment10.14778/3654621.365462417:7(1552-1564)Online publication date: 1-Mar-2024
  • (2024)Efficient Set-Based Order Dependency Discovery with a Level-Wise Hybrid Strategy2024 IEEE 40th International Conference on Data Engineering (ICDE)10.1109/ICDE60146.2024.00059(692-704)Online publication date: 13-May-2024
  • (2024)An incremental algorithm for repairing denial constraint violationsInformation Systems10.1016/j.is.2024.102435126(102435)Online publication date: Dec-2024
  • (2023)Effective and Efficient Lexicographical Order Dependency DiscoveryIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2023.324878035:9(9700-9714)Online publication date: 1-Sep-2023
  • (2023)Discovery of Approximate Lexicographical Order DependenciesIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2021.313022735:4(3684-3698)Online publication date: 1-Apr-2023
  • (2023)Incremental discovery of denial constraintsThe VLDB Journal — The International Journal on Very Large Data Bases10.1007/s00778-023-00788-y32:6(1289-1313)Online publication date: 1-Nov-2023
  • (2022)Data Dependencies Extended for Variety and Veracity: A Family TreeIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2020.304644334:10(4717-4736)Online publication date: 1-Oct-2022
  • (2022)Diversifying repairs of Denial constraint violationsInformation Systems10.1016/j.is.2022.102041108(102041)Online publication date: Sep-2022
  • (2022)Data dependencies for query optimization: a surveyThe VLDB Journal — The International Journal on Very Large Data Bases10.1007/s00778-021-00676-331:1(1-22)Online publication date: 1-Jan-2022
  • (2021)Approximate Order Dependency Discovery2021 IEEE 37th International Conference on Data Engineering (ICDE)10.1109/ICDE51399.2021.00010(25-36)Online publication date: Apr-2021
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media