首页 | 官方网站   微博 | 高级检索  
     

MATLAB在求解关系模式上全部候选关键字中的应用
引用本文:胡立辉.MATLAB在求解关系模式上全部候选关键字中的应用[J].计算机应用与软件,2004,21(5):35-38.
作者姓名:胡立辉
作者单位:长沙交通学院计算机工程系,长沙,410076
摘    要:本文描述了MATLAB中的数值数组、元胞数组与关系模式上的属性集、函数依赖集之间的对应关系,实现了属性集运算的MATLAB数组表示,给出了关系模式中计算属性集闭包、求解候选关键字的M函数。在应用1]中的替换算法的基础上,本文给出了一个求解关系模式上全部候选关键字的M函数。实际应用表明,本文介绍的MATLAB程序代码简洁、运行可靠、求解正确。

关 键 词:关系数据库  关系模式  函数依赖  候选关键字  MATLAB  函数依赖集  属性集

APPLICATION OF MATLAB IN FINDING ALL CANDIDATE KEYS FOR RELATIONAL SCHEMA
Hu Lihui.APPLICATION OF MATLAB IN FINDING ALL CANDIDATE KEYS FOR RELATIONAL SCHEMA[J].Computer Applications and Software,2004,21(5):35-38.
Authors:Hu Lihui
Abstract:This paper describes the corresponding relation between the numeric arrays,cell arrays in MATLAB and the sets of attribute,the sets of functional dependencies on relational schema,implements the operations of sets of attribute with the arrays in MATLAB,and gives several M functions for calculating the closure of attribute sets and finding one candidate key.With the replacing method in,a M function which can find all candidate keys for a relational schema is given.The application shows that the MATLAB program introduced by this paper have the character of compact codes,reliable run and solving rightly.
Keywords:MATLAB Relational database Candidate key
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号