文件名称:Circularlinkedlist
介绍说明--下载内容来自于网络,使用问题请自行百度
实现一个双向循环链表,每个结点中除有prior,data和next三个域之外,还增设了一个访问频度域freq。在链表被起用之前,频度域freq的值均初始化为零,而每当对链表进行一次LOCATE(L,x)的操作后,被访问的结点(即元素值等于x的结点)中的频度域freq的值便增1,同时调整链表中结点之间的次序,使其按访问频度非递增的次序顺序排列,以便始终保持被频繁访问的结点总是靠近表头结点。-Circular linked list to implement a two-way, each node in addition to prior, data and next 3 fields but also added a visit to the frequency domain freq. He was appointed in the list before the freq the frequency domain values are initialized to zero, but when the list was a LOCATE (L, x) after the operation, was visited node (ie element value is equal to the node x ) in the frequency domain freq will increase the value of 1, while modifying the list order between nodes, so that access to the frequency according to the order of non-increasing order, so always keep frequently accessed nodes are always close to the table head node.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Circularlinkedlist.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.