Linked List Basics By Nick Parlante

简介:
本文档介绍了构建链表的基本结构和技术,并结合了说明、绘图、示例代码和练习。如果您想了解链表,或者想查看指针密集型代码的实际应用示例,这些材料将非常有用。另一份文档“链表问题”(http://cslibrary.stanford.edu/105/) 介绍了 18 个练习问题,涵盖了各种难度。
学习链表很有用,原因有两个。最明显的是,链表是一种您可能希望在实际程序中使用的数据结构。了解链表的优点和缺点将使您了解一些时间、空间和代码问题,这些问题对于一般思考任何数据结构都很有用。
不太明显的是,链表是学习指针的好方法。事实上,您可能永远不会在实际程序中使用链表,但您肯定会使用大量指针。链表问题是算法和指针操作的完美结合。传统上,链表一直是初级程序员练习真正理解指针的领域。
英文简介:
This document introduces the basic structures and techniques for building linked lists with a mixture of explanations, drawings, sample code, and exercises. The material is useful if you want to understand linked lists or if you want to see a realistic, applied example of pointer-intensive code. A separate document, Linked List Problems (http://cslibrary.stanford.edu/105/), presents 18 practice problems covering a wide range of difficulty.
Linked lists are useful to study for two reasons. Most obviously, linked lists are a data structure which you may want to use in real programs. Seeing the strengths and weaknesses of linked lists will give you an appreciation of the some of the time, space, and code issues which are useful to thinking about any data structures in general.
Somewhat less obviously, linked lists are great way to learn about pointers. In fact, you may never use a linked list in a real program, but you are certain to use lots of pointers. Linked list problems are a nice combination of algorithms and pointer manipulation. Traditionally, linked lists have been the domain where beginning programmers get the practice to really understand pointers.
- 书名
- Linked List Basics By Nick Parlante
- 语言
- 英语
- 年份
- 2001
- 页数
- 26页
- 大小
- 45.59 kB
- 标签
- 算法
- C语言
- 下载
Linked List Basics By Nick Parlante.pdf
- 密码
- 65536
最后更新:2025-04-12 23:58:19