-
设计一个O(n2)时间的算法,找出由n个数组成的序列的最长单调递增子序列。...
设计一个O(n2)时间的算法,找出由n个数组成的序列的最长单调递增子序列。-design an O (n2) time algorithm to identify by the number n of the longest sequence monotonically increasing sequences.
- 2022-04-24 15:50:28下载
- 积分:1
-
停车场管理系统的源代码
由于停车场是一个狭窄通道,而且只有一个大门可供汽车进出,问题要求汽车停车场内按车辆到达时间的先后顺序,依次由北向南排列。由此很容易联想到数据结构中的堆栈模型,因此可首先设计一个堆栈,以堆栈来模拟停车场,我设计用顺序存储结构来存储停车场内的车辆信息,并给车辆按进栈顺序编号,当停车场内某辆车要离开时,在他之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入停车场。这是个一退一进的过程,而且让道的汽车必须保持原有的先后顺序,因此可再设计一个堆栈,以之来暂时存放为出站汽车暂时让道的汽车。当停车场满后,继续进来的汽车需要停放在停车场旁边的便道上等候,若停车场有汽车开走,则按排队的先后顺序依次进站,最先进入便道的汽车将会最先进入停车场,这完全是一个先进先出模型,因此可设计一个队列来模拟便道,队列中的数据元素设计成汽车的车牌号,并以链表的形式存储。另外,停车场根据汽车在停车场内停放的总时长来收费的,在便道上的时间不计费,因此必须记录车辆进入停车场时的时间和车辆离开停车场时的时间,然后计算、显示费用情况。
- 2023-04-01 23:20:03下载
- 积分:1
-
worldmodel
我想要我的 soccerplay 团队在大学 geometry.h palayer.cpp,worldmodel 喜欢......pleaze 帮助我去此源免费获取某些利益来源
- 2023-04-26 05:20:03下载
- 积分:1
-
一个简单的通讯录,是暑期的课程实践期间找的,感觉很好用,有查找,删除等功能1...
一个简单的通讯录,是暑期的课程实践期间找的,感觉很好用,有查找,删除等功能1-A simple address book, is a summer practice during the course looking for, feel good, and has search, delete and other functions one
- 2022-02-04 07:19:57下载
- 积分:1
-
高斯列主元消元法,
这只是我个人的一种解法,仅供参考。...
高斯列主元消元法,
这只是我个人的一种解法,仅供参考。-out PCA Gaussian Elimination Act, this is my personal one solution for reference.
- 2022-06-22 03:30:05下载
- 积分:1
-
connection/object pool. A program may require a IMAP connection po ol and LDAP c...
Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grows, and now there is a need for a pool of threads. So just take the IMAP connection pool and convert that to a pool of threads (Copy, paste, find, replace????). Need to make some changes to the pool implementation? Not a very easy task, since the code has been duplicated in many places. Re-inventing source code is not an intelligent approach in an object oriented environment which encourages re-usability. It seems to make more sense to implement a pool that can contain any arbitrary type rather than duplicating code. How does one do that? The answer is to use type parameterization, more commonly referred to as templates.-connection/object pool. A program may require a IMAP connection po ol and LDAP connection pool. One could easily im plemen
- 2023-05-15 08:25:03下载
- 积分:1
-
转换成汉字大写金额
转换成汉字大写金额-converted into the amount of Chinese capital
- 2022-12-11 09:40:03下载
- 积分:1
-
控制领导
应用背景控制LED,LED段,教程使用RS-232,创建主题CSHARP,PIC-C编译器关键技术你可以学习基本的编程CSHARP,PIC16F887
- 2022-02-15 20:23:59下载
- 积分:1
-
这是计算机专业硕士生课程《算法设计与实现》中讲到的模式匹配算法的实现,并且将该算法与KMP算法进行了比较。...
这是计算机专业硕士生课程《算法设计与实现》中讲到的模式匹配算法的实现,并且将该算法与KMP算法进行了比较。-It was the professional degree programs, "Algorithm Design and Implementation" referred to the pattern matching algorithm implementation, and algorithm and KMP algorithm are compared.
- 2022-03-14 01:25:09下载
- 积分:1
-
内部数据结构课程设计的比较研究,共10…
数据结构课程设计内部排序的比较
一共有十种排序方法-Curriculum design of internal data structure to sort of comparison a total of 10 kinds of sorting methods
- 2023-08-05 04:50:02下载
- 积分:1