2-8-double-cycle linked list chain Storage Structure-linear table-Chapter 2nd-Data Structure textbook source code-yan Weimin Wu Weimin edition, 2-8-Data Structure
Textbook source code
Chapter 2 linear table-chain storage with double-cycle linked list
-- Data Structure-yan Weimin. Wu Weimin
Source code instructions☛☛☛Data Structure-C language version (Yan Weimin, Wu Weimin version) Textbook source code + EXERCISE set parsing instructions
Textbook source code compilation Link☛☛☛Data Structure textbook source code compilation
Question set full resolution Link☛☛☛Analysis and compilation of data structure question set
File links introduced in this source code☛Status. h
Test data download link☛No data
Source code and test data storage directory in the document: Data Structure \ ▲textbook Algorithm Implementation \ ▲02 linear table \ 08 dualw.elinkedlist
Overview
A dual-loop linked list is connected by the beginning and end, and each node can point to its precursor and subsequent linked list.
Analysis
The double-cycle linked list solves the problem that single-chain tables cannot be traced back. That is, in the double-cycle linked list, a complete linked list can be traversed sequentially or backward from any node. Insertion and deletion are important in the double-loop linked list operation. You must change the order in which each Pointer Points. In addition, pay special attention to the changes in head and tail node pointers.
Insert or delete a double-link table, for example:
Source code File 1☛Dualw.elinkedlist. h
File 2☛Dualw.elinkedlist. c
File 3☛DualCycleLinkedList-main.c (test documentation)
Test Result Display
Updating more chapters...