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

Source: Internet
Author: User

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...



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.