检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《南昌大学学报(理科版)》2010年第3期299-301,306,共4页Journal of Nanchang University(Natural Science)
基 金:国家自然科学基金资助项目(50863003)
摘 要:针对自变量为整数的系列数据,利用计算机整数除法去余的特点,提出了一种简单实用的映射函数自动生成算法。该算法要求自变量不小于零且从小到大排列,每个数据在映射函数中增加一线性项,其中自变量参与的除法是计算机整数除法,后面的数据减去相应的数后进行下一线性项的计算。该算法生成的映射函数在计算机编程时可以替换很多类型的switch-case语句,也可以作为有限数列的通项公式。Based on the computer integer operations,an algorithm was proposed to generate the mapping function for a series of data with integer independent variable.The algorithm requires that the independent variable isn't negative and is sorted from small to big.A linear item,in which the divided operation is computer integer operation,is added to the mapping function for each datum item,the following data is subtracted the corresponding number from the linear item,then the next linear item for the next data is conducted.The mapping function could be applied to replace many switch-case statements in program coding,and could be used as the general formula for finite integer sequence.
分 类 号:TP301.6[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.147