-
Skiplist 实现
Skiplist 跳表 c++ 实现, 包含vs工程文件, Skiplist.h 代码文件 和 TestMain.cpp 测试文件,主要应用实现有序集,效率接近树,但实现简单, redis内部也有skiplist的实现
- 2022-03-07 07:39:40下载
- 积分:1
-
一元稀疏多项式计算器[加法和乘法] 问题描述: 设计一元系数多项式计数器实现两个多项式间的加法、减法。 基本要求: (1) 输入并建立多项式 (2) 输出多项式...
一元稀疏多项式计算器[加法和乘法] 问题描述: 设计一元系数多项式计数器实现两个多项式间的加法、减法。 基本要求: (1) 输入并建立多项式 (2) 输出多项式,输出形式为整数序列:n,c1,e1,c2,e2……cn,en,其中n是多项式的项数,ci,ei分别为第i项的系数和指数。序列按指数降序排列。 (3) 多项式a和b相加,建立多项式a+b,输出相加的多项式。 (4) 多项式a和b相减,建立多项式a-b,输出相减的多项式。 用带表头结点的单链表存储多项式。 测试数据: (1) (2x+5x8-3.1x11)+(7-5x8+11x9) (2) (6x-3-x+4.4x2-1.2x9)-(-6x-3+5.4x2+7.8x15) (3) (x+x2+x3)+0 (4) (x+x3)-(-x-x-3)-one yuan sparse polynomial calculator [Addition and multiplication] Problem description : Design one yuan polynomial coefficient counter achieve the two polynomials addition, subtraction. Basic requirements : (a) input and the establishment of polynomial (2) output polynomial, the output form of integer sequence : n, c1, e1, c2, e2 ... cn, en, where n is the polynomial Number, ci, ei for the first item i the coefficients and indexes. By sequencing index in descending order. (3) a and b polynomial addition, the establishment of a polynomial b, the combined output polynomial. (4) a and b polynomial subtraction, the establishment of a polyno
- 2022-10-15 00:45:03下载
- 积分:1
-
10名海盗抢得了窖藏的100块金子,并打算瓜分
这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯
是按下面的方式进行分配:最...
10名海盗抢得了窖藏的100块金子,并打算瓜分
这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯
是按下面的方式进行分配:最厉害的一名海盗提出分配方案,然后所有的海盗(包
括提出方案者本人)就此方案进行表决。如果50%或更多的海盗赞同此方案,此方
案就获得通过并据此分配战利品。否则提出方案的海盗将被扔到海里,然后下提名
最厉害的海盗又重复上述过程-10 pirates seize a cache of 100 gold, and plan to divide up these spoils of war. This is the democracy of some pirates (of course it was their own unique democracy), their habits are based on the following manner allocation : one of the most powerful pirate proposed distribution plan, and then all the pirates (including the proposal himself) on this program for a vote. If 50% or more of the pirates agreed to this program, this program was adopted and on the allocation of spoils of war. Otherwise, the proposals will be pirates thrown into the sea, and then nominate the most serious piracy repeated this process
- 2023-06-24 15:35:03下载
- 积分:1
-
C++双向链表
利用c++写的双向链表操作,有头插入,尾插入,中间寻找“朋友“的方式插入,适合简单数据结构分析
- 2023-08-10 06:55:03下载
- 积分:1
-
Astar 精灵版本
Astar 精灵版本 -Astar Wizard Wizard version version Astar
- 2022-08-13 02:51:16下载
- 积分:1
-
一个关于二叉树的小实验例子,包括整个的过程文件
一个关于二叉树的小实验例子,包括整个的过程文件-A small experiment on the binary tree example, including the whole process of document
- 2022-01-30 14:09:38下载
- 积分:1
-
仓库管理
仓储在企业的整个供应链中起着至关重要的作用,如果不能保证正确的进货和库存控制及发货,将会导致管理费用的增加,服务质量难以得到保证,从而影响企业的竞争力。传统简单、静态的仓储管理已无法保证企业各种资源的高效利用。如今的仓库作业和库存控制作业已十分复杂化多样化,仅靠人工记忆和手工录入,不但费时费力,而且容易出错,给企业带来巨大损失。
- 2022-11-07 19:30:03下载
- 积分:1
-
利用深度遍历的方法来检查8数码问题是否有解。
利用深度遍历的方法来检查8数码问题是否有解。-use depth traverse method to check whether the eight digital solutions to the problem.
- 2022-09-14 12:35:03下载
- 积分:1
-
这个是数据结构经典算法实现,是一些不错的算法
这个是数据结构经典算法实现,是一些不错的算法-shu ju jie gou jing dian suan fa shi xian
- 2022-06-21 22:44:35下载
- 积分:1
-
数据结构算法演示
数据结构算法演示-demonstration algorithm data structure
- 2022-11-26 15:00:03下载
- 积分:1