文件名称:2.2
-
所属分类:
- 标签属性:
- 上传时间:2016-01-07
-
文件大小:614byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设有一个双向循环链表,每个结点中除有pre,data和next三个域外,还增设了一个访问频度域freq。在链表被起作用前,频度域freq的值均初始化为零,而当对链表进行一次LOCATE(L,x)的操作之后,被访问的结点(即元素值等于x的节点)中的频度域freq的值便增1,同时调整链表中结点之间的次序,使其按访问频度非递增的顺序排列,以便始终保持被频繁访问的结点总是靠近表头结点。-There is a two-way circular linked list, each node in addition to a pre, data and next three outside, but also the addition of a frequency-domain access freq. Before the list is to work, the value of the frequency domain freq are initialized to zero, and when on the list once LOCATE (L, x) after the operation, the node being accessed (ie, the elements of a node is equal to x) of freq the frequency domain value will be incremented by 1, and adjust the order of the list between nodes, making it non-access frequency increasing order to always keep the junction frequently accessed is always close to the header node.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2.2.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.