搜索资源列表
约瑟夫问题的实现
- 【问题描述】 设有n个人围坐在圆桌周围,现从某个位置m(1≤m≤n)上的人开始报数,报数到k的人就站出来。下一个人,即原来的第k+1个位置上的人,又从1开始报数,再报数到k的人站出来。依此重复下去,直到全部的人都站出来为止。试设计一个程序求出出列序列。 这是一个使用循环链表的经典问题。因为要不断地出列,采用链表的存储形式能更好地模拟出列的情况。-[n -- with the individuals sitting around the round table is from a certain
链表的C语言实现之单链表的实现
- 所谓链表,就是用一组任意的存储单元存储线性表元素的一种数据结构-so-called List, a group is using an arbitrary memory cell storage element linear form of a data structure
链表的C语言实现之删除结点
- 要删除p结点时只要令p结点的前驱结点的链域由存储p结点的地址该为存储p的后继结点的地址-to delete nodes when p as long as the precursor nodes nodes from the chain domain p storage node addresses the storage of the p subsequent node addresses
scoremanage
- 1、整个系统均用C语言实现; 2、利用指针、链表来实现学生成绩的数据结构设计; 3、系统具有输入、显示、查询、删除、排序、插入,保存、读取基本功能; 4、系统的各个功能模块都用函数的形式来实现; 5、可以将学生成绩信息保存在文件中。 6、可以将学生信息从文件中读取出来。-one, the entire system will be used C language; 2, the use of indicators, Listless to achieve student pe
shuangxunhuanlianbiao
- 此为数据结构中 双循环链表的定义和实现。其中包括了我们使用双循环链表中的常见的一些函数的定义和实现,并且进行了验证,经过证明自己的思路是正确的,具有很好的参考价值-this data structure for the two-cycle Chain definition and implementation. These include the use of two-cycle we Linklist some of the common functions of the definition
2
- 实现单链表的基本操作,包括链表的建立,释放,查找,插入,删除,有输入输出。
linklist
- 对链表的操作,建立链表类,实现代码的重用,提高编程的效率
doubly-linked-list
- 使用C#图形界面编程,实现双链表的建立、插入、删除和查找等功能。双链表中的连线和节点可以实时显示。-Use C# GUI programming, to achieve the establishment of a doubly linked list, insert, delete and search functions. Doubly linked list of connections and nodes can be displayed in real time.
test
- 一元多项式的链表实现 拥有term项类 链表节点类 链表类 以及多项式类 重载输入函数-One of the list of the polynomial has a term of realization of node-type chain-type chain-type, as well as polynomial-type input function overloading
link
- 这是练习链表操作的程序。实现链表的头插、尾插法以及链表节点的插入删除等操作。-This is a practice list of procedures to operate. Interpolation to achieve the first list, the end of interpolation, as well as the insertion node list to delete such operation.
star
- 使用双向链表实现的通讯录。我的课程设计。-The realization of the use of two-way contacts list. My curriculum design.
dxsjisuan
- 建立一个表示多项式的链表,实现多项式的计算。通过文件输入输出-Polynomial to establish a list that, to achieve the calculation of polynomials. File input and output
aa
- 本次通讯录管理程序主要是运用了链表的应用,线性表是数据结构中最简单、最常用的一种线性结构,本次实验主要任务是使用有关单链表的操作来实现通讯录信息系统管理。-The address book management is the application of the use of a linked list, linear data structure table is the most simple, the most commonly used as a linear structure, th
4
- [问题描述] 设停车场是一个可停放n辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在车场的最北端),若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短交纳费用。试为停车场编制按上
Students_database
- 学生数据库 用C语言编写的经过调试的数据库,是通过链表实现的。是进一步掌握C编程的良好方法。可以记录学号,性别,年龄,分数-Students use the C language written in the database after the database debugging is achieved through the linked list. Further understand the C programming is a good way. Can record stud
shujujiegou
- 实现了链表的就地逆置的功能,代码精简,效率很高-this article show the use of a list and it shows a lot things
ConsoleApplication1
- c#语言程序与设计顺序表与链表的实现与它的应用-c# language programming and design table and linked list implementation of the order and its application
os
- 通过链表的添加与删除而实现的素数选择,排序等-Primes choice through the list to add and delete, sort, etc.
choice
- 实验目的 熟悉线性表的基本运算在顺序存储结构和链式存储结构上的实现,其中重点熟悉链表的各种操作。 时间要求:4学时 问题描述: 约瑟夫(Joseph)问题的一种描述是:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码〈正整数〉,一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数,报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求
lianbiao
- 可以实现单链表、循环链表、双向链表的基本操作-Can achieve the basic operation of a single linked list, circular linked list, doubly linked list